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_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 // Returns the active MenuItemView, or NULL if a menu isn't showing. | 136 // Returns the active MenuItemView, or NULL if a menu isn't showing. |
137 views::MenuItemView* GetMenu(); | 137 views::MenuItemView* GetMenu(); |
138 | 138 |
139 // Returns the context menu, or null if one isn't showing. | 139 // Returns the context menu, or null if one isn't showing. |
140 views::MenuItemView* GetContextMenu(); | 140 views::MenuItemView* GetContextMenu(); |
141 | 141 |
142 // Returns the drop MenuItemView, or NULL if a menu isn't showing. | 142 // Returns the drop MenuItemView, or NULL if a menu isn't showing. |
143 views::MenuItemView* GetDropMenu(); | 143 views::MenuItemView* GetDropMenu(); |
144 | 144 |
145 // Returns the BookmarkBarInstructionView, or NULL if it isn't showing. | |
146 views::View* GetBookmarkBarInstructionsView(); | |
147 | |
148 // If a button is currently throbbing, it is stopped. If immediate is true | 145 // If a button is currently throbbing, it is stopped. If immediate is true |
149 // the throb stops immediately, otherwise it stops after a couple more | 146 // the throb stops immediately, otherwise it stops after a couple more |
150 // throbs. | 147 // throbs. |
151 void StopThrobbing(bool immediate); | 148 void StopThrobbing(bool immediate); |
152 | 149 |
153 // Returns the tooltip text for the specified url and title. The returned | 150 // Returns the tooltip text for the specified url and title. The returned |
154 // text is clipped to fit within the bounds of the monitor. |context| is | 151 // text is clipped to fit within the bounds of the monitor. |context| is |
155 // used to determine which gfx::Screen is used to retrieve bounds. | 152 // used to determine which gfx::Screen is used to retrieve bounds. |
156 // | 153 // |
157 // Note that we adjust the direction of both the URL and the title based on | 154 // Note that we adjust the direction of both the URL and the title based on |
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 | 445 |
449 BookmarkBar::State bookmark_bar_state_; | 446 BookmarkBar::State bookmark_bar_state_; |
450 | 447 |
451 // Are we animating to or from the detached state? | 448 // Are we animating to or from the detached state? |
452 bool animating_detached_; | 449 bool animating_detached_; |
453 | 450 |
454 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 451 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
455 }; | 452 }; |
456 | 453 |
457 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 454 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
OLD | NEW |