| OLD | NEW |
| 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_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_ |
| 6 #define CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // for the history item. | 23 // for the history item. |
| 24 BackForwardMenuModelViews(Browser* browser, | 24 BackForwardMenuModelViews(Browser* browser, |
| 25 ModelType model_type, | 25 ModelType model_type, |
| 26 views::Widget* frame); | 26 views::Widget* frame); |
| 27 | 27 |
| 28 // Overridden from views::Menu2Model: | 28 // Overridden from views::Menu2Model: |
| 29 virtual bool HasIcons() const; | 29 virtual bool HasIcons() const; |
| 30 virtual int GetItemCount() const; | 30 virtual int GetItemCount() const; |
| 31 virtual ItemType GetTypeAt(int index) const; | 31 virtual ItemType GetTypeAt(int index) const; |
| 32 virtual int GetCommandIdAt(int index) const; | 32 virtual int GetCommandIdAt(int index) const; |
| 33 virtual std::wstring GetLabelAt(int index) const; | 33 virtual string16 GetLabelAt(int index) const; |
| 34 virtual bool IsLabelDynamicAt(int index) const; | 34 virtual bool IsLabelDynamicAt(int index) const; |
| 35 virtual bool GetAcceleratorAt(int index, | 35 virtual bool GetAcceleratorAt(int index, |
| 36 views::Accelerator* accelerator) const; | 36 views::Accelerator* accelerator) const; |
| 37 virtual bool IsItemCheckedAt(int index) const; | 37 virtual bool IsItemCheckedAt(int index) const; |
| 38 virtual int GetGroupIdAt(int index) const; | 38 virtual int GetGroupIdAt(int index) const; |
| 39 virtual bool GetIconAt(int index, SkBitmap* icon) const; | 39 virtual bool GetIconAt(int index, SkBitmap* icon) const; |
| 40 virtual bool IsEnabledAt(int index) const; | 40 virtual bool IsEnabledAt(int index) const; |
| 41 virtual Menu2Model* GetSubmenuModelAt(int index) const; | 41 virtual Menu2Model* GetSubmenuModelAt(int index) const; |
| 42 virtual void HighlightChangedTo(int index); | 42 virtual void HighlightChangedTo(int index); |
| 43 virtual void ActivatedAt(int index); | 43 virtual void ActivatedAt(int index); |
| 44 virtual void MenuWillShow(); | 44 virtual void MenuWillShow(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 // The frame we ask about accelerator info. | 47 // The frame we ask about accelerator info. |
| 48 views::Widget* frame_; | 48 views::Widget* frame_; |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelViews); | 50 DISALLOW_COPY_AND_ASSIGN(BackForwardMenuModelViews); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_ | 53 #endif // CHROME_BROWSER_BACK_FORWARD_MENU_MODEL_VIEWS_H_ |
| OLD | NEW |