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

Side by Side Diff: chrome/browser/media_galleries/media_gallery_context_menu.cc

Issue 2140963002: Added default implementations of GetAcceleratorForCommandId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@acceleratorprovider-const
Patch Set: Rebase. 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/media_galleries/media_gallery_context_menu.h" 5 #include "chrome/browser/media_galleries/media_gallery_context_menu.h"
6 #include "chrome/grit/generated_resources.h" 6 #include "chrome/grit/generated_resources.h"
7 #include "ui/base/l10n/l10n_util.h" 7 #include "ui/base/l10n/l10n_util.h"
8 #include "ui/base/models/menu_model.h" 8 #include "ui/base/models/menu_model.h"
9 9
10 MediaGalleryContextMenu::MediaGalleryContextMenu( 10 MediaGalleryContextMenu::MediaGalleryContextMenu(
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 23
24 bool MediaGalleryContextMenu::IsCommandIdEnabled(int command_id) const { 24 bool MediaGalleryContextMenu::IsCommandIdEnabled(int command_id) const {
25 return true; 25 return true;
26 } 26 }
27 27
28 bool MediaGalleryContextMenu::IsCommandIdVisible(int command_id) const { 28 bool MediaGalleryContextMenu::IsCommandIdVisible(int command_id) const {
29 return true; 29 return true;
30 } 30 }
31 31
32 bool MediaGalleryContextMenu::GetAcceleratorForCommandId(
33 int command_id,
34 ui::Accelerator* accelerator) const {
35 return false;
36 }
37
38 void MediaGalleryContextMenu::ExecuteCommand(int command_id, int event_flags) { 32 void MediaGalleryContextMenu::ExecuteCommand(int command_id, int event_flags) {
39 callback_.Run(pref_id_); 33 callback_.Run(pref_id_);
40 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698