| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data); | 106 bool CanDrop(views::MenuItemView* menu, const ui::OSExchangeData& data); |
| 107 int GetDropOperation(views::MenuItemView* item, | 107 int GetDropOperation(views::MenuItemView* item, |
| 108 const ui::DropTargetEvent& event, | 108 const ui::DropTargetEvent& event, |
| 109 views::MenuDelegate::DropPosition* position); | 109 views::MenuDelegate::DropPosition* position); |
| 110 int OnPerformDrop(views::MenuItemView* menu, | 110 int OnPerformDrop(views::MenuItemView* menu, |
| 111 views::MenuDelegate::DropPosition position, | 111 views::MenuDelegate::DropPosition position, |
| 112 const ui::DropTargetEvent& event); | 112 const ui::DropTargetEvent& event); |
| 113 bool ShowContextMenu(views::MenuItemView* source, | 113 bool ShowContextMenu(views::MenuItemView* source, |
| 114 int id, | 114 int id, |
| 115 const gfx::Point& p, | 115 const gfx::Point& p, |
| 116 bool is_mouse_gesture); | 116 ui::MenuSourceType source_type); |
| 117 bool CanDrag(views::MenuItemView* menu); | 117 bool CanDrag(views::MenuItemView* menu); |
| 118 void WriteDragData(views::MenuItemView* sender, ui::OSExchangeData* data); | 118 void WriteDragData(views::MenuItemView* sender, ui::OSExchangeData* data); |
| 119 int GetDragOperations(views::MenuItemView* sender); | 119 int GetDragOperations(views::MenuItemView* sender); |
| 120 int GetMaxWidthForMenu(views::MenuItemView* menu); | 120 int GetMaxWidthForMenu(views::MenuItemView* menu); |
| 121 | 121 |
| 122 // BookmarkModelObserver methods. | 122 // BookmarkModelObserver methods. |
| 123 virtual void BookmarkModelChanged() OVERRIDE; | 123 virtual void BookmarkModelChanged() OVERRIDE; |
| 124 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, | 124 virtual void BookmarkNodeFaviconChanged(BookmarkModel* model, |
| 125 const BookmarkNode* node) OVERRIDE; | 125 const BookmarkNode* node) OVERRIDE; |
| 126 | 126 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 // Is the model being changed? | 196 // Is the model being changed? |
| 197 bool is_mutating_model_; | 197 bool is_mutating_model_; |
| 198 | 198 |
| 199 // The location where this bookmark menu will be displayed (for UMA). | 199 // The location where this bookmark menu will be displayed (for UMA). |
| 200 bookmark_utils::BookmarkLaunchLocation location_; | 200 bookmark_utils::BookmarkLaunchLocation location_; |
| 201 | 201 |
| 202 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); | 202 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuDelegate); |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ | 205 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_DELEGATE_H_ |
| OLD | NEW |