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_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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 virtual ~BookmarkMenuController(); | 121 virtual ~BookmarkMenuController(); |
122 | 122 |
123 scoped_ptr<views::MenuRunner> menu_runner_; | 123 scoped_ptr<views::MenuRunner> menu_runner_; |
124 | 124 |
125 scoped_ptr<BookmarkMenuDelegate> menu_delegate_; | 125 scoped_ptr<BookmarkMenuDelegate> menu_delegate_; |
126 | 126 |
127 // The node we're showing the contents of. | 127 // The node we're showing the contents of. |
128 const BookmarkNode* node_; | 128 const BookmarkNode* node_; |
129 | 129 |
130 // Data for the drop. | 130 // Data for the drop. |
131 BookmarkNodeData drop_data_; | 131 bookmarks::BookmarkNodeData drop_data_; |
132 | 132 |
133 // The observer, may be null. | 133 // The observer, may be null. |
134 BookmarkMenuControllerObserver* observer_; | 134 BookmarkMenuControllerObserver* observer_; |
135 | 135 |
136 // Is the menu being shown for a drop? | 136 // Is the menu being shown for a drop? |
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 for a | 139 // The bookmark bar. This is only non-null if we're showing a menu item for a |
140 // folder on the bookmark bar and not for drop, or if the BookmarkBarView has | 140 // folder on the bookmark bar and not for drop, or if the BookmarkBarView has |
141 // been destroyed before the menu. | 141 // been destroyed before the menu. |
142 BookmarkBarView* bookmark_bar_; | 142 BookmarkBarView* bookmark_bar_; |
143 | 143 |
144 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); | 144 DISALLOW_COPY_AND_ASSIGN(BookmarkMenuController); |
145 }; | 145 }; |
146 | 146 |
147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ | 147 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_MENU_CONTROLLER_VIEWS_H_ |
OLD | NEW |