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

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

Issue 2879002: Reapply r50859 with chromeos fixes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: add explicit menus:: to chromeos Created 10 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/back_forward_menu_model.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_H_ 5 #ifndef CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_H_
6 #define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_H_ 6 #define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "app/menus/menu_model.h" 10 #include "app/menus/menu_model.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual int GetItemCount() const; 46 virtual int GetItemCount() const;
47 virtual ItemType GetTypeAt(int index) const; 47 virtual ItemType GetTypeAt(int index) const;
48 virtual int GetCommandIdAt(int index) const; 48 virtual int GetCommandIdAt(int index) const;
49 virtual string16 GetLabelAt(int index) const; 49 virtual string16 GetLabelAt(int index) const;
50 virtual bool IsLabelDynamicAt(int index) const; 50 virtual bool IsLabelDynamicAt(int index) const;
51 virtual bool GetAcceleratorAt(int index, 51 virtual bool GetAcceleratorAt(int index,
52 menus::Accelerator* accelerator) const; 52 menus::Accelerator* accelerator) const;
53 virtual bool IsItemCheckedAt(int index) const; 53 virtual bool IsItemCheckedAt(int index) const;
54 virtual int GetGroupIdAt(int index) const; 54 virtual int GetGroupIdAt(int index) const;
55 virtual bool GetIconAt(int index, SkBitmap* icon) const; 55 virtual bool GetIconAt(int index, SkBitmap* icon) const;
56 virtual menus::ButtonMenuItemModel* GetButtonMenuItemAt(int index) const;
56 virtual bool IsEnabledAt(int index) const; 57 virtual bool IsEnabledAt(int index) const;
57 virtual MenuModel* GetSubmenuModelAt(int index) const; 58 virtual MenuModel* GetSubmenuModelAt(int index) const;
58 virtual void HighlightChangedTo(int index); 59 virtual void HighlightChangedTo(int index);
59 virtual void ActivatedAt(int index); 60 virtual void ActivatedAt(int index);
60 61
61 // Navigates to the corresponding history item, opening it in a new tab 62 // Navigates to the corresponding history item, opening it in a new tab
62 // if necessary. 63 // if necessary.
63 void ActivatedAtWithDisposition(int index, 64 void ActivatedAtWithDisposition(int index,
64 WindowOpenDisposition disposition); 65 WindowOpenDisposition disposition);
65 virtual void MenuWillShow(); 66 virtual void MenuWillShow();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 165
165 friend class BackFwdMenuModelTest; 166 friend class BackFwdMenuModelTest;
166 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, BasicCase); 167 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, BasicCase);
167 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, MaxItemsTest); 168 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, MaxItemsTest);
168 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, ChapterStops); 169 FRIEND_TEST_ALL_PREFIXES(BackFwdMenuModelTest, ChapterStops);
169 170
170 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModel); 171 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModel);
171 }; 172 };
172 173
173 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_H_ 174 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/back_forward_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698