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

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

Issue 2133013002: AcceleratorProvider: Make GetAcceleratorForCommandId const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix overrides on Mac and Chrome OS. Created 4 years, 5 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
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_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 5 #ifndef ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
6 #define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 6 #define ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 bool ShowPopups() override; 116 bool ShowPopups() override;
117 void HidePopups() override; 117 void HidePopups() override;
118 bool ShowNotifierSettings() override; 118 bool ShowNotifierSettings() override;
119 bool IsContextMenuEnabled() const override; 119 bool IsContextMenuEnabled() const override;
120 message_center::MessageCenterTray* GetMessageCenterTray() override; 120 message_center::MessageCenterTray* GetMessageCenterTray() override;
121 121
122 // Overridden from SimpleMenuModel::Delegate. 122 // Overridden from SimpleMenuModel::Delegate.
123 bool IsCommandIdChecked(int command_id) const override; 123 bool IsCommandIdChecked(int command_id) const override;
124 bool IsCommandIdEnabled(int command_id) const override; 124 bool IsCommandIdEnabled(int command_id) const override;
125 bool GetAcceleratorForCommandId(int command_id, 125 bool GetAcceleratorForCommandId(int command_id,
126 ui::Accelerator* accelerator) override; 126 ui::Accelerator* accelerator) const override;
127 void ExecuteCommand(int command_id, int event_flags) override; 127 void ExecuteCommand(int command_id, int event_flags) override;
128 128
129 message_center::MessageCenter* message_center() const; 129 message_center::MessageCenter* message_center() const;
130 130
131 private: 131 private:
132 friend class WebNotificationTrayTest; 132 friend class WebNotificationTrayTest;
133 133
134 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications); 134 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotifications);
135 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotificationPopupBubble); 135 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, WebNotificationPopupBubble);
136 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest, 136 FRIEND_TEST_ALL_PREFIXES(WebNotificationTrayTest,
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool should_block_shelf_auto_hide_; 190 bool should_block_shelf_auto_hide_;
191 191
192 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_; 192 std::unique_ptr<AshPopupAlignmentDelegate> popup_alignment_delegate_;
193 193
194 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray); 194 DISALLOW_COPY_AND_ASSIGN(WebNotificationTray);
195 }; 195 };
196 196
197 } // namespace ash 197 } // namespace ash
198 198
199 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_ 199 #endif // ASH_COMMON_SYSTEM_WEB_NOTIFICATION_WEB_NOTIFICATION_TRAY_H_
OLDNEW
« no previous file with comments | « ash/common/shelf/shelf_alignment_menu.cc ('k') | ash/common/system/web_notification/web_notification_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698