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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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::FontList* GetLabelFontList(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 GetBoldedDisabled(int command_id) const OVERRIDE; |
64 bool is_hovered, | |
65 SkColor* override_color) const OVERRIDE; | |
66 virtual base::string16 GetTooltipText(int command_id, | 64 virtual base::string16 GetTooltipText(int command_id, |
67 const gfx::Point& p) const OVERRIDE; | 65 const gfx::Point& p) const OVERRIDE; |
68 virtual bool IsTriggerableEvent(views::MenuItemView* menu, | 66 virtual bool IsTriggerableEvent(views::MenuItemView* menu, |
69 const ui::Event& e) OVERRIDE; | 67 const ui::Event& e) OVERRIDE; |
70 virtual bool GetDropFormats( | 68 virtual bool GetDropFormats( |
71 views::MenuItemView* menu, | 69 views::MenuItemView* menu, |
72 int* formats, | 70 int* formats, |
73 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 71 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
74 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; | 72 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; |
75 virtual bool CanDrop(views::MenuItemView* menu, | 73 virtual bool CanDrop(views::MenuItemView* menu, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const bool use_new_menu_; | 182 const bool use_new_menu_; |
185 | 183 |
186 const bool supports_new_separators_; | 184 const bool supports_new_separators_; |
187 | 185 |
188 ObserverList<WrenchMenuObserver> observer_list_; | 186 ObserverList<WrenchMenuObserver> observer_list_; |
189 | 187 |
190 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 188 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
191 }; | 189 }; |
192 | 190 |
193 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 191 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
OLD | NEW |