summaryrefslogtreecommitdiff
path: root/chromium/ui/events/blink/BUILD.gn
blob: 2ff0353b00c48ef21d1d2c9a2bcdd87ab45b5344 (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
57
58
59
60
# Copyright 2015 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.

import("//build/config/jumbo.gni")
import("//build/config/ui.gni")

jumbo_component("blink_features") {
  defines = [ "IS_BLINK_FEATURES_IMPL" ]

  sources = [
    "blink_features.cc",
    "blink_features.h",
  ]

  deps = [ "//base" ]
}

jumbo_source_set("blink") {
  sources = [
    "blink_event_util.cc",
    "blink_event_util.h",
    "did_overscroll_params.h",
    "fling_booster.cc",
    "fling_booster.h",
    "web_input_event.cc",
    "web_input_event.h",
    "web_input_event_traits.cc",
    "web_input_event_traits.h",
  ]

  public_deps = [ ":blink_features" ]

  deps = [
    "//cc:cc",
    "//services/tracing/public/cpp:cpp",
    "//third_party/blink/public:blink_headers",
    "//third_party/one_euro_filter",
    "//ui/base:base",
    "//ui/events",
    "//ui/events:dom_keycode_converter",
    "//ui/events:events_base",
    "//ui/events:gesture_detection",
    "//ui/gfx",
    "//ui/gfx/geometry",
    "//ui/latency",
  ]

  if (use_x11) {
    deps += [ "//ui/gfx/x" ]
  }

  if (is_win) {
    sources += [
      "web_input_event_builders_win.cc",
      "web_input_event_builders_win.h",
    ]
    deps += [ "//ui/display" ]
  }
}