| 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 |
| 145 // If a button is currently throbbing, it is stopped. If immediate is true | 148 // If a button is currently throbbing, it is stopped. If immediate is true |
| 146 // the throb stops immediately, otherwise it stops after a couple more | 149 // the throb stops immediately, otherwise it stops after a couple more |
| 147 // throbs. | 150 // throbs. |
| 148 void StopThrobbing(bool immediate); | 151 void StopThrobbing(bool immediate); |
| 149 | 152 |
| 150 // Returns the tooltip text for the specified url and title. The returned | 153 // Returns the tooltip text for the specified url and title. The returned |
| 151 // text is clipped to fit within the bounds of the monitor. |context| is | 154 // text is clipped to fit within the bounds of the monitor. |context| is |
| 152 // used to determine which gfx::Screen is used to retrieve bounds. | 155 // used to determine which gfx::Screen is used to retrieve bounds. |
| 153 // | 156 // |
| 154 // Note that we adjust the direction of both the URL and the title based on | 157 // 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... |
| 445 | 448 |
| 446 BookmarkBar::State bookmark_bar_state_; | 449 BookmarkBar::State bookmark_bar_state_; |
| 447 | 450 |
| 448 // Are we animating to or from the detached state? | 451 // Are we animating to or from the detached state? |
| 449 bool animating_detached_; | 452 bool animating_detached_; |
| 450 | 453 |
| 451 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 454 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 452 }; | 455 }; |
| 453 | 456 |
| 454 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 457 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |