Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Side by Side Diff: ui/message_center/quiet_mode_bubble.h

Issue 11417103: Add quiet mode settings bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/message_center/notification_list.h ('k') | ui/message_center/quiet_mode_bubble.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 // or MessageBubbleBase because its UI is slightly different.
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.
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_
OLDNEW
« no previous file with comments | « ui/message_center/notification_list.h ('k') | ui/message_center/quiet_mode_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698