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

Side by Side Diff: components/translate/core/browser/options_menu_model.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 #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 class TranslateInfoBarDelegate; 11 class TranslateInfoBarDelegate;
droger 2014/07/09 07:52:43 Nit: move the forward declaration of TranslateInfo
nshaik 2014/07/09 08:56:51 Done.
12 }
13
14 namespace translate {
11 15
12 // A menu model that builds the contents of the options menu in the translate 16 // A menu model that builds the contents of the options menu in the translate
13 // infobar. This menu has only one level (no submenus). 17 // infobar. This menu has only one level (no submenus).
14 class OptionsMenuModel : public ui::SimpleMenuModel, 18 class OptionsMenuModel : public ui::SimpleMenuModel,
15 public ui::SimpleMenuModel::Delegate { 19 public ui::SimpleMenuModel::Delegate {
16 public: 20 public:
17 // Command IDs of the items in this menu; exposed for testing. 21 // Command IDs of the items in this menu; exposed for testing.
18 enum CommandID { 22 enum CommandID {
19 ABOUT_TRANSLATE = 0, 23 ABOUT_TRANSLATE = 0,
20 ALWAYS_TRANSLATE, 24 ALWAYS_TRANSLATE,
(...skipping 12 matching lines...) Expand all
33 int command_id, 37 int command_id,
34 ui::Accelerator* accelerator) OVERRIDE; 38 ui::Accelerator* accelerator) OVERRIDE;
35 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE; 39 virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
36 40
37 private: 41 private:
38 TranslateInfoBarDelegate* translate_infobar_delegate_; 42 TranslateInfoBarDelegate* translate_infobar_delegate_;
39 43
40 DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel); 44 DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel);
41 }; 45 };
42 46
47 } // namespace translate
48
43 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_ 49 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_OPTIONS_MENU_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698