Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_menu_controller_views.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_CONTROLLER_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 const ui::OSExchangeData& data) OVERRIDE; 92 const ui::OSExchangeData& data) OVERRIDE;
93 virtual int GetDropOperation(views::MenuItemView* item, 93 virtual int GetDropOperation(views::MenuItemView* item,
94 const ui::DropTargetEvent& event, 94 const ui::DropTargetEvent& event,
95 DropPosition* position) OVERRIDE; 95 DropPosition* position) OVERRIDE;
96 virtual int OnPerformDrop(views::MenuItemView* menu, 96 virtual int OnPerformDrop(views::MenuItemView* menu,
97 DropPosition position, 97 DropPosition position,
98 const ui::DropTargetEvent& event) OVERRIDE; 98 const ui::DropTargetEvent& event) OVERRIDE;
99 virtual bool ShowContextMenu(views::MenuItemView* source, 99 virtual bool ShowContextMenu(views::MenuItemView* source,
100 int id, 100 int id,
101 const gfx::Point& p, 101 const gfx::Point& p,
102 bool is_mouse_gesture) OVERRIDE; 102 ui::MenuSourceType source_type) OVERRIDE;
103 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE; 103 virtual void DropMenuClosed(views::MenuItemView* menu) OVERRIDE;
104 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE; 104 virtual bool CanDrag(views::MenuItemView* menu) OVERRIDE;
105 virtual void WriteDragData(views::MenuItemView* sender, 105 virtual void WriteDragData(views::MenuItemView* sender,
106 ui::OSExchangeData* data) OVERRIDE; 106 ui::OSExchangeData* data) OVERRIDE;
107 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE; 107 virtual int GetDragOperations(views::MenuItemView* sender) OVERRIDE;
108 virtual views::MenuItemView* GetSiblingMenu( 108 virtual views::MenuItemView* GetSiblingMenu(
109 views::MenuItemView* menu, 109 views::MenuItemView* menu,
110 const gfx::Point& screen_point, 110 const gfx::Point& screen_point,
111 views::MenuItemView::AnchorPosition* anchor, 111 views::MenuItemView::AnchorPosition* anchor,
112 bool* has_mnemonics, 112 bool* has_mnemonics,
(...skipping 24 matching lines...) Expand all
137 bool for_drop_; 137 bool for_drop_;
138 138
139 // The bookmark bar. This is only non-null if we're showing a menu item 139 // The bookmark bar. This is only non-null if we're showing a menu item
140 // for a folder on the bookmark bar and not for drop. 140 // for a folder on the bookmark bar and not for drop.
141 BookmarkBarView* bookmark_bar_; 141 BookmarkBarView* bookmark_bar_;
142 142
143 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); 143 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController);
144 }; 144 };
145 145
146 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ 146 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698