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

Issue 12036075: alternate ntp: fix website page jankiness when suggestions show and top bars are hidden (Closed)

Created:
7 years, 11 months ago by kuan
Modified:
7 years, 10 months ago
Reviewers:
Peter Kasting, dhollowa
CC:
chromium-reviews, melevin, tfarina, sreeram, sail+watch_chromium.org, gideonwald, dominich, David Black, samarth+watch_chromium.org, Jered
Visibility:
Public.

Description

alternate ntp: fix jankiness when suggestions show on website page with bars when suggestions show, pinned bookmark bar and infobars would hide, causing contents to shift up. if ESC is hit to cancel the query, the bars would then appear, causing contents to shift down. all these cause jankiness. this cl is the first in the line to fix such jankiness: - tackle website pages where suggestions appear in a preview overlay - modify infobar container to delay hiding its bars until instant preview is ready, instead of when user starts typing - during layout, if preview is taller than all hidden bars, preserve the position that contents previously had with the visible bars by setting a top margin in contents container later cls will tackle ntp and serp pages where suggestions appear in the contents, so showing and hiding of bars require synchronization with renderer's searchbox api. BUG=171075 TEST=verify per bug rpt Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180439

Patch Set 1 #

Patch Set 2 : remove redundant param #

Total comments: 32

Patch Set 3 : addressed all comments #

Total comments: 4

Patch Set 4 : addressed peter's comments #

Total comments: 2

Patch Set 5 : addressed peter's comment #

Patch Set 6 : fixed linux build break #

