| 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 COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ |
| 7 | 7 |
| 8 #include "ui/base/models/simple_menu_model.h" | 8 #include "ui/base/models/simple_menu_model.h" |
| 9 | 9 |
| 10 namespace translate { | 10 namespace translate { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 ALWAYS_TRANSLATE, | 22 ALWAYS_TRANSLATE, |
| 23 NEVER_TRANSLATE_LANGUAGE, | 23 NEVER_TRANSLATE_LANGUAGE, |
| 24 NEVER_TRANSLATE_SITE, | 24 NEVER_TRANSLATE_SITE, |
| 25 REPORT_BAD_DETECTION | 25 REPORT_BAD_DETECTION |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 explicit OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate); | 28 explicit OptionsMenuModel(TranslateInfoBarDelegate* translate_delegate); |
| 29 virtual ~OptionsMenuModel(); | 29 virtual ~OptionsMenuModel(); |
| 30 | 30 |
| 31 // ui::SimpleMenuModel::Delegate implementation: | 31 // ui::SimpleMenuModel::Delegate implementation: |
| 32 virtual bool IsCommandIdChecked(int command_id) const OVERRIDE; | 32 virtual bool IsCommandIdChecked(int command_id) const override; |
| 33 virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE; | 33 virtual bool IsCommandIdEnabled(int command_id) const override; |
| 34 virtual bool GetAcceleratorForCommandId( | 34 virtual bool GetAcceleratorForCommandId( |
| 35 int command_id, | 35 int command_id, |
| 36 ui::Accelerator* accelerator) OVERRIDE; | 36 ui::Accelerator* accelerator) override; |
| 37 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; | 37 virtual void ExecuteCommand(int command_id, int event_flags) override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 TranslateInfoBarDelegate* translate_infobar_delegate_; | 40 TranslateInfoBarDelegate* translate_infobar_delegate_; |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel); | 42 DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace translate | 45 } // namespace translate |
| 46 | 46 |
| 47 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ | 47 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ |
| OLD | NEW |