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

Side by Side Diff: chrome/browser/translate/options_menu_model2.h

Issue 2602003: Refactored the translate infobars. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Synced Created 10 years, 6 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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_TRANSLATE_OPTIONS_MENU_MODEL2_H_
6 #define CHROME_BROWSER_TRANSLATE_OPTIONS_MENU_MODEL2_H_
7
8 #include "app/menus/simple_menu_model.h"
9
10 class TranslateInfoBarDelegate2;
11 class String16;
12
13 // A menu model that builds the contents of the options menu in the translate
14 // infobar. This menu has only one level (no submenus).
15 class OptionsMenuModel2 : public menus::SimpleMenuModel,
16 public menus::SimpleMenuModel::Delegate {
17 public:
18 explicit OptionsMenuModel2(TranslateInfoBarDelegate2* translate_delegate);
19 virtual ~OptionsMenuModel2();
20
21 // menus::SimpleMenuModel::Delegate implementation:
22 virtual bool IsCommandIdChecked(int command_id) const;
23 virtual bool IsCommandIdEnabled(int command_id) const;
24 virtual bool GetAcceleratorForCommandId(int command_id,
25 menus::Accelerator* accelerator);
26 virtual void ExecuteCommand(int command_id);
27
28 private:
29 TranslateInfoBarDelegate2* translate_infobar_delegate_;
30
31 DISALLOW_COPY_AND_ASSIGN(OptionsMenuModel2);
32 };
33
34 #endif // CHROME_BROWSER_TRANSLATE_OPTIONS_MENU_MODEL2_H_
35
36
OLDNEW
« no previous file with comments | « chrome/browser/translate/options_menu_model.cc ('k') | chrome/browser/translate/options_menu_model2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698