| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 gfx::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 Profile* profile); | |
| 155 | 154 |
| 156 // Returns true if Bookmarks Bar is currently detached from the Toolbar. | 155 // Returns true if Bookmarks Bar is currently detached from the Toolbar. |
| 157 bool IsDetached() const; | 156 bool IsDetached() const; |
| 158 | 157 |
| 159 // Returns the current amount of overlap atop the browser toolbar. | 158 // Returns the current amount of overlap atop the browser toolbar. |
| 160 int GetToolbarOverlap() const; | 159 int GetToolbarOverlap() const; |
| 161 | 160 |
| 162 // views::View: | 161 // views::View: |
| 163 gfx::Size GetPreferredSize() const override; | 162 gfx::Size GetPreferredSize() const override; |
| 164 gfx::Size GetMinimumSize() const override; | 163 gfx::Size GetMinimumSize() const override; |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 | 456 |
| 458 base::ObserverList<BookmarkBarViewObserver> observers_; | 457 base::ObserverList<BookmarkBarViewObserver> observers_; |
| 459 | 458 |
| 460 // Factory used to delay showing of the drop menu. | 459 // Factory used to delay showing of the drop menu. |
| 461 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; | 460 base::WeakPtrFactory<BookmarkBarView> show_folder_method_factory_; |
| 462 | 461 |
| 463 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); | 462 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); |
| 464 }; | 463 }; |
| 465 | 464 |
| 466 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 465 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ |
| OLD | NEW |