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

Issue 1961001: Refactors animation to allow for cleaner subclassing. I'm doing this (Closed)

Created:
10 years, 7 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
Jay Civelli
CC:
chromium-reviews
Visibility:
Public.

Description

Refactors animation to allow for cleaner subclassing. I'm doing this for creating a different animation subclass (which you'll see shortly). BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46433

Patch Set 1 #

Patch Set 2 : Improved comments, renamed Tween::NONE to Tween::LINEAR #

Patch Set 3 : Merges with latest. #

Total comments: 6

Patch Set 4 : Incorporated review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+623 lines, -406 lines) Patch
M app/animation.h View 1 4 chunks +50 lines, -78 lines 0 comments Download
M app/animation.cc View 2 chunks +52 lines, -120 lines 0 comments Download
M app/animation_container.h View 1 3 chunks +34 lines, -14 lines 0 comments Download
M app/animation_container.cc View 3 chunks +34 lines, -35 lines 0 comments Download
M app/animation_container_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M app/animation_unittest.cc View 1 5 chunks +57 lines, -5 lines 0 comments Download
M app/app_base.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
A app/linear_animation.h View 1 chunk +70 lines, -0 lines 0 comments Download
A app/linear_animation.cc View 1 2 3 1 chunk +91 lines, -0 lines 0 comments Download
M app/slide_animation.h View 4 chunks +7 lines, -15 lines 0 comments Download
M app/slide_animation.cc View 3 chunks +6 lines, -29 lines 0 comments Download
M app/test_animation_delegate.h View 1 chunk +0 lines, -3 lines 0 comments Download
M app/throb_animation.cc View 3 chunks +4 lines, -4 lines 0 comments Download
A app/tween.h View 1 1 chunk +43 lines, -0 lines 0 comments Download
A app/tween.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/panels/panel_scroller.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/panels/panel_scroller.cc View 4 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/status/network_menu_button.cc View 1 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/gtk/bookmark_bar_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/browser_actions_toolbar_gtk.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/download_item_gtk.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/download_started_animation_gtk.cc View 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/gtk/hover_controller_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/slide_animator_gtk.cc View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/gtk/tabs/dragged_tab_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/tabs/tab_renderer_gtk.cc View 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/gtk/tabs/tab_strip_gtk.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/gtk/translate_infobars.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/autocomplete/autocomplete_popup_contents_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/bookmark_bar_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/browser_actions_container.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/browser_actions_container.cc View 1 4 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/views/download_item_view.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/views/download_shelf_view.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/download_started_animation_win.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/dropdown_bar_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/extensions/extension_shelf.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/views/infobars/infobars.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/views/infobars/translate_infobars.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/views/status_bubble_views.cc View 1 2 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/views/tabs/dragged_tab_view.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/tabs/side_tab.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/views/tabs/tab_renderer.cc View 1 2 7 chunks +9 lines, -10 lines 0 comments Download
M chrome/browser/views/tabs/tab_strip.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M views/animation/bounds_animator.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/controls/button/custom_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/controls/button/image_button.cc View 1 chunk +1 line, -1 line 0 comments Download
M views/controls/button/text_button.cc View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
sky
10 years, 7 months ago (2010-05-04 17:44:22 UTC) #1
Jay Civelli
LGTM http://codereview.chromium.org/1961001/diff/2002/5001 File app/animation.cc (right): http://codereview.chromium.org/1961001/diff/2002/5001#newcode17 app/animation.cc:17: delegate_(NULL) { Should we initialized start_time_ just to ...
10 years, 7 months ago (2010-05-04 20:58:07 UTC) #2
sky
10 years, 7 months ago (2010-05-04 23:02:05 UTC) #3
http://codereview.chromium.org/1961001/diff/2002/5001
File app/animation.cc (right):

http://codereview.chromium.org/1961001/diff/2002/5001#newcode17
app/animation.cc:17: delegate_(NULL) {
On 2010/05/04 20:58:07, Jay Civelli wrote:
> Should we initialized start_time_ just to be safe?

TimeTicks initializes it to 0 for me, which is fine.

http://codereview.chromium.org/1961001/diff/2002/5008
File app/linear_animation.cc (right):

http://codereview.chromium.org/1961001/diff/2002/5008#newcode80
app/linear_animation.cc:80: if (in_end_) {
On 2010/05/04 20:58:07, Jay Civelli wrote:
> Nit: if (!in_end)
>        return;
>      would be simpler.
>      

Done.

http://codereview.chromium.org/1961001/diff/2002/5014
File app/tween.cc (right):

http://codereview.chromium.org/1961001/diff/2002/5014#newcode73
app/tween.cc:73: const gfx::Rect& start_bounds,
On 2010/05/04 20:58:07, Jay Civelli wrote:
> Indent is wrong.

Done.

Powered by Google App Engine
This is Rietveld 408576698