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

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: Remove GetInternalHeightImpl 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fd0b62a014901d386edd78fa37770ae18255f331..34e4464ecd5cb73dd156e2d0a970fdd2757f10ba 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -312,8 +312,11 @@ class LocationBarView : public LocationBar,
const content::NotificationSource& source,
const content::NotificationDetails& details) OVERRIDE;
- // Calculates the height of the view.
- int GetHeight();
+ // Returns the height of the control without the top and bottom
+ // edges(i.e. the height of the edit control inside). If
+ // |use_preferred_size| is true this will be the preferred height,
+ // otherwise it will be the current height.
+ int GetInternalHeight(bool use_preferred_size);
// Space between items in the location bar.
static int GetItemPadding();
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698