| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |