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

Issue 10816027: alternate ntp: toolbar background and separator animation (Closed)

Created:
8 years, 5 months ago by kuan
Modified:
8 years, 4 months ago
Reviewers:
sky, dhollowa
CC:
chromium-reviews, dhollowa+watch_chromium.org, ben+watch_chromium.org, sadrul, tfarina
Visibility:
Public.

Description

alternate ntp: toolbar/tab background animation - modify SearchModelObserver::ModeChanged callback to pass old and new modes, so that toolbar/tab background animation is only triggered when transitioning from NTP to SEARCH, and not other transition to SEARCH - in the process, simplify methods to get background opacity; callers need not worry about search modes when calling the API; the returned opacity tells them what to do - enhance ToolbarSearchAnimator per discussion with dhollowa@ - added unittest to ToolbarSearchAnimator BUG=137223 TEST=verify per bug rpt. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=151567

Patch Set 1 #

Patch Set 2 : remove debugging animation timings #

Patch Set 3 : rebase #

Patch Set 4 : rebase #

Total comments: 20

Patch Set 5 : addressed dhollowa's comments #

Patch Set 6 : removed debug stmts #

Patch Set 7 : remove unused vars, update comments #

Patch Set 8 : rebase, remove AnimateState to simplify logic #

Patch Set 9 : rebase, remove AnimateState to simplify logic #

Patch Set 10 : update comments #

Total comments: 14

Patch Set 11 : remove separator fading, address comments #

Total comments: 5

Patch Set 12 : address dhollowa's comments #

Total comments: 15

Patch Set 13 : address scott's comments, revert NavigateToPendingEntry, rebase #

Total comments: 2

Patch Set 14 : addressed scott's comments #

