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

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

Issue 247193002: Remove touch layout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 1946e5b4d2e5d800af3f1e50c1496cefa7db2192..81eced4b18b089732a91d683ec1dcb7783a345e8 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.h
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
@@ -145,12 +145,6 @@ class LocationBarView : public LocationBar,
virtual ~LocationBarView();
- // Uses GetBuiltInHorizontalPaddingForChildViews() to optionally add
- // additional padding (via an empty border) to |view|. This should be called
- // during creation on all child views which are potentially touchable so that
- // when touch is enabled they will have sufficient padding.
- static void InitTouchableLocationBarChildView(views::View* view);
-
// Initializes the LocationBarView.
void Init();
@@ -259,10 +253,6 @@ class LocationBarView : public LocationBar,
int* left_margin,
int* right_margin);
- // Space between items in the location bar, as well as between items and the
- // edges.
- static int GetItemPadding();
-
// LocationBar:
virtual void FocusLocation(bool select_all) OVERRIDE;
virtual void Revert() OVERRIDE;
@@ -284,6 +274,9 @@ class LocationBarView : public LocationBar,
static const int kNormalEdgeThickness;
// The same, but for popup mode.
static const int kPopupEdgeThickness;
+ // Space between items in the location bar, as well as between items and the
+ // edges.
+ static const int kItemPadding;
// Amount of padding built into the standard omnibox icons.
static const int kIconInternalPadding;
// Amount of padding to place between the origin chip and the leading edge of
@@ -302,11 +295,6 @@ class LocationBarView : public LocationBar,
typedef std::vector<ExtensionAction*> PageActions;
typedef std::vector<PageActionWithBadgeView*> PageActionViews;
- // Returns the number of pixels of built-in padding to the left and right for
- // child views. This is nonzero when touch UI is enabled so as to space out
- // child views for easier targeting. See InitTouchableLocationBarChildView().
- static int GetBuiltInHorizontalPaddingForChildViews();
-
// Returns the thickness of any visible left and right edge, in pixels.
int GetHorizontalEdgeThickness() const;

Powered by Google App Engine
This is Rietveld 408576698