| 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" ] | |
| 10 | |
| 11 deps = [ | 9 deps = [ |
| 12 "//base", | 10 "//base", |
| 13 "//base:i18n", | 11 "//base:i18n", |
| 14 "//base/third_party/dynamic_annotations", | 12 "//base/third_party/dynamic_annotations", |
| 15 "//skia", | 13 "//skia", |
| 16 "//ui/accessibility", | 14 "//ui/accessibility", |
| 17 "//ui/base", | 15 "//ui/base", |
| 18 "//ui/events", | 16 "//ui/events", |
| 19 "//ui/gfx", | 17 "//ui/gfx", |
| 20 "//ui/gfx/geometry", | 18 "//ui/gfx/geometry", |
| 19 "//ui/native_theme", |
| 21 "//ui/resources", | 20 "//ui/resources", |
| 22 "//ui/strings", | 21 "//ui/strings", |
| 22 "//url", |
| 23 ] | 23 ] |
| 24 | 24 |
| 25 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] |
| 26 |
| 25 if (enable_notifications) { | 27 if (enable_notifications) { |
| 26 sources = [ | 28 sources = [ |
| 27 "cocoa/notification_controller.h", | 29 "cocoa/notification_controller.h", |
| 28 "cocoa/notification_controller.mm", | 30 "cocoa/notification_controller.mm", |
| 29 "cocoa/opaque_views.h", | 31 "cocoa/opaque_views.h", |
| 30 "cocoa/opaque_views.mm", | 32 "cocoa/opaque_views.mm", |
| 31 "cocoa/popup_collection.h", | 33 "cocoa/popup_collection.h", |
| 32 "cocoa/popup_collection.mm", | 34 "cocoa/popup_collection.mm", |
| 33 "cocoa/popup_controller.h", | 35 "cocoa/popup_controller.h", |
| 34 "cocoa/popup_controller.mm", | 36 "cocoa/popup_controller.mm", |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 testonly = true | 154 testonly = true |
| 153 sources = [ | 155 sources = [ |
| 154 "fake_message_center.h", | 156 "fake_message_center.h", |
| 155 "fake_message_center.cc", | 157 "fake_message_center.cc", |
| 156 "fake_message_center_tray_delegate.h", | 158 "fake_message_center_tray_delegate.h", |
| 157 "fake_message_center_tray_delegate.cc", | 159 "fake_message_center_tray_delegate.cc", |
| 158 "fake_notifier_settings_provider.h", | 160 "fake_notifier_settings_provider.h", |
| 159 "fake_notifier_settings_provider.cc", | 161 "fake_notifier_settings_provider.cc", |
| 160 ] | 162 ] |
| 161 | 163 |
| 164 public_deps = [ |
| 165 ":message_center", |
| 166 ] |
| 167 |
| 162 deps = [ | 168 deps = [ |
| 163 ":message_center", | |
| 164 "//base", | 169 "//base", |
| 165 "//base/test:test_support", | 170 "//base/test:test_support", |
| 166 "//skia", | 171 "//skia", |
| 167 "//ui/gfx", | 172 "//ui/gfx", |
| 168 "//ui/gfx/geometry", | 173 "//ui/gfx/geometry", |
| 169 ] | 174 ] |
| 170 } | 175 } |
| 171 | 176 |
| 172 test("message_center_unittests") { | 177 test("message_center_unittests") { |
| 173 sources = [ | 178 sources = [ |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 deps += [ | 227 deps += [ |
| 223 # Compositor is needed by message_center_view_unittest.cc and for the | 228 # Compositor is needed by message_center_view_unittest.cc and for the |
| 224 # fonts used by bounded_label_unittest.cc. | 229 # fonts used by bounded_label_unittest.cc. |
| 225 "//ui/compositor", | 230 "//ui/compositor", |
| 226 "//ui/views", | 231 "//ui/views", |
| 227 "//ui/views:test_support", | 232 "//ui/views:test_support", |
| 228 ] | 233 ] |
| 229 } | 234 } |
| 230 } # enable_notifications | 235 } # enable_notifications |
| 231 } | 236 } |
| OLD | NEW |