summaryrefslogtreecommitdiff
path: root/chromium/components/zoom/BUILD.gn
blob: 208334ae537047b2b29772b7ecb60952dc6d53e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

assert(!is_android && !is_ios, "Desktop zoom is not used on mobile platforms.")

static_library("zoom") {
  sources = [
    "page_zoom.cc",
    "page_zoom.h",
    "page_zoom_constants.cc",
    "page_zoom_constants.h",
    "zoom_controller.cc",
    "zoom_controller.h",
    "zoom_event_manager.cc",
    "zoom_event_manager.h",
    "zoom_event_manager_observer.h",
    "zoom_observer.h",
  ]

  deps = [
    "//base",
    "//components/prefs",
    "//content/public/browser",
    "//content/public/common",
    "//ipc",
    "//net",
    "//url",
  ]
}

static_library("test_support") {
  testonly = true
  sources = [
    "test/zoom_test_utils.cc",
    "test/zoom_test_utils.h",
  ]
  deps = [
    ":zoom",
    "//base:base",
    "//content/test:test_support",
  ]
}

source_set("unit_tests") {
  testonly = true
  sources = [
    "page_zoom_unittests.cc",
  ]
  deps = [
    ":zoom",
    "//components/prefs",
    "//content/public/common",
    "//testing/gtest",
  ]
}