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

Issue 10519008: Enlarge size of touch target for several location bar buttons without affecting visual layout. (Closed)

Created:
8 years, 6 months ago by Jói
Modified:
8 years, 6 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Visibility:
Public.

Description

Enlarge size of touch target for several location bar buttons without affecting visual layout. BUG=129751 TEST=This issue affects layout code for the location bar. It should not change the visible layout at all, but in touch layout it should allow you to click just outside of the icons for many of the buttons (e.g. the bookmark star) and get a "hit" on the button. This change needs to be tested with the following different types of buttons in the location bar, in both touch (e.g. Win8 Metro) and non-touch layouts, to make sure the layout looks right: "Chrome to Mobile" button, content settings button (e.g. blocked JavaScript, blocked plug-ins), page action buttons (from extensions), the location icon (far left of the omnibox, normally) and the bookmark star (far right). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=142124

Patch Set 1 #

Patch Set 2 : Merge to LKGR #

Total comments: 4

Patch Set 3 : Pure merge to LKGR #

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Remove unnecessary .cc file #

Total comments: 2

Patch Set 6 : Order of declarations. #

Patch Set 7 : Remove multiple implementation inheritance. #

Total comments: 2

Patch Set 8 : Fix comment. #

Patch Set 9 : Pure merge to LKGR #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -14 lines) Patch
M chrome/browser/ui/views/location_bar/chrome_to_mobile_view.h View 1 2 3 4 5 6 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/chrome_to_mobile_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 3 4 5 6 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 3 chunks +15 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_icon_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_with_badge_view.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/page_action_with_badge_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.h View 1 2 3 4 5 6 3 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/star_view.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/touchable_location_bar_view.h View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/location_bar/touchable_location_bar_view.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 18 (0 generated)
Jói
Peter, please take a look, this is per discussion in the bug on how to ...
8 years, 6 months ago (2012-06-11 13:40:04 UTC) #1
Jói
pkasting: Whoops, looks like I forgot to add you as a reviewer when I sent ...
8 years, 6 months ago (2012-06-12 21:09:17 UTC) #2
Peter Kasting
http://codereview.chromium.org/10519008/diff/2001/chrome/browser/ui/views/location_bar/touchable_location_bar_view.h File chrome/browser/ui/views/location_bar/touchable_location_bar_view.h (right): http://codereview.chromium.org/10519008/diff/2001/chrome/browser/ui/views/location_bar/touchable_location_bar_view.h#newcode16 chrome/browser/ui/views/location_bar/touchable_location_bar_view.h:16: class TouchableLocationBarViewBase { I don't understand what splitting this ...
8 years, 6 months ago (2012-06-12 22:03:52 UTC) #3
Jói
The reason for the base class is to leave code that doesn't need the template ...
8 years, 6 months ago (2012-06-12 23:23:44 UTC) #4
Peter Kasting
On 2012/06/12 23:23:44, Jói wrote: > The reason for the base class is to leave ...
8 years, 6 months ago (2012-06-12 23:27:27 UTC) #5
Jói
Thanks, will commit once I've done a quick sanity test on the new version. Cheers, ...
8 years, 6 months ago (2012-06-13 11:29:38 UTC) #6
Peter Kasting
Actually I just realized that you can probably avoid templates altogether by using composition rather ...
8 years, 6 months ago (2012-06-13 17:09:16 UTC) #7
Jói
In my opinion, using a mix-in is more elegant since there is an is-a relationship, ...
8 years, 6 months ago (2012-06-13 17:18:01 UTC) #8
Peter Kasting
On 2012/06/13 17:18:01, Jói wrote: > In my opinion, using a mix-in is more elegant ...
8 years, 6 months ago (2012-06-13 17:46:47 UTC) #9
Jói
It is called by LocationBarView in several places; since we're talking composition, either I need ...
8 years, 6 months ago (2012-06-13 17:48:36 UTC) #10
Peter Kasting
On 2012/06/13 17:48:36, Jói wrote: > It is called by LocationBarView in several places; since ...
8 years, 6 months ago (2012-06-13 18:15:36 UTC) #11
Jói
Yeah I think you're right. I don't think there will be consensus about changing the ...
8 years, 6 months ago (2012-06-13 20:52:38 UTC) #12
Jói
I implemented the pure virtual interface / static implementation methods approach, please see patch set ...
8 years, 6 months ago (2012-06-13 21:09:33 UTC) #13
Jói
pkasting: Gentle ping, hoping to land this tomorrow morning my time. Cheers, Jói On Jun ...
8 years, 6 months ago (2012-06-14 00:12:03 UTC) #14
Peter Kasting
LGTM http://codereview.chromium.org/10519008/diff/4016/chrome/browser/ui/views/location_bar/touchable_location_bar_view.h File chrome/browser/ui/views/location_bar/touchable_location_bar_view.h (right): http://codereview.chromium.org/10519008/diff/4016/chrome/browser/ui/views/location_bar/touchable_location_bar_view.h#newcode18 chrome/browser/ui/views/location_bar/touchable_location_bar_view.h:18: // To make your location bar View named ...
8 years, 6 months ago (2012-06-14 00:36:04 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/10519008/16016
8 years, 6 months ago (2012-06-14 10:04:15 UTC) #16
Jói
Thanks, fixed those and submitted to CQ. On Thu, Jun 14, 2012 at 12:36 AM, ...
8 years, 6 months ago (2012-06-14 10:05:02 UTC) #17
commit-bot: I haz the power
8 years, 6 months ago (2012-06-14 11:07:03 UTC) #18
Change committed as 142124

Powered by Google App Engine
This is Rietveld 408576698