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

Issue 2968713003: Harmonize the find in page dialog. (Closed)

Created:
3 years, 5 months ago by ananta
Modified:
3 years, 5 months ago
Reviewers:
Peter Kasting, blundell
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Harmonize the find in page dialog. This patch changes the insets and control spacing and the match count text We space the controls in the find bar using margins to ensure that the distances are computed to the vector image glyphs and not to the border. Next steps would be to tackle the rest of the items in this dialog for harmony BUG=651643 TBR=blundell Review-Url: https://codereview.chromium.org/2968713003 Cr-Commit-Position: refs/heads/master@{#487316} Committed: https://chromium.googlesource.com/chromium/src/+/a5f3fa6e02a96926c01d20fbf38be2257c251d49

Patch Set 1 #

Total comments: 7

Patch Set 2 : Set margins on the controls in the find bar. Experimental #

Total comments: 13

Patch Set 3 : Remove margins and just use INSETS_DIALOG_CONTROL for the dialog insets and DISTANCE_RELATED_CONTRO… #

Patch Set 4 : removed spaces #

Patch Set 5 : Added distance metrics for toast button/label/text. Using these in the find bar. #

Total comments: 12

Patch Set 6 : Fix insets and the rest of the review comments #

Patch Set 7 : Change the match text to ordinal/number of matches #

Patch Set 8 : Call through to ChromeLayoutProvider from HarmonyLayoutProvider::GetDistanceMetric() and add consta… #

Patch Set 9 : Remove NOTREACHED() #

Patch Set 10 : Remove unreachable code #

Patch Set 11 : Fix dumb error in insets code #

Total comments: 4

Patch Set 12 : Localize strings #

Patch Set 13 : Add an empty border around the separator with the same left and right values as the image button bo… #

Total comments: 2

Patch Set 14 : Revert empty border and fix test failures due to match text format change #

Patch Set 15 : Use margins to space the controls #

Patch Set 16 : Fix GlobalPasteBoardClearMatches browser test to account for the changed format of match count #

Total comments: 10

Patch Set 17 : Move INSETS_TOAST to chrome_layout_provider.cc/.h #

Patch Set 18 : Address review comments. Use insets for margin calculation #

Patch Set 19 : format fixes #

Total comments: 8

Patch Set 20 : Address review comments #

Patch Set 21 : Address review comments #

