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

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

Issue 23636010: Notifications: Add cross-platform UMA: ShowMessageCenter, ShowSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added the hash to chromeactions.txt Created 7 years, 3 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
« no previous file with comments | « ui/message_center/message_center_observer.h ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 5 #ifndef UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 6 #define UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "ui/message_center/message_center_export.h" 9 #include "ui/message_center/message_center_export.h"
10 #include "ui/message_center/message_center_observer.h" 10 #include "ui/message_center/message_center_observer.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 virtual void OnNotificationButtonClicked( 73 virtual void OnNotificationButtonClicked(
74 const std::string& notification_id, 74 const std::string& notification_id,
75 int button_index) OVERRIDE; 75 int button_index) OVERRIDE;
76 virtual void OnNotificationDisplayed( 76 virtual void OnNotificationDisplayed(
77 const std::string& notification_id) OVERRIDE; 77 const std::string& notification_id) OVERRIDE;
78 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE; 78 virtual void OnQuietModeChanged(bool in_quiet_mode) OVERRIDE;
79 79
80 private: 80 private:
81 void OnMessageCenterChanged(); 81 void OnMessageCenterChanged();
82 void NotifyMessageCenterTrayChanged(); 82 void NotifyMessageCenterTrayChanged();
83 void HidePopupBubbleInternal();
83 84
84 // |message_center_| is a weak pointer that must live longer than 85 // |message_center_| is a weak pointer that must live longer than
85 // MessageCenterTray. 86 // MessageCenterTray.
86 message_center::MessageCenter* message_center_; 87 message_center::MessageCenter* message_center_;
87 bool message_center_visible_; 88 bool message_center_visible_;
88 bool popups_visible_; 89 bool popups_visible_;
89 // |delegate_| is a weak pointer that must live longer than MessageCenterTray. 90 // |delegate_| is a weak pointer that must live longer than MessageCenterTray.
90 MessageCenterTrayDelegate* delegate_; 91 MessageCenterTrayDelegate* delegate_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray); 93 DISALLOW_COPY_AND_ASSIGN(MessageCenterTray);
93 }; 94 };
94 95
95 } // namespace message_center 96 } // namespace message_center
96 97
97 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_ 98 #endif // UI_MESSAGE_CENTER_MESSAGE_CENTER_TRAY_H_
OLDNEW
« no previous file with comments | « ui/message_center/message_center_observer.h ('k') | ui/message_center/message_center_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698