OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | |
6 #define UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | |
7 | |
8 #include "base/string16.h" | |
9 #include "ui/gfx/native_widget_types.h" | |
10 #include "ui/message_center/message_center_export.h" | |
11 #include "ui/views/controls/button/button.h" | |
12 | |
13 namespace views { | |
14 class BubbleDelegateView; | |
15 class View; | |
16 } | |
17 | |
18 namespace message_center { | |
19 class NotificationList; | |
20 | |
21 // The bubble for the quiet mode selection. Note that this isn't TrayBubbleView | |
22 // nor MessageBubbleBase because it's UI is slightly different. | |
miket_OOO
2012/11/21 01:18:21
or ("neither...nor" or "is not A or B")
its (no a
Jun Mukai
2012/11/21 19:33:06
Done.
| |
23 class MESSAGE_CENTER_EXPORT QuietModeBubble : public views::ButtonListener { | |
24 public: | |
25 QuietModeBubble(views::View* anchor_view, | |
26 gfx::NativeView parent_window, | |
27 NotificationList* notification_list); | |
28 virtual ~QuietModeBubble(); | |
29 | |
30 // Close the quiet mode bubble. | |
31 void Close(); | |
32 | |
33 views::BubbleDelegateView* bubble() { return bubble_; } | |
34 | |
35 private: | |
36 // Initialize the contents of the bubble. | |
37 void InitializeBubbleContents(); | |
38 | |
39 // views::ButtonListener overrides: | |
40 virtual void ButtonPressed(views::Button* sender, | |
41 const ui::Event& event) OVERRIDE; | |
42 | |
43 NotificationList* notification_list_; | |
44 views::BubbleDelegateView* bubble_; | |
45 | |
46 // Buttons. used in ButtonPressed() to check which button is pressed. | |
miket_OOO
2012/11/21 01:18:21
One space after period. Capitalize "used."
Jun Mukai
2012/11/21 19:33:06
Done.
| |
47 views::Button* quiet_mode_; | |
48 views::Button* quiet_mode_1hour_; | |
49 views::Button* quiet_mode_1day_; | |
50 | |
51 DISALLOW_COPY_AND_ASSIGN(QuietModeBubble); | |
52 }; | |
53 | |
54 } // namespace messge_center | |
55 | |
56 #endif // UI_MESSAGE_CENTER_QUIET_MODE_BUBBLE_H_ | |
OLD | NEW |