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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index 748d84b1bb7905050fc687931783440d8cc4a27a..12e431f9db4482100c8cfc6ce9179772242cf63d 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -207,7 +207,7 @@ void BrowserActionsContainer::RemoveObserver(
observers_.RemoveObserver(observer);
}
-gfx::Size BrowserActionsContainer::GetPreferredSize() {
+gfx::Size BrowserActionsContainer::GetPreferredSize() const {
// We calculate the size of the view by taking the current width and
// subtracting resize_amount_ (the latter represents how far the user is
// resizing the view or, if animating the snapping, how far to animate it).
@@ -221,7 +221,7 @@ gfx::Size BrowserActionsContainer::GetPreferredSize() {
return gfx::Size(preferred_width, 0);
}
-gfx::Size BrowserActionsContainer::GetMinimumSize() {
+gfx::Size BrowserActionsContainer::GetMinimumSize() const {
int min_width = std::min(MinimumNonemptyWidth(), IconCountToWidth(-1, false));
// Height will be ignored by the ToolbarView.
return gfx::Size(min_width, 0);
« no previous file with comments | « chrome/browser/ui/views/toolbar/browser_actions_container.h ('k') | chrome/browser/ui/views/toolbar/toolbar_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698