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

Side by Side Diff: chrome/browser/ui/toolbar/back_forward_menu_model.h

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: And another merge! Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual ~BackForwardMenuModel(); 46 virtual ~BackForwardMenuModel();
47 47
48 // MenuModel implementation. 48 // MenuModel implementation.
49 virtual bool HasIcons() const OVERRIDE; 49 virtual bool HasIcons() const OVERRIDE;
50 // Returns how many items the menu should show, including history items, 50 // Returns how many items the menu should show, including history items,
51 // chapter-stops, separators and the Show Full History link. This function 51 // chapter-stops, separators and the Show Full History link. This function
52 // uses GetHistoryItemCount() and GetChapterStopCount() internally to figure 52 // uses GetHistoryItemCount() and GetChapterStopCount() internally to figure
53 // out the total number of items to show. 53 // out the total number of items to show.
54 virtual int GetItemCount() const OVERRIDE; 54 virtual int GetItemCount() const OVERRIDE;
55 virtual ItemType GetTypeAt(int index) const OVERRIDE; 55 virtual ItemType GetTypeAt(int index) const OVERRIDE;
56 virtual ui::MenuSeparatorType GetSeparatorTypeAt(int index) const OVERRIDE;
56 virtual int GetCommandIdAt(int index) const OVERRIDE; 57 virtual int GetCommandIdAt(int index) const OVERRIDE;
57 virtual string16 GetLabelAt(int index) const OVERRIDE; 58 virtual string16 GetLabelAt(int index) const OVERRIDE;
58 virtual bool IsItemDynamicAt(int index) const OVERRIDE; 59 virtual bool IsItemDynamicAt(int index) const OVERRIDE;
59 virtual bool GetAcceleratorAt(int index, 60 virtual bool GetAcceleratorAt(int index,
60 ui::Accelerator* accelerator) const OVERRIDE; 61 ui::Accelerator* accelerator) const OVERRIDE;
61 virtual bool IsItemCheckedAt(int index) const OVERRIDE; 62 virtual bool IsItemCheckedAt(int index) const OVERRIDE;
62 virtual int GetGroupIdAt(int index) const OVERRIDE; 63 virtual int GetGroupIdAt(int index) const OVERRIDE;
63 virtual bool GetIconAt(int index, gfx::Image* icon) OVERRIDE; 64 virtual bool GetIconAt(int index, gfx::Image* icon) OVERRIDE;
64 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt( 65 virtual ui::ButtonMenuItemModel* GetButtonMenuItemAt(
65 int index) const OVERRIDE; 66 int index) const OVERRIDE;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Used for loading favicons from history. 199 // Used for loading favicons from history.
199 CancelableRequestConsumerTSimple<int> load_consumer_; 200 CancelableRequestConsumerTSimple<int> load_consumer_;
200 201
201 // Used for receiving notifications when an icon is changed. 202 // Used for receiving notifications when an icon is changed.
202 ui::MenuModelDelegate* menu_model_delegate_; 203 ui::MenuModelDelegate* menu_model_delegate_;
203 204
204 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModel); 205 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModel);
205 }; 206 };
206 207
207 #endif // CHROME_BROWSER_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_ 208 #endif // CHROME_BROWSER_UI_TOOLBAR_BACK_FORWARD_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/action_box_menu_model.cc ('k') | chrome/browser/ui/toolbar/back_forward_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698