OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//mojo/public/mojo_application.gni") | 6 import("//mojo/public/mojo_application.gni") |
7 | 7 |
8 mojo_native_application("view_manager") { | 8 mojo_native_application("view_manager") { |
9 sources = [ | 9 sources = [ |
10 "main.cc", | 10 "main.cc", |
11 "view_manager_app.cc", | 11 "view_manager_app.cc", |
12 "view_manager_app.h", | 12 "view_manager_app.h", |
13 ] | 13 ] |
14 | 14 |
15 deps = [ | 15 deps = [ |
16 ":view_manager_lib", | 16 ":view_manager_lib", |
17 "//base", | 17 "//base", |
18 "//mojo/application", | 18 "//mojo/application", |
19 "//mojo/common:tracing_impl", | 19 "//mojo/common:tracing_impl", |
20 "//mojo/environment:chromium", | 20 "//mojo/environment:chromium", |
| 21 "//mojo/converters/geometry", |
21 "//mojo/public/cpp/bindings:bindings", | 22 "//mojo/public/cpp/bindings:bindings", |
22 "//mojo/services/public/interfaces/window_manager", | 23 "//mojo/services/public/interfaces/window_manager", |
23 ] | 24 ] |
24 } | 25 } |
25 | 26 |
26 source_set("view_manager_lib") { | 27 source_set("view_manager_lib") { |
27 sources = [ | 28 sources = [ |
28 "access_policy.h", | 29 "access_policy.h", |
29 "access_policy_delegate.h", | 30 "access_policy_delegate.h", |
| 31 "animation_runner.cc", |
| 32 "animation_runner.h", |
| 33 "animation_runner_observer.h", |
30 "client_connection.cc", | 34 "client_connection.cc", |
31 "client_connection.h", | 35 "client_connection.h", |
32 "connection_manager.cc", | 36 "connection_manager.cc", |
33 "connection_manager.h", | 37 "connection_manager.h", |
34 "connection_manager_delegate.h", | 38 "connection_manager_delegate.h", |
35 "default_access_policy.cc", | 39 "default_access_policy.cc", |
36 "default_access_policy.h", | 40 "default_access_policy.h", |
37 "display_manager.cc", | 41 "display_manager.cc", |
38 "display_manager.h", | 42 "display_manager.h", |
| 43 "scheduled_animation_group.cc", |
| 44 "scheduled_animation_group.h", |
39 "server_view.cc", | 45 "server_view.cc", |
40 "server_view.h", | 46 "server_view.h", |
41 "server_view_delegate.h", | 47 "server_view_delegate.h", |
42 "view_coordinate_conversions.cc", | 48 "view_coordinate_conversions.cc", |
43 "view_coordinate_conversions.h", | 49 "view_coordinate_conversions.h", |
44 "view_manager_service_impl.cc", | 50 "view_manager_service_impl.cc", |
45 "view_manager_service_impl.h", | 51 "view_manager_service_impl.h", |
46 "window_manager_access_policy.cc", | 52 "window_manager_access_policy.cc", |
47 "window_manager_access_policy.h", | 53 "window_manager_access_policy.h", |
48 ] | 54 ] |
(...skipping 11 matching lines...) Expand all Loading... |
60 "//mojo/public/cpp/bindings:callback", | 66 "//mojo/public/cpp/bindings:callback", |
61 "//mojo/public/interfaces/application", | 67 "//mojo/public/interfaces/application", |
62 "//mojo/services/public/cpp/surfaces", | 68 "//mojo/services/public/cpp/surfaces", |
63 "//mojo/services/public/interfaces/geometry", | 69 "//mojo/services/public/interfaces/geometry", |
64 "//mojo/services/public/interfaces/input_events", | 70 "//mojo/services/public/interfaces/input_events", |
65 "//mojo/services/public/interfaces/native_viewport", | 71 "//mojo/services/public/interfaces/native_viewport", |
66 "//mojo/services/public/interfaces/surfaces", | 72 "//mojo/services/public/interfaces/surfaces", |
67 "//mojo/services/public/interfaces/view_manager", | 73 "//mojo/services/public/interfaces/view_manager", |
68 "//mojo/services/public/interfaces/window_manager", | 74 "//mojo/services/public/interfaces/window_manager", |
69 "//mojo/services/public/cpp/view_manager:common", | 75 "//mojo/services/public/cpp/view_manager:common", |
| 76 "//ui/gfx", |
70 "//ui/gfx/geometry", | 77 "//ui/gfx/geometry", |
71 ] | 78 ] |
72 } | 79 } |
73 | 80 |
74 source_set("test_support") { | 81 source_set("test_support") { |
75 testonly = true | 82 testonly = true |
76 | 83 |
77 sources = [ | 84 sources = [ |
78 "test_change_tracker.cc", | 85 "test_change_tracker.cc", |
79 "test_change_tracker.h", | 86 "test_change_tracker.h", |
80 ] | 87 ] |
81 | 88 |
82 deps = [ | 89 deps = [ |
83 "//base", | 90 "//base", |
84 "//mojo/common", | 91 "//mojo/common", |
85 "//mojo/public/cpp/bindings:bindings", | 92 "//mojo/public/cpp/bindings:bindings", |
86 "//mojo/services/public/cpp/view_manager:common", | 93 "//mojo/services/public/cpp/view_manager:common", |
87 "//mojo/services/public/interfaces/geometry", | 94 "//mojo/services/public/interfaces/geometry", |
88 "//mojo/services/public/interfaces/view_manager", | 95 "//mojo/services/public/interfaces/view_manager", |
89 ] | 96 ] |
90 } | 97 } |
91 | 98 |
92 test("view_manager_service_unittests") { | 99 test("view_manager_service_unittests") { |
93 sources = [ | 100 sources = [ |
| 101 "animation_runner_unittest.cc", |
| 102 "scheduled_animation_group_unittest.cc", |
| 103 "test_server_view_delegate.cc", |
| 104 "test_server_view_delegate.h", |
94 "view_coordinate_conversions_unittest.cc", | 105 "view_coordinate_conversions_unittest.cc", |
95 "view_manager_service_unittest.cc", | 106 "view_manager_service_unittest.cc", |
96 ] | 107 ] |
97 | 108 |
98 deps = [ | 109 deps = [ |
99 ":test_support", | 110 ":test_support", |
100 ":view_manager_lib", | 111 ":view_manager_lib", |
101 "//base", | 112 "//base", |
102 "//base/test:test_support", | 113 "//base/test:test_support", |
103 "//mojo/converters/geometry", | 114 "//mojo/converters/geometry", |
104 "//mojo/converters/input_events", | 115 "//mojo/converters/input_events", |
105 "//mojo/edk/test:run_all_unittests", | 116 "//mojo/edk/test:run_all_unittests", |
106 "//mojo/environment:chromium", | 117 "//mojo/environment:chromium", |
107 "//mojo/public/cpp/bindings", | 118 "//mojo/public/cpp/bindings", |
108 "//mojo/public/interfaces/application", | 119 "//mojo/public/interfaces/application", |
109 "//mojo/services/public/cpp/native_viewport:args", | 120 "//mojo/services/public/cpp/native_viewport:args", |
110 "//mojo/services/public/cpp/view_manager", | 121 "//mojo/services/public/cpp/view_manager", |
111 "//mojo/services/public/interfaces/geometry", | 122 "//mojo/services/public/interfaces/geometry", |
112 "//mojo/services/public/interfaces/view_manager", | 123 "//mojo/services/public/interfaces/view_manager", |
113 "//mojo/services/public/interfaces/window_manager", | 124 "//mojo/services/public/interfaces/window_manager", |
114 "//testing/gtest", | 125 "//testing/gtest", |
| 126 "//ui/gfx", |
115 "//ui/gfx:test_support", | 127 "//ui/gfx:test_support", |
116 "//ui/gfx/geometry", | 128 "//ui/gfx/geometry", |
117 ] | 129 ] |
118 | 130 |
119 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. | 131 if (!is_android) { # TODO(GYP) Enable on Android when osmesa links. |
120 deps += [ "//third_party/mesa:osmesa" ] | 132 deps += [ "//third_party/mesa:osmesa" ] |
121 } | 133 } |
122 } | 134 } |
123 | 135 |
124 mojo_native_application("view_manager_service_apptests") { | 136 mojo_native_application("view_manager_service_apptests") { |
125 testonly = true | 137 testonly = true |
126 | 138 |
127 sources = [ | 139 sources = [ |
128 "view_manager_service_apptest.cc", | 140 "view_manager_service_apptest.cc", |
129 ] | 141 ] |
130 | 142 |
131 deps = [ | 143 deps = [ |
132 ":test_support", | 144 ":test_support", |
133 "//base", | 145 "//base", |
134 "//mojo/application", | 146 "//mojo/application", |
135 "//mojo/application:test_support", | 147 "//mojo/application:test_support", |
136 "//mojo/common", | 148 "//mojo/common", |
137 "//mojo/public/cpp/bindings", | 149 "//mojo/public/cpp/bindings", |
138 "//mojo/services/public/interfaces/geometry", | 150 "//mojo/services/public/interfaces/geometry", |
139 "//mojo/services/public/interfaces/view_manager", | 151 "//mojo/services/public/interfaces/view_manager", |
140 "//mojo/services/public/interfaces/window_manager", | 152 "//mojo/services/public/interfaces/window_manager", |
141 ] | 153 ] |
142 } | 154 } |
OLD | NEW |