Patch Set 7 : changed mechanism to receive PreviewStateChanged #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -29 lines) Patch
M chrome/browser/infobars/infobar_container.h View 1 2 3 4 5 6 3 chunks +21 lines, -9 lines 0 comments Download
M chrome/browser/infobars/infobar_container.cc View 1 2 3 4 5 6 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 2 3 4 5 6 5 chunks +38 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/contents_container.h View 1 2 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_container.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/instant_preview_controller_views.cc View 1 2 3 4 5 6 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 36 (0 generated)
kuan
7 years, 11 months ago (2013-01-24 03:45:56 UTC) #1
kuan
ping...
7 years, 11 months ago (2013-01-25 20:10:32 UTC) #2
dhollowa
https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h File chrome/browser/infobars/infobar_container.h (right): https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h#newcode42 chrome/browser/infobars/infobar_container.h:42: // synchronization with renderer and will be implemented as ...
7 years, 11 months ago (2013-01-25 21:24:08 UTC) #3
Peter Kasting
When you list multiple reviewers, you always need to say explicitly what you want each ...
7 years, 10 months ago (2013-01-27 23:54:26 UTC) #4
Peter Kasting
https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h File chrome/browser/infobars/infobar_container.h (right): https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h#newcode74 chrome/browser/infobars/infobar_container.h:74: chrome::search::SearchModel* search_model, On 2013/01/25 21:24:08, dhollowa wrote: > The ...
7 years, 10 months ago (2013-01-27 23:57:27 UTC) #5
kuan
peter, cld u pls review files in chrome/browser/infobars and chrome/browser/ui/views? thx.
7 years, 10 months ago (2013-01-28 15:03:50 UTC) #6
dhollowa
https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h File chrome/browser/infobars/infobar_container.h (right): https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.h#newcode74 chrome/browser/infobars/infobar_container.h:74: chrome::search::SearchModel* search_model, On 2013/01/27 23:57:28, Peter Kasting wrote: > ...
7 years, 10 months ago (2013-01-28 16:43:06 UTC) #7
Peter Kasting
On 2013/01/28 16:43:06, dhollowa wrote: > What I like about making the observer list > ...
7 years, 10 months ago (2013-01-28 21:28:28 UTC) #8
dhollowa
On 2013/01/28 21:28:28, Peter Kasting wrote: > On 2013/01/28 16:43:06, dhollowa wrote: > > What ...
7 years, 10 months ago (2013-01-28 21:34:31 UTC) #9
Peter Kasting
https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.cc File chrome/browser/infobars/infobar_container.cc (right): https://codereview.chromium.org/12036075/diff/3001/chrome/browser/infobars/infobar_container.cc#newcode40 chrome/browser/infobars/infobar_container.cc:40: instant_model_->AddObserver(this); Please pass in a non-const pointer if you're ...
7 years, 10 months ago (2013-01-28 21:51:00 UTC) #10
kuan
i've addressed all comments in patch set 3. regarding the const InstantModel, dhollowa@ will modify ...
7 years, 10 months ago (2013-01-29 00:17:08 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/12036075/diff/14001/chrome/browser/ui/views/frame/browser_view_layout.cc File chrome/browser/ui/views/frame/browser_view_layout.cc (right): https://codereview.chromium.org/12036075/diff/14001/chrome/browser/ui/views/frame/browser_view_layout.cc#newcode310 chrome/browser/ui/views/frame/browser_view_layout.cc:310: // shift up due to hiding of bookmark ...
7 years, 10 months ago (2013-01-29 00:36:29 UTC) #12
kuan
i've addressed pete's comments in patch set 4. ptal. thx. https://codereview.chromium.org/12036075/diff/14001/chrome/browser/ui/views/frame/browser_view_layout.cc File chrome/browser/ui/views/frame/browser_view_layout.cc (right): https://codereview.chromium.org/12036075/diff/14001/chrome/browser/ui/views/frame/browser_view_layout.cc#newcode310 ...
7 years, 10 months ago (2013-01-29 01:00:11 UTC) #13
Peter Kasting
https://codereview.chromium.org/12036075/diff/16004/chrome/browser/ui/views/frame/browser_view_layout.cc File chrome/browser/ui/views/frame/browser_view_layout.cc (right): https://codereview.chromium.org/12036075/diff/16004/chrome/browser/ui/views/frame/browser_view_layout.cc#newcode322 chrome/browser/ui/views/frame/browser_view_layout.cc:322: // haven't been handled by |contents_container_| yet. Nit: Needs ...
7 years, 10 months ago (2013-01-29 01:03:29 UTC) #14
kuan
i've modified the comment per peter's suggestion in patch set 5. https://codereview.chromium.org/12036075/diff/16004/chrome/browser/ui/views/frame/browser_view_layout.cc File chrome/browser/ui/views/frame/browser_view_layout.cc (right): ...
7 years, 10 months ago (2013-01-29 01:09:17 UTC) #15
dhollowa
LGTM. Thanks.
7 years, 10 months ago (2013-01-29 01:14:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/11005
7 years, 10 months ago (2013-01-29 01:25:09 UTC) #17
commit-bot: I haz the power
Failed to trigger a try job on linux_rel HTTP Error 400: Bad Request
7 years, 10 months ago (2013-01-29 01:44:22 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/22003
7 years, 10 months ago (2013-01-29 01:44:32 UTC) #19
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-01-29 02:31:02 UTC) #20
kuan
patch set 6, which was lgtm'ed, broke (crashed) browser_tests and interactive_ui_tests. the crash was caused ...
7 years, 10 months ago (2013-01-30 13:33:51 UTC) #21
dhollowa
Yes, LGTM. The InstantModel's lifetime is tied to the BrowerInstantController and InstantController, hence the need ...
7 years, 10 months ago (2013-01-30 17:40:42 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-01 13:26:56 UTC) #23
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 10 months ago (2013-02-01 17:46:36 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-01 17:47:49 UTC) #25
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=106458
7 years, 10 months ago (2013-02-01 22:55:46 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-01 23:01:25 UTC) #27
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=106654
7 years, 10 months ago (2013-02-02 02:34:19 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-02 13:33:05 UTC) #29
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=107017
7 years, 10 months ago (2013-02-02 16:44:35 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-02 17:00:23 UTC) #31
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=107106
7 years, 10 months ago (2013-02-02 20:02:44 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-02 20:28:30 UTC) #33
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=107197
7 years, 10 months ago (2013-02-02 23:55:53 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/12036075/21005
7 years, 10 months ago (2013-02-04 14:23:04 UTC) #35
commit-bot: I haz the power
7 years, 10 months ago (2013-02-04 17:16:39 UTC) #36
Message was sent while issue was closed.
Change committed as 180439

Powered by Google App Engine
This is Rietveld 408576698