| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "ui/message_center/views/message_center_button_bar.h" | 5 #include "ui/message_center/views/message_center_button_bar.h" |
| 6 | 6 |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "ui/base/models/simple_menu_model.h" | 9 #include "ui/base/models/simple_menu_model.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 message_center_(message_center), | 97 message_center_(message_center), |
| 98 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 98 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 99 close_bubble_button_(NULL), | 99 close_bubble_button_(NULL), |
| 100 #endif | 100 #endif |
| 101 title_arrow_(NULL), | 101 title_arrow_(NULL), |
| 102 notification_label_(NULL), | 102 notification_label_(NULL), |
| 103 button_container_(NULL), | 103 button_container_(NULL), |
| 104 close_all_button_(NULL), | 104 close_all_button_(NULL), |
| 105 settings_button_(NULL), | 105 settings_button_(NULL), |
| 106 quiet_mode_button_(NULL) { | 106 quiet_mode_button_(NULL) { |
| 107 SetPaintToLayer(true); | 107 SetPaintToLayer(); |
| 108 set_background( | 108 set_background( |
| 109 views::Background::CreateSolidBackground(kMessageCenterBackgroundColor)); | 109 views::Background::CreateSolidBackground(kMessageCenterBackgroundColor)); |
| 110 | 110 |
| 111 ui::ResourceBundle& resource_bundle = ui::ResourceBundle::GetSharedInstance(); | 111 ui::ResourceBundle& resource_bundle = ui::ResourceBundle::GetSharedInstance(); |
| 112 | 112 |
| 113 title_arrow_ = new NotificationCenterButton(this, | 113 title_arrow_ = new NotificationCenterButton(this, |
| 114 IDR_NOTIFICATION_ARROW, | 114 IDR_NOTIFICATION_ARROW, |
| 115 IDR_NOTIFICATION_ARROW_HOVER, | 115 IDR_NOTIFICATION_ARROW_HOVER, |
| 116 IDR_NOTIFICATION_ARROW_PRESSED, | 116 IDR_NOTIFICATION_ARROW_PRESSED, |
| 117 0); | 117 0); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 300 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
| 301 } else if (sender == close_bubble_button_) { | 301 } else if (sender == close_bubble_button_) { |
| 302 message_center_view()->tray()->HideMessageCenterBubble(); | 302 message_center_view()->tray()->HideMessageCenterBubble(); |
| 303 #endif | 303 #endif |
| 304 } else { | 304 } else { |
| 305 NOTREACHED(); | 305 NOTREACHED(); |
| 306 } | 306 } |
| 307 } | 307 } |
| 308 | 308 |
| 309 } // namespace message_center | 309 } // namespace message_center |
| OLD | NEW |