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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 10399074: Cleanup: Rename GetHeight to more appropriate GetPreferredInternalHeight. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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/location_bar_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
index 26cdfc8180d9693999536b3c17d80b1317e11d90..66af68507d047db7a952b624bd282ef296d91f2d 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -311,8 +311,9 @@ class LocationBarView : public LocationBar,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // Calculates the height of the view.
- int GetHeight();
+ // Calculates the preferred internal height of the view, i.e. the
+ // height occupied by the edit control within it.
+ int GetPreferredInternalHeight();
Peter Kasting 2012/05/18 22:45:40 Nit: I still think this is preferable: // Retur
// Space between items in the location bar.
static int GetItemPadding();
@@ -388,6 +389,9 @@ class LocationBarView : public LocationBar,
// Helper to show the first run info bubble.
void ShowFirstRunBubbleInternal();
+ // Returns the internal height of the view after insets.
+ int GetInternalHeightImpl(int full_height);
+
// The Autocomplete Edit field.
scoped_ptr<OmniboxView> location_entry_;

Powered by Google App Engine
This is Rietveld 408576698