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

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

Issue 12326091: Made notification center notifications collapsed and expandable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented review suggestions. Created 7 years, 9 months 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
OLDNEW
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
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_
OLDNEW
« ui/message_center/notification_list.h ('K') | « ui/message_center/notifier_settings_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698