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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual bool IsTriggerableEvent(views::MenuItemView* menu, | 43 virtual bool IsTriggerableEvent(views::MenuItemView* menu, |
44 const ui::Event& e) OVERRIDE; | 44 const ui::Event& e) OVERRIDE; |
45 virtual bool GetDropFormats( | 45 virtual bool GetDropFormats( |
46 views::MenuItemView* menu, | 46 views::MenuItemView* menu, |
47 int* formats, | 47 int* formats, |
48 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | 48 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; |
49 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; | 49 virtual bool AreDropTypesRequired(views::MenuItemView* menu) OVERRIDE; |
50 virtual bool CanDrop(views::MenuItemView* menu, | 50 virtual bool CanDrop(views::MenuItemView* menu, |
51 const ui::OSExchangeData& data) OVERRIDE; | 51 const ui::OSExchangeData& data) OVERRIDE; |
52 virtual int GetDropOperation(views::MenuItemView* item, | 52 virtual int GetDropOperation(views::MenuItemView* item, |
53 const views::DropTargetEvent& event, | 53 const ui::DropTargetEvent& event, |
54 DropPosition* position) OVERRIDE; | 54 DropPosition* position) OVERRIDE; |
55 virtual int OnPerformDrop(views::MenuItemView* menu, | 55 virtual int OnPerformDrop(views::MenuItemView* menu, |
56 DropPosition position, | 56 DropPosition position, |
57 const views::DropTargetEvent& event) OVERRIDE; | 57 const ui::DropTargetEvent& event) OVERRIDE; |
58 virtual bool ShowContextMenu(views::MenuItemView* source, | 58 virtual bool ShowContextMenu(views::MenuItemView* source, |
59 int id, | 59 int id, |
60 const gfx::Point& p, | 60 const gfx::Point& p, |
61 bool is_mouse_gesture) OVERRIDE; | 61 bool is_mouse_gesture) OVERRIDE; |
62 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; | 62 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; |
63 virtual void WriteDragData(views::MenuItemView* sender, | 63 virtual void WriteDragData(views::MenuItemView* sender, |
64 ui::OSExchangeData* data) OVERRIDE; | 64 ui::OSExchangeData* data) OVERRIDE; |
65 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; | 65 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; |
66 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; | 66 virtual int GetMaxWidthForMenu(views::MenuItemView* menu) OVERRIDE; |
67 virtual bool IsItemChecked(int id) const OVERRIDE; | 67 virtual bool IsItemChecked(int id) const OVERRIDE; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 | 147 |
148 // ID to use for the items representing bookmarks in the bookmark menu. | 148 // ID to use for the items representing bookmarks in the bookmark menu. |
149 int first_bookmark_command_id_; | 149 int first_bookmark_command_id_; |
150 | 150 |
151 content::NotificationRegistrar registrar_; | 151 content::NotificationRegistrar registrar_; |
152 | 152 |
153 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); | 153 DISALLOW_COPY_AND_ASSIGN(WrenchMenu); |
154 }; | 154 }; |
155 | 155 |
156 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ | 156 #endif // CHROME_BROWSER_UI_VIEWS_WRENCH_MENU_H_ |
OLD | NEW |