| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WRENCH_MENU_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 const ui::OSExchangeData& data) OVERRIDE; | 66 const ui::OSExchangeData& data) OVERRIDE; |
| 67 virtual int GetDropOperation(views::MenuItemView* item, | 67 virtual int GetDropOperation(views::MenuItemView* item, |
| 68 const ui::DropTargetEvent& event, | 68 const ui::DropTargetEvent& event, |
| 69 DropPosition* position) OVERRIDE; | 69 DropPosition* position) OVERRIDE; |
| 70 virtual int OnPerformDrop(views::MenuItemView* menu, | 70 virtual int OnPerformDrop(views::MenuItemView* menu, |
| 71 DropPosition position, | 71 DropPosition position, |
| 72 const ui::DropTargetEvent& event) OVERRIDE; | 72 const ui::DropTargetEvent& event) OVERRIDE; |
| 73 virtual bool ShowContextMenu(views::MenuItemView* source, | 73 virtual bool ShowContextMenu(views::MenuItemView* source, |
| 74 int id, | 74 int id, |
| 75 const gfx::Point& p, | 75 const gfx::Point& p, |
| 76 bool is_mouse_gesture) OVERRIDE; | 76 ui::MenuSourceType source_type) OVERRIDE; |
| 77 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; | 77 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; |
| 78 virtual void WriteDragData(views::MenuItemView* sender, | 78 virtual void WriteDragData(views::MenuItemView* sender, |
| 79 ui::OSExchangeData* data) OVERRIDE; | 79 ui::OSExchangeData* data) OVERRIDE; |
| 80 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; | 80 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; |
| 81 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; | 81 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; |
| 82 virtual bool IsItemChecked(int id) const OVERRIDE; | 82 virtual bool IsItemChecked(int id) const OVERRIDE; |
| 83 virtual bool IsCommandEnabled(int id) const OVERRIDE; | 83 virtual bool IsCommandEnabled(int id) const OVERRIDE; |
| 84 virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE; | 84 virtual void ExecuteCommand(int id, int mouse_event_flags) OVERRIDE; |
| 85 virtual bool GetAccelerator(int id, ui::Accelerator* accelerator) OVERRIDE; | 85 virtual bool GetAccelerator(int id, ui::Accelerator* accelerator) OVERRIDE; |
| 86 virtual void WillShowMenu(views::MenuItemView* menu) OVERRIDE; | 86 virtual void WillShowMenu(views::MenuItemView* menu) OVERRIDE; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 content::NotificationRegistrar registrar_; | 172 content::NotificationRegistrar registrar_; |
| 173 | 173 |
| 174 const bool use_new_menu_; | 174 const bool use_new_menu_; |
| 175 | 175 |
| 176 const bool supports_new_separators_; | 176 const bool supports_new_separators_; |
| 177 | 177 |
| 178 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 178 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ | 181 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ |
| OLD | NEW |