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

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_context_menu.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h" 9 #include "chrome/browser/ui/bookmarks/bookmark_context_menu_controller.h"
10 #include "ui/views/controls/menu/menu_delegate.h" 10 #include "ui/views/controls/menu/menu_delegate.h"
(...skipping 27 matching lines...) Expand all
38 views::Widget* parent_widget, 38 views::Widget* parent_widget,
39 Browser* browser, 39 Browser* browser,
40 Profile* profile, 40 Profile* profile,
41 content::PageNavigator* page_navigator, 41 content::PageNavigator* page_navigator,
42 const BookmarkNode* parent, 42 const BookmarkNode* parent,
43 const std::vector<const BookmarkNode*>& selection, 43 const std::vector<const BookmarkNode*>& selection,
44 bool close_on_remove); 44 bool close_on_remove);
45 virtual ~BookmarkContextMenu(); 45 virtual ~BookmarkContextMenu();
46 46
47 // Shows the context menu at the specified point. 47 // Shows the context menu at the specified point.
48 void RunMenuAt(const gfx::Point& point); 48 void RunMenuAt(const gfx::Point& point,
49 ui::MenuSourceType source_type);
49 50
50 views::MenuItemView* menu() const { return menu_; } 51 views::MenuItemView* menu() const { return menu_; }
51 52
52 void set_observer(BookmarkContextMenuObserver* observer) { 53 void set_observer(BookmarkContextMenuObserver* observer) {
53 observer_ = observer; 54 observer_ = observer;
54 } 55 }
55 56
56 // Sets the PageNavigator. 57 // Sets the PageNavigator.
57 void SetPageNavigator(content::PageNavigator* navigator); 58 void SetPageNavigator(content::PageNavigator* navigator);
58 59
(...skipping 27 matching lines...) Expand all
86 87
87 BookmarkContextMenuObserver* observer_; 88 BookmarkContextMenuObserver* observer_;
88 89
89 // Should the menu close when a node is removed. 90 // Should the menu close when a node is removed.
90 bool close_on_remove_; 91 bool close_on_remove_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu); 93 DISALLOW_COPY_AND_ASSIGN(BookmarkContextMenu);
93 }; 94 };
94 95
95 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_ 96 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc ('k') | chrome/browser/ui/views/bookmarks/bookmark_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698