Only send _NET_ACTIVE_WINDOW hint if the chromium window is not already active.
[chromium-blink-merge.git] / components / sessions / BUILD.gn
blobbcc736699dacbf8a9324a9ab7d003aa3e8ebd1b4
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 if (is_android) {
6   import("//build/config/android/config.gni")
9 config("implementation") {
10   defines = [ "SESSIONS_IMPLEMENTATION" ]
13 if (!is_ios) {
14   # GYP version: components/sessions.gypi:sessions_content
15   component("sessions") {
16     sources = [
17       "content/content_serialized_navigation_builder.cc",
18       "content/content_serialized_navigation_builder.h",
19       "content/content_serialized_navigation_driver.cc",
20       "content/content_serialized_navigation_driver.h",
21     ]
23     configs += [ ":implementation" ]
25     deps = [
26       ":shared",
27       "//base",
28       "//base/third_party/dynamic_annotations",
29       "//content/public/browser",
30       "//ui/base",
31       "//url",
32     ]
33   }
34 } else {
35   source_set("sessions") {
36     sources = [
37       "ios/ios_serialized_navigation_builder.cc",
38       "ios/ios_serialized_navigation_builder.h",
39       "ios/ios_serialized_navigation_driver.cc",
40       "ios/ios_serialized_navigation_driver.h",
41     ]
43     deps = [
44       ":shared",
45       "//base",
47       # '../ios/web/ios_web.gyp:ios_web',  TODO(GYP) iOS.
48     ]
49   }
52 # Sources shared between the content and iOS implementations.
53 source_set("shared") {
54   visibility = [ ":*" ]
56   sources = [
57     "base_session_service.cc",
58     "base_session_service.h",
59     "base_session_service_commands.cc",
60     "base_session_service_commands.h",
61     "base_session_service_delegate.h",
62     "core/serialized_navigation_driver.h",
63     "serialized_navigation_entry.cc",
64     "serialized_navigation_entry.h",
65     "session_backend.cc",
66     "session_backend.h",
67     "session_command.cc",
68     "session_command.h",
69     "session_id.cc",
70     "session_id.h",
71     "session_service_commands.cc",
72     "session_service_commands.h",
73     "session_types.cc",
74     "session_types.h",
75   ]
77   configs += [ ":implementation" ]
79   deps = [
80     "//base",
81     "//skia",
82     "//sync",
83     "//sync/protocol",
84     "//third_party/protobuf:protobuf_lite",
85     "//ui/base",
86     "//ui/gfx",
87     "//url",
88   ]
91 source_set("test_support") {
92   testonly = true
93   sources = [
94     "serialized_navigation_entry_test_helper.cc",
95     "serialized_navigation_entry_test_helper.h",
96   ]
98   public_deps = [
99     ":sessions",
100   ]
101   deps = [
102     "//skia",
103     "//sync",
104     "//testing/gtest",
105   ]
107   if (!is_android && !is_ios) {
108     sources += [
109       "base_session_service_test_helper.cc",
110       "base_session_service_test_helper.h",
111     ]
112   }
115 if (!is_ios && !is_android) {
116   source_set("unit_tests") {
117     testonly = true
118     sources = [
119       "session_backend_unittest.cc",
120       "session_types_unittest.cc",
121     ]
122     deps = [
123       ":sessions",
124       "//base/test:test_support",
125       "//testing/gtest",
126       "//third_party/protobuf:protobuf_lite",
127     ]
128   }