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

Side by Side Diff: chrome/browser/back_forward_menu_model_views.h

Issue 118001: Renames BackForwardMenuModelWin to BackForwardMenuModelViews.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/back_forward_menu_model_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_BACK_FORWARD_MENU_MODEL_WIN_H_ 5 #ifndef CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_
6 #define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_WIN_H_ 6 #define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 9
10 #include "chrome/browser/back_forward_menu_model.h" 10 #include "chrome/browser/back_forward_menu_model.h"
11 #include "views/controls/menu/menu.h" 11 #include "views/controls/menu/menu.h"
12 12
13 class SkBitmap; 13 class SkBitmap;
14 14
15 class BackForwardMenuModelWin : public BackForwardMenuModel, 15 class BackForwardMenuModelViews : public BackForwardMenuModel,
16 public views::Menu::Delegate { 16 public views::Menu::Delegate {
17 public: 17 public:
18 BackForwardMenuModelWin(Browser* browser, ModelType model_type); 18 BackForwardMenuModelViews(Browser* browser, ModelType model_type);
19 19
20 // Menu::Delegate 20 // Menu::Delegate
21 virtual std::wstring GetLabel(int menu_id) const; 21 virtual std::wstring GetLabel(int menu_id) const;
22 virtual const SkBitmap& GetIcon(int menu_id) const; 22 virtual const SkBitmap& GetIcon(int menu_id) const;
23 virtual bool SupportsCommand(int menu_id) const; 23 virtual bool SupportsCommand(int menu_id) const;
24 virtual bool IsCommandEnabled(int menu_id) const; 24 virtual bool IsCommandEnabled(int menu_id) const;
25 virtual bool IsItemSeparator(int menu_id) const; 25 virtual bool IsItemSeparator(int menu_id) const;
26 virtual bool HasIcon(int menu_id) const; 26 virtual bool HasIcon(int menu_id) const;
27 virtual void ExecuteCommand(int menu_id); 27 virtual void ExecuteCommand(int menu_id);
28 virtual void MenuWillShow(); 28 virtual void MenuWillShow();
29 virtual int GetItemCount() const; 29 virtual int GetItemCount() const;
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelWin); 32 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelViews);
33 }; 33 };
34 34
35 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_WIN_H_ 35 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/back_forward_menu_model_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698