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

Unified Diff: chrome/browser/ui/views/location_bar/keyword_hint_view.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/location_bar/keyword_hint_view.cc
diff --git a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
index a95b7df181795f74068ec737a43eda55244fa7fa..e3f206135e0cd92170caa1d58eba37106cfcd8ac 100644
--- a/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
+++ b/chrome/browser/ui/views/location_bar/keyword_hint_view.cc
@@ -65,7 +65,7 @@ void KeywordHintView::SetKeyword(const base::string16& keyword) {
trailing_label_->SetText(keyword_hint.substr(content_param_offsets.front()));
}
-gfx::Size KeywordHintView::GetPreferredSize() {
+gfx::Size KeywordHintView::GetPreferredSize() const {
// Height will be ignored by the LocationBarView.
return gfx::Size(leading_label_->GetPreferredSize().width() +
tab_image_->GetPreferredSize().width() +
@@ -73,7 +73,7 @@ gfx::Size KeywordHintView::GetPreferredSize() {
0);
}
-gfx::Size KeywordHintView::GetMinimumSize() {
+gfx::Size KeywordHintView::GetMinimumSize() const {
// Height will be ignored by the LocationBarView.
return tab_image_->GetPreferredSize();
}
« no previous file with comments | « chrome/browser/ui/views/location_bar/keyword_hint_view.h ('k') | chrome/browser/ui/views/location_bar/location_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698