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

Unified Diff: ui/base/models/simple_menu_model.cc

Issue 2138353002: SimpleMenuModel and ButtonMenuItemModel implement AcceleratorProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@menumodel-accelerator-default
Patch Set: Fix compile on Windows. 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/simple_menu_model.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/models/simple_menu_model.cc
diff --git a/ui/base/models/simple_menu_model.cc b/ui/base/models/simple_menu_model.cc
index a82ac4034a178793aacc763b58f9059917d2109c..67d7405a11eeb669443989cb558a1c795b538065 100644
--- a/ui/base/models/simple_menu_model.cc
+++ b/ui/base/models/simple_menu_model.cc
@@ -37,12 +37,6 @@ bool SimpleMenuModel::Delegate::IsCommandIdVisible(int command_id) const {
return true;
}
-bool SimpleMenuModel::Delegate::GetAcceleratorForCommandId(
- int command_id,
- ui::Accelerator* accelerator) const {
- return false;
-}
-
bool SimpleMenuModel::Delegate::IsItemForCommandIdDynamic(
int command_id) const {
return false;
@@ -77,6 +71,12 @@ void SimpleMenuModel::Delegate::MenuWillShow(SimpleMenuModel* /*source*/) {
void SimpleMenuModel::Delegate::MenuClosed(SimpleMenuModel* /*source*/) {
}
+bool SimpleMenuModel::Delegate::GetAcceleratorForCommandId(
+ int command_id,
+ ui::Accelerator* accelerator) const {
+ return false;
+}
+
////////////////////////////////////////////////////////////////////////////////
// SimpleMenuModel, public:
« no previous file with comments | « ui/base/models/simple_menu_model.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698