OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |