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

Issue 271913002: Animate window control changes in TouchView (Closed)

Created:
6 years, 7 months ago by jonross
Modified:
6 years, 6 months ago
Reviewers:
flackr, James Cook, oshima
CC:
chromium-reviews, kalyank, sadrul, ben+ash_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Animate window control changes in TouchView Add animation for the hiding and showing of the resize button. Add an animation for sliding the minimize button into the position of the resize button. Delay changing the size of FrameCaptionButtonContainerView to account for conflicting layout changes caused by the transition to TouchView. TEST=FrameCaptionButtonContainerViewTest TEST=CustomFrameViewAshTest TES=BrowserNonClientFrameViewAshTest BUG=363717 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274371

Patch Set 1 #

Total comments: 33

Patch Set 2 : Make button layout animations generic #

Total comments: 13

Patch Set 3 : #

Total comments: 4

Patch Set 4 : Change layout to be agnostic of which button is animating #

Total comments: 7

Patch Set 5 : Rebase #

Patch Set 6 : #

Total comments: 13

Patch Set 7 : Add test for the animation #

Total comments: 8

Patch Set 8 : #

Total comments: 10

Patch Set 9 : #

Total comments: 4

Patch Set 10 : Rebase #

Patch Set 11 : #

Total comments: 4

Patch Set 12 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -19 lines) Patch
M ash/frame/caption_buttons/frame_caption_button_container_view.h View 1 2 3 4 5 6 7 8 9 4 chunks +9 lines, -2 lines 0 comments Download
M ash/frame/caption_buttons/frame_caption_button_container_view.cc View 1 2 3 4 5 6 7 8 9 10 11 9 chunks +126 lines, -8 lines 0 comments Download
M ash/frame/caption_buttons/frame_caption_button_container_view_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +57 lines, -0 lines 0 comments Download
M ash/frame/custom_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 3 chunks +15 lines, -0 lines 0 comments Download
M ash/frame/default_header_painter.cc View 1 2 3 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_header_painter_ash.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 2 3 4 5 6 7 8 9 3 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 chunk +28 lines, -1 line 0 comments Download

Messages

Total messages: 28 (0 generated)
jonross
Another animation change. Similar style to the OverviewButton. This time it impacts the windowing controls.
6 years, 7 months ago (2014-05-08 15:44:37 UTC) #1
flackr
https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode8 ash/frame/caption_buttons/frame_caption_button_container_view.cc:8: #include <map> unused? https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode37 ash/frame/caption_buttons/frame_caption_button_container_view.cc:37: const int kAnimationDelay = ...
6 years, 7 months ago (2014-05-08 19:02:20 UTC) #2
jonross
https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode8 ash/frame/caption_buttons/frame_caption_button_container_view.cc:8: #include <map> On 2014/05/08 19:02:21, flackr wrote: > unused? ...
6 years, 7 months ago (2014-05-08 21:15:39 UTC) #3
flackr
https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.h File ash/frame/caption_buttons/frame_caption_button_container_view.h (right): https://codereview.chromium.org/271913002/diff/1/ash/frame/caption_buttons/frame_caption_button_container_view.h#newcode8 ash/frame/caption_buttons/frame_caption_button_container_view.h:8: #include <map> On 2014/05/08 21:15:40, jonross wrote: > On ...
6 years, 7 months ago (2014-05-09 14:15:14 UTC) #4
jonross
https://codereview.chromium.org/271913002/diff/40001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/40001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode185 ash/frame/caption_buttons/frame_caption_button_container_view.cc:185: // animation. For visual design. On 2014/05/09 14:15:14, flackr ...
6 years, 7 months ago (2014-05-09 14:45:46 UTC) #5
flackr
https://codereview.chromium.org/271913002/diff/40001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/40001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode401 ash/frame/caption_buttons/frame_caption_button_container_view.cc:401: PreferredSizeChanged(); On 2014/05/09 14:45:47, jonross wrote: > On 2014/05/09 ...
6 years, 7 months ago (2014-05-09 15:44:22 UTC) #6
jonross
https://codereview.chromium.org/271913002/diff/60001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/60001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode244 ash/frame/caption_buttons/frame_caption_button_container_view.cc:244: new ui::ScopedLayerAnimationSettings(child->layer()->GetAnimator()); On 2014/05/09 15:44:23, flackr wrote: > This ...
6 years, 7 months ago (2014-05-09 18:41:09 UTC) #7
flackr
https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode215 ash/frame/caption_buttons/frame_caption_button_container_view.cc:215: scoped_ptr<ui::ScopedLayerAnimationSettings> animation; nit: Scope this to it's use, i.e. ...
6 years, 7 months ago (2014-05-09 18:57:58 UTC) #8
jonross
https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode226 ash/frame/caption_buttons/frame_caption_button_container_view.cc:226: IsAnimatingProperty(ui::LayerAnimationElement::OPACITY); On 2014/05/09 18:57:58, flackr wrote: > Instead of ...
6 years, 7 months ago (2014-05-09 19:03:34 UTC) #9
jonross
https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/80001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode215 ash/frame/caption_buttons/frame_caption_button_container_view.cc:215: scoped_ptr<ui::ScopedLayerAnimationSettings> animation; On 2014/05/09 18:57:58, flackr wrote: > nit: ...
6 years, 7 months ago (2014-05-15 20:24:13 UTC) #10
flackr
The animation is quite complex. Can you have a test to verify that it works ...
6 years, 7 months ago (2014-05-16 18:40:12 UTC) #11
jonross
Added a unit test to ensure that button visibility changes are appropriately handled via the ...
6 years, 7 months ago (2014-05-16 19:50:01 UTC) #12
flackr
https://codereview.chromium.org/271913002/diff/140001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/140001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode209 ash/frame/caption_buttons/frame_caption_button_container_view.cc:209: bool child_animating_visibility = child_animator-> Call this child_animating_opacity to correctly ...
6 years, 7 months ago (2014-05-21 14:42:20 UTC) #13
jonross
https://codereview.chromium.org/271913002/diff/140001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/140001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode209 ash/frame/caption_buttons/frame_caption_button_container_view.cc:209: bool child_animating_visibility = child_animator-> On 2014/05/21 14:42:21, flackr wrote: ...
6 years, 7 months ago (2014-05-21 22:15:04 UTC) #14
flackr
https://codereview.chromium.org/271913002/diff/160001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/160001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode159 ash/frame/caption_buttons/frame_caption_button_container_view.cc:159: size_button_->layer()->SetVisible(true); nit: Comment why this is necessary. https://codereview.chromium.org/271913002/diff/160001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode203 ash/frame/caption_buttons/frame_caption_button_container_view.cc:203: ...
6 years, 7 months ago (2014-05-22 15:46:18 UTC) #15
jonross
https://codereview.chromium.org/271913002/diff/160001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/160001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode159 ash/frame/caption_buttons/frame_caption_button_container_view.cc:159: size_button_->layer()->SetVisible(true); On 2014/05/22 15:46:18, flackr wrote: > nit: Comment ...
6 years, 7 months ago (2014-05-22 20:36:04 UTC) #16
flackr
LGTM with nits. https://codereview.chromium.org/271913002/diff/180001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/180001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode163 ash/frame/caption_buttons/frame_caption_button_container_view.cc:163: // property, and keeps the layer ...
6 years, 7 months ago (2014-05-23 15:17:26 UTC) #17
jonross
Hi, Could you review my change to animate window controls when entering maximize mode? https://codereview.chromium.org/271913002/diff/180001/ash/frame/caption_buttons/frame_caption_button_container_view.cc ...
6 years, 7 months ago (2014-05-23 17:08:57 UTC) #18
oshima
lgtm https://codereview.chromium.org/271913002/diff/220001/ash/frame/caption_buttons/frame_caption_button_container_view.cc File ash/frame/caption_buttons/frame_caption_button_container_view.cc (right): https://codereview.chromium.org/271913002/diff/220001/ash/frame/caption_buttons/frame_caption_button_container_view.cc#newcode147 ash/frame/caption_buttons/frame_caption_button_container_view.cc:147: // because Shell::IsMaximizeWindowManagerEnabled is still false at the ...
6 years, 7 months ago (2014-05-23 23:25:57 UTC) #19
jonross
Review comments have been addressed. jochen would you be able to provide an owner review ...
6 years, 6 months ago (2014-05-29 15:45:42 UTC) #20
jochen (gone - plz use gerrit)
On 2014/05/29 15:45:42, jonross wrote: > Review comments have been addressed. > > jochen would ...
6 years, 6 months ago (2014-06-02 07:33:12 UTC) #21
jonross
Hi James, Could you review the changes to: chrome/browser/ui/views/frame/browser_header_painter_ash.cc chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc Narrowing the scope ...
6 years, 6 months ago (2014-06-02 13:52:17 UTC) #22
James Cook
LGTM for frame
6 years, 6 months ago (2014-06-02 17:42:23 UTC) #23
jonross
The CQ bit was checked by jonross@chromium.org
6 years, 6 months ago (2014-06-02 18:02:37 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jonross@chromium.org/271913002/240001
6 years, 6 months ago (2014-06-02 18:03:11 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_compile_dbg on tryserver.chromium ...
6 years, 6 months ago (2014-06-02 21:19:45 UTC) #26
commit-bot: I haz the power
Change committed as 274371
6 years, 6 months ago (2014-06-02 23:43:28 UTC) #27
tzik
6 years, 6 months ago (2014-06-03 07:45:47 UTC) #28
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/309973002/ by tzik@chromium.org.

The reason for reverting is: This CL seems to cause Linux Chromium OS ASan LSan
bots failure.
The failure logs are:
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...
http://build.chromium.org/p/chromium.memory/buildstatus?builder=Linux%20Chrom...
http://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%20...
.

Powered by Google App Engine
This is Rietveld 408576698