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

Side by Side Diff: ash/system/web_notification/web_notification_tray.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 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 | « ash/shell/window_type_launcher.cc ('k') | ash/system/web_notification/web_notification_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) 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 ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 5 #ifndef ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 6 #define ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/system/tray/tray_background_view.h" 9 #include "ash/system/tray/tray_background_view.h"
10 #include "ash/system/user/login_status.h" 10 #include "ash/system/user/login_status.h"
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 void UpdateTrayContent(); 119 void UpdateTrayContent();
120 120
121 // Queries login status and the status area widget to determine visibility of 121 // Queries login status and the status area widget to determine visibility of
122 // the message center. 122 // the message center.
123 bool ShouldShowMessageCenter(); 123 bool ShouldShowMessageCenter();
124 124
125 // Returns true if it should show the quiet mode menu. 125 // Returns true if it should show the quiet mode menu.
126 bool ShouldShowQuietModeMenu(const ui::Event& event); 126 bool ShouldShowQuietModeMenu(const ui::Event& event);
127 127
128 // Shows the quiet mode menu. 128 // Shows the quiet mode menu.
129 void ShowQuietModeMenu(); 129 void ShowQuietModeMenu(const ui::Event& event);
130 130
131 internal::WebNotificationBubbleWrapper* message_center_bubble() const { 131 internal::WebNotificationBubbleWrapper* message_center_bubble() const {
132 return message_center_bubble_.get(); 132 return message_center_bubble_.get();
133 } 133 }
134 134
135 internal::WebNotificationBubbleWrapper* popup_bubble() const { 135 internal::WebNotificationBubbleWrapper* popup_bubble() const {
136 return popup_bubble_.get(); 136 return popup_bubble_.get();
137 } 137 }
138 138
139 // Testing accessors. 139 // Testing accessors.
(...skipping 17 matching lines...) Expand all
157 // the check can be called when creating this object, so it would cause 157 // the check can be called when creating this object, so it would cause
158 // flickers of the shelf from hidden to shown. See: crbug.com/181213 158 // flickers of the shelf from hidden to shown. See: crbug.com/181213
159 bool should_block_shelf_auto_hide_; 159 bool should_block_shelf_auto_hide_;
160 160
161 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 161 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
162 }; 162 };
163 163
164 } // namespace ash 164 } // namespace ash
165 165
166 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 166 #endif // ASH_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW
« no previous file with comments | « ash/shell/window_type_launcher.cc ('k') | ash/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698