| 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 import("//testing/test.gni") | 7 import("//testing/test.gni") |
| 8 | 8 |
| 9 component("message_center") { | 9 component("message_center") { |
| 10 deps = [ | 10 deps = [ |
| 11 "//base", | 11 "//base", |
| 12 "//base:i18n", | 12 "//base:i18n", |
| 13 "//base/third_party/dynamic_annotations", | 13 "//base/third_party/dynamic_annotations", |
| 14 "//skia", | 14 "//skia", |
| 15 "//ui/accessibility", | 15 "//ui/accessibility", |
| 16 "//ui/base", | 16 "//ui/base", |
| 17 "//ui/events", | 17 "//ui/events", |
| 18 "//ui/gfx", | 18 "//ui/gfx", |
| 19 "//ui/gfx/geometry", | 19 "//ui/gfx/geometry", |
| 20 "//ui/native_theme", | 20 "//ui/native_theme", |
| 21 "//ui/resources", | 21 "//ui/resources", |
| 22 "//ui/strings", | 22 "//ui/strings", |
| 23 "//url", | 23 "//url", |
| 24 ] | 24 ] |
| 25 | 25 |
| 26 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 27 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
| 28 |
| 26 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] | 29 defines = [ "MESSAGE_CENTER_IMPLEMENTATION" ] |
| 27 | 30 |
| 28 if (enable_notifications && !is_android) { | 31 if (enable_notifications && !is_android) { |
| 29 sources = [ | 32 sources = [ |
| 30 "cocoa/notification_controller.h", | 33 "cocoa/notification_controller.h", |
| 31 "cocoa/notification_controller.mm", | 34 "cocoa/notification_controller.mm", |
| 32 "cocoa/opaque_views.h", | 35 "cocoa/opaque_views.h", |
| 33 "cocoa/opaque_views.mm", | 36 "cocoa/opaque_views.mm", |
| 34 "cocoa/popup_collection.h", | 37 "cocoa/popup_collection.h", |
| 35 "cocoa/popup_collection.mm", | 38 "cocoa/popup_collection.mm", |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 "notification_delegate.h", | 70 "notification_delegate.h", |
| 68 "notification_list.cc", | 71 "notification_list.cc", |
| 69 "notification_list.h", | 72 "notification_list.h", |
| 70 "notification_types.cc", | 73 "notification_types.cc", |
| 71 "notification_types.h", | 74 "notification_types.h", |
| 72 "notifier_settings.cc", | 75 "notifier_settings.cc", |
| 73 "notifier_settings.h", | 76 "notifier_settings.h", |
| 74 ] | 77 ] |
| 75 | 78 |
| 76 if (is_win) { | 79 if (is_win) { |
| 77 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | |
| 78 cflags = [ "/wd4267" ] | |
| 79 deps += [ "//ui/aura" ] | 80 deps += [ "//ui/aura" ] |
| 80 } | 81 } |
| 81 | 82 |
| 82 # On Mac, toolkit-views builds still use the Cocoa UI. Keep this in sync | 83 # On Mac, toolkit-views builds still use the Cocoa UI. Keep this in sync |
| 83 # with message_center_unittests below. | 84 # with message_center_unittests below. |
| 84 if (toolkit_views && !is_mac) { | 85 if (toolkit_views && !is_mac) { |
| 85 sources += [ | 86 sources += [ |
| 86 "views/bounded_label.cc", | 87 "views/bounded_label.cc", |
| 87 "views/bounded_label.h", | 88 "views/bounded_label.h", |
| 88 "views/constants.h", | 89 "views/constants.h", |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 # Compositor is needed by message_center_view_unittest.cc and for the | 231 # Compositor is needed by message_center_view_unittest.cc and for the |
| 231 # fonts used by bounded_label_unittest.cc. | 232 # fonts used by bounded_label_unittest.cc. |
| 232 "//ui/compositor", | 233 "//ui/compositor", |
| 233 "//ui/views", | 234 "//ui/views", |
| 234 "//ui/views:test_support", | 235 "//ui/views:test_support", |
| 235 ] | 236 ] |
| 236 } | 237 } |
| 237 } # enable_notifications && !is_android | 238 } # enable_notifications && !is_android |
| 238 } | 239 } |
| 239 } | 240 } |
| OLD | NEW |