OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 bool IsShowing(); | 52 bool IsShowing(); |
53 | 53 |
54 const views::MenuConfig& GetMenuConfig() const; | 54 const views::MenuConfig& GetMenuConfig() const; |
55 | 55 |
56 bool use_new_menu() const { return use_new_menu_; } | 56 bool use_new_menu() const { return use_new_menu_; } |
57 | 57 |
58 void AddObserver(WrenchMenuObserver* observer); | 58 void AddObserver(WrenchMenuObserver* observer); |
59 void RemoveObserver(WrenchMenuObserver* observer); | 59 void RemoveObserver(WrenchMenuObserver* observer); |
60 | 60 |
61 // MenuDelegate overrides: | 61 // MenuDelegate overrides: |
62 virtual const gfx::Font* GetLabelFont(int command_id) const OVERRIDE; | 62 virtual const gfx::FontList* GetLabelFontList(int command_id) const OVERRIDE; |
63 virtual bool GetForegroundColor(int command_id, | 63 virtual bool GetForegroundColor(int command_id, |
64 bool is_hovered, | 64 bool is_hovered, |
65 SkColor* override_color) const OVERRIDE; | 65 SkColor* override_color) const OVERRIDE; |
66 virtual base::string16 GetTooltipText(int command_id, | 66 virtual base::string16 GetTooltipText(int command_id, |
67 const gfx::Point& p) const OVERRIDE; | 67 const gfx::Point& p) const OVERRIDE; |
68 virtual bool IsTriggerableEvent(views::MenuItemView* menu, | 68 virtual bool IsTriggerableEvent(views::MenuItemView* menu, |
69 const ui::Event& e) OVERRIDE; | 69 const ui::Event& e) OVERRIDE; |
70 virtual bool GetDropFormats( | 70 virtual bool GetDropFormats( |
71 views::MenuItemView* menu, | 71 views::MenuItemView* menu, |
72 int* formats, | 72 int* formats, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const bool use_new_menu_; | 184 const bool use_new_menu_; |
185 | 185 |
186 const bool supports_new_separators_; | 186 const bool supports_new_separators_; |
187 | 187 |
188 ObserverList<WrenchMenuObserver> observer_list_; | 188 ObserverList<WrenchMenuObserver> observer_list_; |
189 | 189 |
190 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 190 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
191 }; | 191 }; |
192 | 192 |
193 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 193 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
OLD | NEW |