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_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool IsTriggerableEvent(views::MenuItemView* menu, | 95 bool IsTriggerableEvent(views::MenuItemView* menu, |
96 const ui::Event& e); | 96 const ui::Event& e); |
97 void ExecuteCommand(int id, int mouse_event_flags); | 97 void ExecuteCommand(int id, int mouse_event_flags); |
98 bool GetDropFormats( | 98 bool GetDropFormats( |
99 views::MenuItemView* menu, | 99 views::MenuItemView* menu, |
100 int* formats, | 100 int* formats, |
101 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); | 101 std::set<ui::OSExchangeData::CustomFormat>* custom_formats); |
102 bool AreDropTypesRequired(views::MenuItemView* menu); | 102 bool AreDropTypesRequired(views::MenuItemView* menu); |
103 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data); | 103 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data); |
104 int GetDropOperation(views::MenuItemView* item, | 104 int GetDropOperation(views::MenuItemView* item, |
105 const views::DropTargetEvent& event, | 105 const ui::DropTargetEvent& event, |
106 views::MenuDelegate::DropPosition* position); | 106 views::MenuDelegate::DropPosition* position); |
107 int OnPerformDrop(views::MenuItemView* menu, | 107 int OnPerformDrop(views::MenuItemView* menu, |
108 views::MenuDelegate::DropPosition position, | 108 views::MenuDelegate::DropPosition position, |
109 const views::DropTargetEvent& event); | 109 const ui::DropTargetEvent& event); |
110 bool ShowContextMenu(views::MenuItemView* source, | 110 bool ShowContextMenu(views::MenuItemView* source, |
111 int id, | 111 int id, |
112 const gfx::Point& p, | 112 const gfx::Point& p, |
113 bool is_mouse_gesture); | 113 bool is_mouse_gesture); |
114 bool CanDrag(views::MenuItemView* menu); | 114 bool CanDrag(views::MenuItemView* menu); |
115 void WriteDragData(views::MenuItemView* sender, ui::OSExchangeData* data); | 115 void WriteDragData(views::MenuItemView* sender, ui::OSExchangeData* data); |
116 int GetDragOperations(views::MenuItemView* sender); | 116 int GetDragOperations(views::MenuItemView* sender); |
117 int GetMaxWidthForMenu(views::MenuItemView* menu); | 117 int GetMaxWidthForMenu(views::MenuItemView* menu); |
118 | 118 |
119 // BookmarkModelObserver methods. | 119 // BookmarkModelObserver methods. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // Is the model being changed? | 202 // Is the model being changed? |
203 bool is_mutating_model_; | 203 bool is_mutating_model_; |
204 | 204 |
205 // The location where this bookmark menu will be displayed (for UMA). | 205 // The location where this bookmark menu will be displayed (for UMA). |
206 bookmark_utils::BookmarkLaunchLocation location_; | 206 bookmark_utils::BookmarkLaunchLocation location_; |
207 | 207 |
208 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); | 208 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); |
209 }; | 209 }; |
210 | 210 |
211 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 211 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
OLD | NEW |