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

Issue 12047107: Change the SearchBox API from using the start/end margins of the location bar to using the start ma… (Closed)

Created:
7 years, 11 months ago by melevin
Modified:
7 years, 9 months ago
CC:
chromium-reviews, tfarina, sreeram, gideonwald, dominich, Aaron Boodman, David Black, samarth+watch_chromium.org, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, Jered
Visibility:
Public.

Description

Change the SearchBox API from using the start/end margins of the location bar to using the start margin and width. This change is necessary to avoid accounting for the presence of the scrollbar in the search page JavaScript. BUG=153403 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=185115

Patch Set 1 #

Patch Set 2 : Sync to r180728 #

Total comments: 4

Patch Set 3 : locationBarMargin & locationBarWidth -> startMargin, width #

Patch Set 4 : Added test #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : The Great Samarth Merge of 2013 #

Total comments: 12

Patch Set 7 : #

Total comments: 4

Patch Set 8 : Sync #

Total comments: 2

Patch Set 9 : Simplified LocationBarView::OnBoundsChanged #

Total comments: 1

Patch Set 10 : SetOmniboxBounds #

Patch Set 11 : Sync to r184975 #

Patch Set 12 : Don't run test on Mac & Linux #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -71 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +9 lines, -12 lines 0 comments Download
M chrome/browser/instant/instant_extended_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_page.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/instant/instant_page.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -8 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox_api.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +0 lines, -2 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 2 3 4 5 6 7 8 4 chunks +6 lines, -9 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +3 lines, -18 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
melevin
7 years, 11 months ago (2013-01-25 19:57:41 UTC) #1
melevin
Samarth & David, can you guys take a look at this CL? It's blocking the ...
7 years, 10 months ago (2013-02-05 23:12:07 UTC) #2
samarth
Sorry, missed your initial email. This looks good from the chrome side. Thanks, Samarth https://codereview.chromium.org/12047107/diff/3001/chrome/browser/ui/views/location_bar/location_bar_view.cc ...
7 years, 10 months ago (2013-02-05 23:39:33 UTC) #3
samarth
Oh also, can you look into adding a test in instant_extended_browsertest for this? I would ...
7 years, 10 months ago (2013-02-05 23:42:00 UTC) #4
melevin
On 2013/02/05 23:42:00, samarth wrote: > Oh also, can you look into adding a test ...
7 years, 10 months ago (2013-02-06 23:43:56 UTC) #5
melevin
https://codereview.chromium.org/12047107/diff/3001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/12047107/diff/3001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1293 chrome/browser/ui/views/location_bar/location_bar_view.cc:1293: int margin = base::i18n::IsRTL() ? On 2013/02/05 23:39:33, samarth ...
7 years, 10 months ago (2013-02-06 23:44:04 UTC) #6
samarth
On 2013/02/06 23:43:56, melevin wrote: > On 2013/02/05 23:42:00, samarth wrote: > > Oh also, ...
7 years, 10 months ago (2013-02-06 23:48:24 UTC) #7
melevin
On 2013/02/06 23:48:24, samarth wrote: > On 2013/02/06 23:43:56, melevin wrote: > > On 2013/02/05 ...
7 years, 10 months ago (2013-02-07 00:14:31 UTC) #8
samarth
Thanks for adding a test. lgtm for the instant code. +sreeram for instant OWNERS. https://codereview.chromium.org/12047107/diff/11001/chrome/browser/instant/instant_extended_browsertest.cc ...
7 years, 10 months ago (2013-02-07 00:28:37 UTC) #9
melevin
https://codereview.chromium.org/12047107/diff/11001/chrome/browser/instant/instant_extended_browsertest.cc File chrome/browser/instant/instant_extended_browsertest.cc (right): https://codereview.chromium.org/12047107/diff/11001/chrome/browser/instant/instant_extended_browsertest.cc#newcode112 chrome/browser/instant/instant_extended_browsertest.cc:112: EXPECT_NE(width, newWidth); On 2013/02/07 00:28:37, samarth wrote: > Is ...
7 years, 10 months ago (2013-02-07 21:21:22 UTC) #10
sreeram
https://codereview.chromium.org/12047107/diff/10003/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/12047107/diff/10003/chrome/browser/instant/instant_controller.h#newcode102 chrome/browser/instant/instant_controller.h:102: // Sets the stored start-edge margin and width. // ...
7 years, 10 months ago (2013-02-14 18:26:56 UTC) #11
melevin
https://codereview.chromium.org/12047107/diff/10003/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/12047107/diff/10003/chrome/browser/instant/instant_controller.h#newcode102 chrome/browser/instant/instant_controller.h:102: // Sets the stored start-edge margin and width. On ...
7 years, 10 months ago (2013-02-19 22:00:49 UTC) #12
sreeram
lgtm https://codereview.chromium.org/12047107/diff/16001/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/12047107/diff/16001/chrome/browser/instant/instant_controller.h#newcode358 chrome/browser/instant/instant_controller.h:358: // The start-edge margin and width of the ...
7 years, 10 months ago (2013-02-20 15:40:10 UTC) #13
melevin
https://codereview.chromium.org/12047107/diff/16001/chrome/browser/instant/instant_controller.h File chrome/browser/instant/instant_controller.h (right): https://codereview.chromium.org/12047107/diff/16001/chrome/browser/instant/instant_controller.h#newcode358 chrome/browser/instant/instant_controller.h:358: // The start-edge margin and width of the omnibox, ...
7 years, 10 months ago (2013-02-20 20:11:45 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/melevin@chromium.org/12047107/22001
7 years, 10 months ago (2013-02-20 20:12:14 UTC) #15
commit-bot: I haz the power
Presubmit check for 12047107-22001 failed and returned exit status 1. INFO:root:Found 12 file(s). Running presubmit ...
7 years, 10 months ago (2013-02-20 20:12:21 UTC) #16
melevin
Adding pkasting for chrome/browser/ui changes. PTAL when you have a minute, thanks!
7 years, 10 months ago (2013-02-20 21:29:49 UTC) #17
Peter Kasting
LGTM with one change. https://codereview.chromium.org/12047107/diff/22001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/12047107/diff/22001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1258 chrome/browser/ui/views/location_bar/location_bar_view.cc:1258: parent_bounds.right() - bounds.right() : bounds.x() ...
7 years, 10 months ago (2013-02-26 22:07:19 UTC) #18
melevin
https://codereview.chromium.org/12047107/diff/22001/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/12047107/diff/22001/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1258 chrome/browser/ui/views/location_bar/location_bar_view.cc:1258: parent_bounds.right() - bounds.right() : bounds.x() - parent_bounds.x(); On 2013/02/26 ...
7 years, 10 months ago (2013-02-26 23:43:52 UTC) #19
Peter Kasting
https://codereview.chromium.org/12047107/diff/24002/chrome/browser/ui/views/location_bar/location_bar_view.cc File chrome/browser/ui/views/location_bar/location_bar_view.cc (right): https://codereview.chromium.org/12047107/diff/24002/chrome/browser/ui/views/location_bar/location_bar_view.cc#newcode1282 chrome/browser/ui/views/location_bar/location_bar_view.cc:1282: bounds_rect.x(), bounds_rect.width()); Nit: Rather than using a margin and ...
7 years, 10 months ago (2013-02-26 23:46:26 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/melevin@chromium.org/12047107/24002
7 years, 10 months ago (2013-02-26 23:47:48 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/melevin@chromium.org/12047107/32003
7 years, 9 months ago (2013-02-27 17:05:01 UTC) #22
commit-bot: I haz the power
Failed to apply patch for chrome/renderer/resources/extensions/searchbox_api.js: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-02-27 17:05:04 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/melevin@chromium.org/12047107/32004
7 years, 9 months ago (2013-02-27 18:04:08 UTC) #24
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=103361
7 years, 9 months ago (2013-02-27 19:13:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/melevin@chromium.org/12047107/37001
7 years, 9 months ago (2013-02-28 00:21:35 UTC) #26
commit-bot: I haz the power
7 years, 9 months ago (2013-02-28 02:25:10 UTC) #27
Message was sent while issue was closed.
Change committed as 185115

Powered by Google App Engine
This is Rietveld 408576698