OLD | NEW |
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 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ |
6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ | 6 #define CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/media_galleries/media_galleries_preferences.h" | 10 #include "chrome/browser/media_galleries/media_galleries_preferences.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 | 21 |
22 void set_pref_id(MediaGalleryPrefId pref_id) { | 22 void set_pref_id(MediaGalleryPrefId pref_id) { |
23 pref_id_ = pref_id; | 23 pref_id_ = pref_id; |
24 } | 24 } |
25 | 25 |
26 // ui::SimpleMenuModel::Delegate overrides: | 26 // ui::SimpleMenuModel::Delegate overrides: |
27 bool IsCommandIdChecked(int command_id) const override; | 27 bool IsCommandIdChecked(int command_id) const override; |
28 bool IsCommandIdEnabled(int command_id) const override; | 28 bool IsCommandIdEnabled(int command_id) const override; |
29 bool IsCommandIdVisible(int command_id) const override; | 29 bool IsCommandIdVisible(int command_id) const override; |
30 bool GetAcceleratorForCommandId(int command_id, | 30 bool GetAcceleratorForCommandId(int command_id, |
31 ui::Accelerator* accelerator) override; | 31 ui::Accelerator* accelerator) const override; |
32 void ExecuteCommand(int command_id, int event_flags) override; | 32 void ExecuteCommand(int command_id, int event_flags) override; |
33 | 33 |
34 private: | 34 private: |
35 MediaGalleryPrefId pref_id_; | 35 MediaGalleryPrefId pref_id_; |
36 ForgetGalleryCallback callback_; | 36 ForgetGalleryCallback callback_; |
37 | 37 |
38 DISALLOW_COPY_AND_ASSIGN(MediaGalleryContextMenu); | 38 DISALLOW_COPY_AND_ASSIGN(MediaGalleryContextMenu); |
39 }; | 39 }; |
40 | 40 |
41 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ | 41 #endif // CHROME_BROWSER_MEDIA_GALLERIES_MEDIA_GALLERY_CONTEXT_MENU_H_ |
OLD | NEW |