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 "ui/base/models/simple_menu_model.h" | 7 #include "ui/base/models/simple_menu_model.h" |
8 #include "ui/base/resource/resource_bundle.h" | 8 #include "ui/base/resource/resource_bundle.h" |
9 #include "ui/gfx/canvas.h" | 9 #include "ui/gfx/canvas.h" |
10 #include "ui/gfx/text_constants.h" | 10 #include "ui/gfx/text_constants.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 public: | 43 public: |
44 NotificationCenterButton(views::ButtonListener* listener, | 44 NotificationCenterButton(views::ButtonListener* listener, |
45 int normal_id, | 45 int normal_id, |
46 int hover_id, | 46 int hover_id, |
47 int pressed_id, | 47 int pressed_id, |
48 int text_id); | 48 int text_id); |
49 void set_size(gfx::Size size) { size_ = size; } | 49 void set_size(gfx::Size size) { size_ = size; } |
50 | 50 |
51 protected: | 51 protected: |
52 // Overridden from views::View: | 52 // Overridden from views::View: |
53 virtual gfx::Size GetPreferredSize() const OVERRIDE; | 53 virtual gfx::Size GetPreferredSize() const override; |
54 | 54 |
55 private: | 55 private: |
56 gfx::Size size_; | 56 gfx::Size size_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(NotificationCenterButton); | 58 DISALLOW_COPY_AND_ASSIGN(NotificationCenterButton); |
59 }; | 59 }; |
60 | 60 |
61 NotificationCenterButton::NotificationCenterButton( | 61 NotificationCenterButton::NotificationCenterButton( |
62 views::ButtonListener* listener, | 62 views::ButtonListener* listener, |
63 int normal_id, | 63 int normal_id, |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) | 292 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) |
293 } else if (sender == close_bubble_button_) { | 293 } else if (sender == close_bubble_button_) { |
294 message_center_view()->tray()->HideMessageCenterBubble(); | 294 message_center_view()->tray()->HideMessageCenterBubble(); |
295 #endif | 295 #endif |
296 } else { | 296 } else { |
297 NOTREACHED(); | 297 NOTREACHED(); |
298 } | 298 } |
299 } | 299 } |
300 | 300 |
301 } // namespace message_center | 301 } // namespace message_center |
OLD | NEW |