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/features.gni") | 5 import("//build/config/features.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 | 7 |
8 component("message_center") { | 8 component("message_center") { |
9 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] | 9 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] |
10 | 10 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 "notifier_settings.cc", | 69 "notifier_settings.cc", |
70 "notifier_settings.h", | 70 "notifier_settings.h", |
71 ] | 71 ] |
72 | 72 |
73 if (is_win) { | 73 if (is_win) { |
74 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 74 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
75 cflags = [ "/wd4267" ] | 75 cflags = [ "/wd4267" ] |
76 deps += [ "//ui/aura" ] | 76 deps += [ "//ui/aura" ] |
77 } | 77 } |
78 | 78 |
79 if (toolkit_views) { | 79 # On Mac, toolkit-views builds still use the Cocoa UI. Keep this in sync |
| 80 # with message_center_unittests below. |
| 81 if (toolkit_views && !is_mac) { |
80 sources += [ | 82 sources += [ |
81 "views/bounded_label.cc", | 83 "views/bounded_label.cc", |
82 "views/bounded_label.h", | 84 "views/bounded_label.h", |
83 "views/constants.h", | 85 "views/constants.h", |
84 "views/desktop_popup_alignment_delegate.cc", | 86 "views/desktop_popup_alignment_delegate.cc", |
85 "views/desktop_popup_alignment_delegate.h", | 87 "views/desktop_popup_alignment_delegate.h", |
86 "views/message_center_controller.h", | 88 "views/message_center_controller.h", |
87 "views/message_center_button_bar.cc", | 89 "views/message_center_button_bar.cc", |
88 "views/message_center_button_bar.h", | 90 "views/message_center_button_bar.h", |
89 "views/message_center_view.cc", | 91 "views/message_center_view.cc", |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 "message_center_tray_unittest.cc", | 203 "message_center_tray_unittest.cc", |
202 "message_center_impl_unittest.cc", | 204 "message_center_impl_unittest.cc", |
203 "notification_delegate_unittest.cc", | 205 "notification_delegate_unittest.cc", |
204 "notification_list_unittest.cc", | 206 "notification_list_unittest.cc", |
205 ] | 207 ] |
206 | 208 |
207 if (is_mac) { | 209 if (is_mac) { |
208 deps += [ "//ui/gfx:test_support" ] | 210 deps += [ "//ui/gfx:test_support" ] |
209 } | 211 } |
210 | 212 |
211 if (toolkit_views) { | 213 if (toolkit_views && !is_mac) { |
212 sources += [ | 214 sources += [ |
213 "views/bounded_label_unittest.cc", | 215 "views/bounded_label_unittest.cc", |
214 "views/message_center_view_unittest.cc", | 216 "views/message_center_view_unittest.cc", |
215 "views/message_popup_collection_unittest.cc", | 217 "views/message_popup_collection_unittest.cc", |
216 "views/notification_view_unittest.cc", | 218 "views/notification_view_unittest.cc", |
217 "views/notifier_settings_view_unittest.cc", | 219 "views/notifier_settings_view_unittest.cc", |
218 ] | 220 ] |
219 deps += [ | 221 deps += [ |
220 # Compositor is needed by message_center_view_unittest.cc and for the | 222 # Compositor is needed by message_center_view_unittest.cc and for the |
221 # fonts used by bounded_label_unittest.cc. | 223 # fonts used by bounded_label_unittest.cc. |
222 "//ui/compositor", | 224 "//ui/compositor", |
223 "//ui/views", | 225 "//ui/views", |
224 "//ui/views:test_support", | 226 "//ui/views:test_support", |
225 ] | 227 ] |
226 } | 228 } |
227 } # enable_notifications | 229 } # enable_notifications |
228 } | 230 } |
OLD | NEW |