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

Unified Diff: ui/base/models/simple_menu_model.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/models/button_menu_item_model.h ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.h
diff --git a/ui/base/models/simple_menu_model.h b/ui/base/models/simple_menu_model.h
index 639830d10717c9a291b91ccd900974b47bc85b76..c86f958bf3175352429e2e0609d4c316e5e3cc93 100644
--- a/ui/base/models/simple_menu_model.h
+++ b/ui/base/models/simple_menu_model.h
@@ -39,7 +39,7 @@ class UI_BASE_EXPORT SimpleMenuModel : public MenuModel {
// command id has a valid accelerator, false otherwise.
virtual bool GetAcceleratorForCommandId(
int command_id,
- ui::Accelerator* accelerator) = 0;
+ ui::Accelerator* accelerator) const = 0;
// Some command ids have labels, sublabels, minor text and icons that change
// over time.
@@ -134,7 +134,7 @@ class UI_BASE_EXPORT SimpleMenuModel : public MenuModel {
// Returns the index of the item that has the given |command_id|. Returns
// -1 if not found.
- int GetIndexOfCommandId(int command_id);
+ int GetIndexOfCommandId(int command_id) const;
// Overridden from MenuModel:
bool HasIcons() const override;
« no previous file with comments | « ui/base/models/button_menu_item_model.h ('k') | ui/base/models/simple_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698