OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | 5 #ifndef UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ |
6 #define UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | 6 #define UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 // Close the quiet mode bubble. | 31 // Close the quiet mode bubble. |
32 void Close(); | 32 void Close(); |
33 | 33 |
34 // Returns the widget for the bubble. | 34 // Returns the widget for the bubble. |
35 views::Widget* GetBubbleWidget(); | 35 views::Widget* GetBubbleWidget(); |
36 | 36 |
37 private: | 37 private: |
38 // Initialize the contents of the bubble. | 38 // Initialize the contents of the bubble. |
39 void InitializeBubbleContents(); | 39 void InitializeBubbleContents(); |
40 | 40 |
41 // views::ButtonListener overrides: | 41 // Overridden from views::ButtonListener: |
42 virtual void ButtonPressed(views::Button* sender, | 42 virtual void ButtonPressed(views::Button* sender, |
43 const ui::Event& event) OVERRIDE; | 43 const ui::Event& event) OVERRIDE; |
44 | 44 |
45 NotificationList* notification_list_; | 45 NotificationList* notification_list_; |
46 views::BubbleDelegateView* bubble_; | 46 views::BubbleDelegateView* bubble_; |
47 | 47 |
48 // Buttons. Used in ButtonPressed() to check which button is pressed. | 48 // Buttons. Used in ButtonPressed() to check which button is pressed. |
49 views::Button* quiet_mode_; | 49 views::Button* quiet_mode_; |
50 views::Button* quiet_mode_1hour_; | 50 views::Button* quiet_mode_1hour_; |
51 views::Button* quiet_mode_1day_; | 51 views::Button* quiet_mode_1day_; |
52 | 52 |
53 DISALLOW_COPY_AND_ASSIGN(QuietModeBubble); | 53 DISALLOW_COPY_AND_ASSIGN(QuietModeBubble); |
54 }; | 54 }; |
55 | 55 |
56 } // namespace messge_center | 56 } // namespace messge_center |
57 | 57 |
58 #endif // UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | 58 #endif // UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ |
OLD | NEW |