| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 ui::MenuSourceType source_type) OVERRIDE; | 85 ui::MenuSourceType source_type) OVERRIDE; |
| 86 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; | 86 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; |
| 87 virtual void WriteDragData(views::MenuItemView* sender, | 87 virtual void WriteDragData(views::MenuItemView* sender, |
| 88 ui::OSExchangeData* data) OVERRIDE; | 88 ui::OSExchangeData* data) OVERRIDE; |
| 89 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; | 89 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; |
| 90 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; | 90 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; |
| 91 virtual bool IsItemChecked(int command_id) const OVERRIDE; | 91 virtual bool IsItemChecked(int command_id) const OVERRIDE; |
| 92 virtual bool IsCommandEnabled(int command_id) const OVERRIDE; | 92 virtual bool IsCommandEnabled(int command_id) const OVERRIDE; |
| 93 virtual void ExecuteCommand(int command_id, int mouse_event_flags) OVERRIDE; | 93 virtual void ExecuteCommand(int command_id, int mouse_event_flags) OVERRIDE; |
| 94 virtual bool GetAccelerator(int command_id, | 94 virtual bool GetAccelerator(int command_id, |
| 95 ui::Accelerator* accelerator) OVERRIDE; | 95 ui::Accelerator* accelerator) const OVERRIDE; |
| 96 virtual void WillShowMenu(views::MenuItemView* menu) OVERRIDE; | 96 virtual void WillShowMenu(views::MenuItemView* menu) OVERRIDE; |
| 97 virtual void WillHideMenu(views::MenuItemView* menu) OVERRIDE; | 97 virtual void WillHideMenu(views::MenuItemView* menu) OVERRIDE; |
| 98 | 98 |
| 99 // BaseBookmarkModelObserver overrides: | 99 // BaseBookmarkModelObserver overrides: |
| 100 virtual void BookmarkModelChanged() OVERRIDE; | 100 virtual void BookmarkModelChanged() OVERRIDE; |
| 101 | 101 |
| 102 // content::NotificationObserver overrides: | 102 // content::NotificationObserver overrides: |
| 103 virtual void Observe(int type, | 103 virtual void Observe(int type, |
| 104 const content::NotificationSource& source, | 104 const content::NotificationSource& source, |
| 105 const content::NotificationDetails& details) OVERRIDE; | 105 const content::NotificationDetails& details) OVERRIDE; |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 const bool use_new_menu_; | 183 const bool use_new_menu_; |
| 184 | 184 |
| 185 const bool supports_new_separators_; | 185 const bool supports_new_separators_; |
| 186 | 186 |
| 187 ObserverList<WrenchMenuObserver> observer_list_; | 187 ObserverList<WrenchMenuObserver> observer_list_; |
| 188 | 188 |
| 189 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 189 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
| 190 }; | 190 }; |
| 191 | 191 |
| 192 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ | 192 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_WRENCH_MENU_H_ |
| OLD | NEW |