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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Returns the node the menu is showing for. | 65 // Returns the node the menu is showing for. |
66 const BookmarkNode* node() const { return node_; } | 66 const BookmarkNode* node() const { return node_; } |
67 | 67 |
68 // Returns the menu. | 68 // Returns the menu. |
69 views::MenuItemView* menu() const; | 69 views::MenuItemView* menu() const; |
70 | 70 |
71 // Returns the context menu, or NULL if the context menu isn't showing. | 71 // Returns the context menu, or NULL if the context menu isn't showing. |
72 views::MenuItemView* context_menu() const; | 72 views::MenuItemView* context_menu() const; |
73 | 73 |
| 74 // Sets the page navigator. |
| 75 void SetPageNavigator(PageNavigator* navigator); |
| 76 |
74 void set_observer(Observer* observer) { observer_ = observer; } | 77 void set_observer(Observer* observer) { observer_ = observer; } |
75 | 78 |
76 // MenuDelegate methods. | 79 // MenuDelegate methods. |
77 virtual std::wstring GetTooltipText(int id, const gfx::Point& p); | 80 virtual std::wstring GetTooltipText(int id, const gfx::Point& p); |
78 virtual bool IsTriggerableEvent(views::MenuItemView* view, | 81 virtual bool IsTriggerableEvent(views::MenuItemView* view, |
79 const views::MouseEvent& e); | 82 const views::MouseEvent& e); |
80 virtual void ExecuteCommand(int id, int mouse_event_flags); | 83 virtual void ExecuteCommand(int id, int mouse_event_flags); |
81 virtual bool GetDropFormats( | 84 virtual bool GetDropFormats( |
82 views::MenuItemView* menu, | 85 views::MenuItemView* menu, |
83 int* formats, | 86 int* formats, |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 bool for_drop_; | 135 bool for_drop_; |
133 | 136 |
134 // The bookmark bar. This is only non-null if we're showing a menu item | 137 // The bookmark bar. This is only non-null if we're showing a menu item |
135 // for a folder on the bookmark bar and not for drop. | 138 // for a folder on the bookmark bar and not for drop. |
136 BookmarkBarView* bookmark_bar_; | 139 BookmarkBarView* bookmark_bar_; |
137 | 140 |
138 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); | 141 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); |
139 }; | 142 }; |
140 | 143 |
141 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ | 144 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ |
OLD | NEW |