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

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

Issue 10519008: Enlarge size of touch target for several location bar buttons without affecting visual layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge to LKGR Created 8 years, 6 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/chrome_to_mobile_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/chrome_to_mobile_view.h
diff --git a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h
index 56705682bbe3ea6bb944e2e5b9dfc3748a327e95..51c3d312e588c280a5395cd680cf84e403e7f969 100644
--- a/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h
+++ b/chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h
@@ -7,6 +7,7 @@
#pragma once
#include "chrome/browser/command_updater.h"
+#include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h"
#include "ui/views/controls/image_view.h"
class LocationBarView;
@@ -18,7 +19,8 @@ class MouseEvent;
// A Page Action image view for the Chrome To Mobile bubble.
class ChromeToMobileView : public views::ImageView,
- public CommandUpdater::CommandObserver {
+ public CommandUpdater::CommandObserver,
+ public TouchableLocationBarView {
public:
ChromeToMobileView(LocationBarView* location_bar_view,
CommandUpdater* command_updater);
@@ -27,6 +29,9 @@ class ChromeToMobileView : public views::ImageView,
// CommandUpdater::CommandObserver overrides:
virtual void EnabledStateChangedForCommand(int id, bool enabled) OVERRIDE;
+ // TouchableLocationBarView.
+ virtual int GetBuiltInHorizontalPadding() const OVERRIDE;
+
private:
// views::ImageView overrides:
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698