Patch Set 15 : fix android build break #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -206 lines) Patch
M chrome/browser/ui/search/search_delegate.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_delegate.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/search_model.cc View 1 2 3 4 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/search_model_observer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/search/search_model_observer_bridge.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/search/search_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +10 lines, -4 lines 0 comments Download
M chrome/browser/ui/search/toolbar_search_animator.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +29 lines, -47 lines 0 comments Download
M chrome/browser/ui/search/toolbar_search_animator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +56 lines, -64 lines 0 comments Download
M chrome/browser/ui/search/toolbar_search_animator_observer.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -2 lines 0 comments Download
A chrome/browser/ui/search/toolbar_search_animator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +242 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +20 lines, -30 lines 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/search_view_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +8 lines, -15 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 7 1 chunk +13 lines, -14 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.h View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_renderer_data.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
kuan
8 years, 5 months ago (2012-07-23 22:44:31 UTC) #1
dhollowa
http://codereview.chromium.org/10816027/diff/5001/chrome/browser/ui/search/toolbar_search_animator.cc File chrome/browser/ui/search/toolbar_search_animator.cc (right): http://codereview.chromium.org/10816027/diff/5001/chrome/browser/ui/search/toolbar_search_animator.cc#newcode63 chrome/browser/ui/search/toolbar_search_animator.cc:63: default: You can remove |default:|. http://codereview.chromium.org/10816027/diff/5001/chrome/browser/ui/search/toolbar_search_animator.cc#newcode76 chrome/browser/ui/search/toolbar_search_animator.cc:76: default: You ...
8 years, 5 months ago (2012-07-24 00:24:49 UTC) #2
kuan
i've addressed dhollowa's comments in patch set 5, including our offline discussions. ptal. thx. http://codereview.chromium.org/10816027/diff/5001/chrome/browser/ui/search/toolbar_search_animator.cc ...
8 years, 4 months ago (2012-07-30 23:21:01 UTC) #3
kuan
hi david and scott, while waiting for review, i've discovered (from other chrome code) that ...
8 years, 4 months ago (2012-08-01 21:13:14 UTC) #4
dhollowa
Looking good. As discussed we should explore whether to animate later in the page-load cycle. ...
8 years, 4 months ago (2012-08-01 22:26:22 UTC) #5
dhollowa
http://codereview.chromium.org/10816027/diff/24012/chrome/browser/ui/search/toolbar_search_animator_unittest.cc File chrome/browser/ui/search/toolbar_search_animator_unittest.cc (right): http://codereview.chromium.org/10816027/diff/24012/chrome/browser/ui/search/toolbar_search_animator_unittest.cc#newcode101 chrome/browser/ui/search/toolbar_search_animator_unittest.cc:101: class ToolbarSearchAnimatorTest : public BrowserWithTestWindowTest { I noticed that ...
8 years, 4 months ago (2012-08-01 22:41:59 UTC) #6
dhollowa
sky: After discussions with Marcin, this CL may change substantially. So please hold-off reviewing until ...
8 years, 4 months ago (2012-08-02 17:43:02 UTC) #7
kuan
in patch set 11, i've - addressed dhollowa's comments - removed all separator fading code ...
8 years, 4 months ago (2012-08-02 21:54:02 UTC) #8
dhollowa
sky: This is reviewable now. As kuan mentions, the separator animation is now removed. The ...
8 years, 4 months ago (2012-08-02 22:35:38 UTC) #9
kuan
i've addressed dhollowa's comments in patch set 12. ptal. thx. http://codereview.chromium.org/10816027/diff/19006/chrome/browser/ui/search/search_tab_helper.h File chrome/browser/ui/search/search_tab_helper.h (right): http://codereview.chromium.org/10816027/diff/19006/chrome/browser/ui/search/search_tab_helper.h#newcode66 ...
8 years, 4 months ago (2012-08-03 04:55:58 UTC) #10
kuan
http://codereview.chromium.org/10816027/diff/19006/chrome/browser/ui/search/search_tab_helper.h File chrome/browser/ui/search/search_tab_helper.h (right): http://codereview.chromium.org/10816027/diff/19006/chrome/browser/ui/search/search_tab_helper.h#newcode66 chrome/browser/ui/search/search_tab_helper.h:66: bool has_navigated_; On 2012/08/03 04:55:58, kuan wrote: > On ...
8 years, 4 months ago (2012-08-03 04:59:42 UTC) #11
dhollowa
LGTM. Thanks.
8 years, 4 months ago (2012-08-03 16:30:23 UTC) #12
sky
http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_delegate.h File chrome/browser/ui/search/search_delegate.h (right): http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_delegate.h#newcode32 chrome/browser/ui/search/search_delegate.h:32: virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) OVERRIDE; ...
8 years, 4 months ago (2012-08-03 17:29:40 UTC) #13
kuan
http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_delegate.h File chrome/browser/ui/search/search_delegate.h (right): http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_delegate.h#newcode32 chrome/browser/ui/search/search_delegate.h:32: virtual void ModeChanged(const Mode& old_mode, const Mode& new_mode) OVERRIDE; ...
8 years, 4 months ago (2012-08-03 17:46:49 UTC) #14
sky
Thanks for the clarification on the comments I had. http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_tab_helper.h File chrome/browser/ui/search/search_tab_helper.h (right): http://codereview.chromium.org/10816027/diff/13023/chrome/browser/ui/search/search_tab_helper.h#newcode51 chrome/browser/ui/search/search_tab_helper.h:51: ...
8 years, 4 months ago (2012-08-03 22:18:41 UTC) #15
kuan
i've addressed all comments in patch set 13, which unfortunately is also rebased :( also, ...
8 years, 4 months ago (2012-08-13 20:19:46 UTC) #16
sky
LGTM http://codereview.chromium.org/10816027/diff/22004/chrome/browser/ui/search/toolbar_search_animator.cc File chrome/browser/ui/search/toolbar_search_animator.cc (right): http://codereview.chromium.org/10816027/diff/22004/chrome/browser/ui/search/toolbar_search_animator.cc#newcode124 chrome/browser/ui/search/toolbar_search_animator.cc:124: background_animation_->set_delegate(NULL); Seems cleaner and less error prone to ...
8 years, 4 months ago (2012-08-13 21:10:08 UTC) #17
kuan
i've addressed scott's comments in patch set 14. ptal. thx. http://codereview.chromium.org/10816027/diff/22004/chrome/browser/ui/search/toolbar_search_animator.cc File chrome/browser/ui/search/toolbar_search_animator.cc (right): http://codereview.chromium.org/10816027/diff/22004/chrome/browser/ui/search/toolbar_search_animator.cc#newcode124 ...
8 years, 4 months ago (2012-08-13 22:02:13 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/10816027/19033
8 years, 4 months ago (2012-08-14 18:29:29 UTC) #19
commit-bot: I haz the power
Try job failure for 10816027-19033 (retry) on android for steps "compile, build" (clobber build). It's ...
8 years, 4 months ago (2012-08-14 19:25:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kuan@chromium.org/10816027/24019
8 years, 4 months ago (2012-08-14 19:54:04 UTC) #21
commit-bot: I haz the power
8 years, 4 months ago (2012-08-14 21:24:55 UTC) #22
Change committed as 151567

Powered by Google App Engine
This is Rietveld 408576698