Patch Set 22 : Fix format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -26 lines) Patch
M chrome/browser/ui/find_bar/find_bar_host_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/find_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +48 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/harmony/chrome_layout_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/chrome_layout_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/harmony/harmony_layout_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -2 lines 0 comments Download
M components/find_in_page_strings.grdp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 83 (45 generated)
ananta
3 years, 5 months ago (2017-07-01 00:25:35 UTC) #2
Peter Kasting
https://codereview.chromium.org/2968713003/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode161 chrome/browser/ui/views/find_bar_view.cc:161: 0, related_control_horizontal, 0, related_control_horizontal)); It seems like this will ...
3 years, 5 months ago (2017-07-06 06:29:17 UTC) #7
ananta
https://codereview.chromium.org/2968713003/diff/1/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/1/chrome/browser/ui/views/find_bar_view.cc#newcode161 chrome/browser/ui/views/find_bar_view.cc:161: 0, related_control_horizontal, 0, related_control_horizontal)); On 2017/07/06 06:29:16, Peter Kasting ...
3 years, 5 months ago (2017-07-07 22:51:02 UTC) #10
Peter Kasting
Obviously, you'll want to implement these toast label and control distances in the layout provider ...
3 years, 5 months ago (2017-07-10 20:13:08 UTC) #11
ananta
https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode159 chrome/browser/ui/views/find_bar_view.cc:159: find_text_->SetProperty(views::kMarginsKey, new gfx::Insets(12, 0)); On 2017/07/10 20:13:08, Peter Kasting ...
3 years, 5 months ago (2017-07-12 19:19:48 UTC) #13
ananta
On 2017/07/12 19:19:48, ananta wrote: > https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc > File chrome/browser/ui/views/find_bar_view.cc (right): > > https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode159 > ...
3 years, 5 months ago (2017-07-12 19:24:13 UTC) #14
Peter Kasting
https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode159 chrome/browser/ui/views/find_bar_view.cc:159: find_text_->SetProperty(views::kMarginsKey, new gfx::Insets(12, 0)); On 2017/07/12 19:19:48, ananta wrote: ...
3 years, 5 months ago (2017-07-12 20:33:01 UTC) #17
ananta
https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode159 chrome/browser/ui/views/find_bar_view.cc:159: find_text_->SetProperty(views::kMarginsKey, new gfx::Insets(12, 0)); On 2017/07/12 20:33:01, Peter Kasting ...
3 years, 5 months ago (2017-07-13 04:04:34 UTC) #20
Peter Kasting
https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode159 chrome/browser/ui/views/find_bar_view.cc:159: find_text_->SetProperty(views::kMarginsKey, new gfx::Insets(12, 0)); On 2017/07/13 04:04:34, ananta wrote: ...
3 years, 5 months ago (2017-07-13 04:11:24 UTC) #21
ananta
https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/20001/chrome/browser/ui/views/find_bar_view.cc#newcode162 chrome/browser/ui/views/find_bar_view.cc:162: separator_->SetProperty(views::kMarginsKey, new gfx::Insets(8, 16, 8, 16)); On 2017/07/13 04:11:24, ...
3 years, 5 months ago (2017-07-13 04:44:44 UTC) #22
Peter Kasting
https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc#newcode161 chrome/browser/ui/views/find_bar_view.cc:161: find_next_button_->SetProperty(views::kMarginsKey, new gfx::Insets(0, For insets, vertical comes first, then ...
3 years, 5 months ago (2017-07-13 04:52:47 UTC) #23
ananta
https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc#newcode161 chrome/browser/ui/views/find_bar_view.cc:161: find_next_button_->SetProperty(views::kMarginsKey, new gfx::Insets(0, On 2017/07/13 04:52:47, Peter Kasting wrote: ...
3 years, 5 months ago (2017-07-13 05:22:11 UTC) #24
Peter Kasting
https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/80001/chrome/browser/ui/views/find_bar_view.cc#newcode174 chrome/browser/ui/views/find_bar_view.cc:174: provider->GetInsetsMetric( On 2017/07/13 05:22:10, ananta wrote: > On 2017/07/13 ...
3 years, 5 months ago (2017-07-13 05:31:37 UTC) #25
ananta
I updated the match text to match the spec, i.e. ordinal/matches. It works well on ...
3 years, 5 months ago (2017-07-13 05:43:49 UTC) #28
Peter Kasting
So, the remaining issue is finding a way to not include the vector image padding ...
3 years, 5 months ago (2017-07-13 06:05:35 UTC) #30
ananta
Will look into the vector image padding in a followup patch https://codereview.chromium.org/2968713003/diff/100002/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): ...
3 years, 5 months ago (2017-07-13 06:27:43 UTC) #31
Peter Kasting
On 2017/07/13 06:27:43, ananta wrote: > Will look into the vector image padding in a ...
3 years, 5 months ago (2017-07-13 06:32:27 UTC) #32
ananta
On 2017/07/13 06:32:27, Peter Kasting wrote: > On 2017/07/13 06:27:43, ananta wrote: > > Will ...
3 years, 5 months ago (2017-07-13 06:36:21 UTC) #33
Peter Kasting
On 2017/07/13 06:36:21, ananta wrote: > On 2017/07/13 06:32:27, Peter Kasting wrote: > > On ...
3 years, 5 months ago (2017-07-13 06:43:43 UTC) #34
ananta
On 2017/07/13 06:43:43, Peter Kasting wrote: > On 2017/07/13 06:36:21, ananta wrote: > > On ...
3 years, 5 months ago (2017-07-13 22:06:10 UTC) #35
Peter Kasting
https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc#newcode165 chrome/browser/ui/views/find_bar_view.cc:165: 0, image_button_insets.right())); This won't make things equidistant (as is ...
3 years, 5 months ago (2017-07-14 00:40:12 UTC) #40
ananta
https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc#newcode165 chrome/browser/ui/views/find_bar_view.cc:165: 0, image_button_insets.right())); On 2017/07/14 00:40:12, Peter Kasting wrote: > ...
3 years, 5 months ago (2017-07-14 01:04:29 UTC) #41
ananta
On 2017/07/14 01:04:29, ananta wrote: > https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc > File chrome/browser/ui/views/find_bar_view.cc (right): > > https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc#newcode165 > ...
3 years, 5 months ago (2017-07-14 01:48:11 UTC) #44
Peter Kasting
On 2017/07/14 01:48:11, ananta wrote: > On 2017/07/14 01:04:29, ananta wrote: > > > https://codereview.chromium.org/2968713003/diff/250001/chrome/browser/ui/views/find_bar_view.cc ...
3 years, 5 months ago (2017-07-14 01:56:39 UTC) #45
ananta
On 2017/07/14 01:56:39, Peter Kasting wrote: > On 2017/07/14 01:48:11, ananta wrote: > > On ...
3 years, 5 months ago (2017-07-15 01:56:29 UTC) #49
Peter Kasting
https://codereview.chromium.org/2968713003/diff/310001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/310001/chrome/browser/ui/views/find_bar_view.cc#newcode164 chrome/browser/ui/views/find_bar_view.cc:164: // To workaround this we space the controls using ...
3 years, 5 months ago (2017-07-15 02:48:08 UTC) #54
ananta
https://codereview.chromium.org/2968713003/diff/310001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/310001/chrome/browser/ui/views/find_bar_view.cc#newcode164 chrome/browser/ui/views/find_bar_view.cc:164: // To workaround this we space the controls using ...
3 years, 5 months ago (2017-07-15 07:04:15 UTC) #57
Peter Kasting
LGTM https://codereview.chromium.org/2968713003/diff/370001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/370001/chrome/browser/ui/views/find_bar_view.cc#newcode168 chrome/browser/ui/views/find_bar_view.cc:168: Nit: Why did you put blank lines between ...
3 years, 5 months ago (2017-07-15 07:38:37 UTC) #60
ananta
https://codereview.chromium.org/2968713003/diff/370001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2968713003/diff/370001/chrome/browser/ui/views/find_bar_view.cc#newcode168 chrome/browser/ui/views/find_bar_view.cc:168: On 2017/07/15 07:38:36, Peter Kasting wrote: > Nit: Why ...
3 years, 5 months ago (2017-07-17 19:11:04 UTC) #63
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2968713003/390001
3 years, 5 months ago (2017-07-17 19:11:59 UTC) #66
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/259970) mac_chromium_compile_dbg_ng on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 5 months ago (2017-07-17 19:15:17 UTC) #68
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2968713003/430001
3 years, 5 months ago (2017-07-17 19:37:17 UTC) #71
ananta
+blundell for components owners
3 years, 5 months ago (2017-07-17 19:45:26 UTC) #73
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/491592)
3 years, 5 months ago (2017-07-17 19:51:07 UTC) #75
ananta
TBR'ing blundell. Will address comments in a followup
3 years, 5 months ago (2017-07-17 22:25:28 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2968713003/430001
3 years, 5 months ago (2017-07-17 22:25:50 UTC) #79
commit-bot: I haz the power
Committed patchset #22 (id:430001) as https://chromium.googlesource.com/chromium/src/+/a5f3fa6e02a96926c01d20fbf38be2257c251d49
3 years, 5 months ago (2017-07-18 00:19:45 UTC) #82
blundell
3 years, 5 months ago (2017-07-18 07:32:45 UTC) #83
Message was sent while issue was closed.
lgtm

Powered by Google App Engine
This is Rietveld 408576698