Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.h

Issue 11030017: Add context to gfx::Screen calls in support of simultaneous desktop+ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix some new gfx::Screen additions Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #include <string> 9 #include <string>
10 10
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 145 // text is clipped to fit within the bounds of the monitor.
146 // 146 //
147 // Note that we adjust the direction of both the URL and the title based on 147 // Note that we adjust the direction of both the URL and the title based on
148 // the locale so that pure LTR strings are displayed properly in RTL locales. 148 // the locale so that pure LTR strings are displayed properly in RTL locales.
oshima 2012/10/10 17:58:23 update the comment
scottmg 2012/10/10 19:04:47 Done.
149 static string16 CreateToolTipForURLAndTitle(const gfx::Point& screen_loc, 149 static string16 CreateToolTipForURLAndTitle(const gfx::Point& screen_loc,
150 const GURL& url, 150 const GURL& url,
151 const string16& title, 151 const string16& title,
152 Profile* profile); 152 Profile* profile,
153 gfx::NativeView context);
153 154
154 // DetachableToolbarView methods: 155 // DetachableToolbarView methods:
155 virtual bool IsDetached() const OVERRIDE; 156 virtual bool IsDetached() const OVERRIDE;
156 virtual double GetAnimationValue() const OVERRIDE; 157 virtual double GetAnimationValue() const OVERRIDE;
157 virtual int GetToolbarOverlap() const OVERRIDE; 158 virtual int GetToolbarOverlap() const OVERRIDE;
158 159
159 // View methods: 160 // View methods:
160 virtual gfx::Size GetPreferredSize() OVERRIDE; 161 virtual gfx::Size GetPreferredSize() OVERRIDE;
161 virtual gfx::Size GetMinimumSize() OVERRIDE; 162 virtual gfx::Size GetMinimumSize() OVERRIDE;
162 virtual void Layout() OVERRIDE; 163 virtual void Layout() OVERRIDE;
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 408
408 BookmarkBar::State bookmark_bar_state_; 409 BookmarkBar::State bookmark_bar_state_;
409 410
410 // Are we animating to or from the detached state? 411 // Are we animating to or from the detached state?
411 bool animating_detached_; 412 bool animating_detached_;
412 413
413 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView); 414 DISALLOW_COPY_AND_ASSIGN(BookmarkBarView);
414 }; 415 };
415 416
416 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ 417 #endif // CHROME_BROWSER_UI_VIEWS_BOOKMARKS_BOOKMARK_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698