| 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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // Returns the drop MenuItemView, or NULL if a menu isn't showing. | 136 // Returns the drop MenuItemView, or NULL if a menu isn't showing. |
| 137 views::MenuItemView* GetDropMenu(); | 137 views::MenuItemView* GetDropMenu(); |
| 138 | 138 |
| 139 // If a button is currently throbbing, it is stopped. If immediate is true | 139 // If a button is currently throbbing, it is stopped. If immediate is true |
| 140 // the throb stops immediately, otherwise it stops after a couple more | 140 // the throb stops immediately, otherwise it stops after a couple more |
| 141 // throbs. | 141 // throbs. |
| 142 void StopThrobbing(bool immediate); | 142 void StopThrobbing(bool immediate); |
| 143 | 143 |
| 144 // Returns the tooltip text for the specified url and title. The returned | 144 // Returns the tooltip text for the specified url and title. The returned |
| 145 // text is clipped to fit within the bounds of the monitor. |context| is | 145 // text is clipped to fit within the bounds of the monitor. |context| is |
| 146 // used to determine which gfx::Screen is used to retrieve bounds. | 146 // used to determine which display::Screen is used to retrieve bounds. |
| 147 // | 147 // |
| 148 // Note that we adjust the direction of both the URL and the title based on | 148 // Note that we adjust the direction of both the URL and the title based on |
| 149 // the locale so that pure LTR strings are displayed properly in RTL locales. | 149 // the locale so that pure LTR strings are displayed properly in RTL locales. |
| 150 static base::string16 CreateToolTipForURLAndTitle(const views::Widget* widget, | 150 static base::string16 CreateToolTipForURLAndTitle(const views::Widget* widget, |
| 151 const gfx::Point& screen_loc, | 151 const gfx::Point& screen_loc, |
| 152 const GURL& url, | 152 const GURL& url, |
| 153 const base::string16& title); | 153 const base::string16& title); |
| 154 | 154 |
| 155 // Returns true if Bookmarks Bar is currently detached from the Toolbar. | 155 // Returns true if Bookmarks Bar is currently detached from the Toolbar. |
| 156 bool IsDetached() const; | 156 bool IsDetached() const; |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 456 |
| 457 base::ObserverList<BookmarkBarViewObserver> observers_; | 457 base::ObserverList<BookmarkBarViewObserver> observers_; |
| 458 | 458 |
| 459 // Factory used to delay showing of the drop menu. | 459 // Factory used to delay showing of the drop menu. |
| 460 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; | 460 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; |
| 461 | 461 |
| 462 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 462 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 463 }; | 463 }; |
| 464 | 464 |
| 465 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 465 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |