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

Issue 2786563003: Add a NOT_DRAWN window in between the root_window and its children. (Closed)

Created:
3 years, 8 months ago by wutao
Modified:
3 years, 8 months ago
Reviewers:
oshima, James Cook, sadrul, sky
CC:
chromium-reviews, kalyank
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add a NOT_DRAWN window in between the root_window and its children. For screen rotation animation, currently we start animation for each child layer of root_window's layer. By adding a NOT_DRAWN window, we only need to initiate one animation sequence for these children. BUG=678763 R=oshima@chromium.org TEST=Manual Review-Url: https://codereview.chromium.org/2786563003 Cr-Commit-Position: refs/heads/master@{#464762} Committed: https://chromium.googlesource.com/chromium/src/+/335760818a29274b57f59d23f555bf6a3b60fb3e

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rename container and add depth to resize window. #

Total comments: 6

Patch Set 3 : Rebased and fixed nits. #

Patch Set 4 : Fix the tests. #

Total comments: 6

Patch Set 5 : Add helper function to get WmWindow by Shell Id. #

Total comments: 6

Patch Set 6 : Fix nits in patch 5. #

Total comments: 5

Patch Set 7 : Fix the comment for ResizeWindow. #

Patch Set 8 : Rebased to origin/master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -156 lines) Patch
M ash/devtools/ash_devtools_unittest.cc View 1 2 3 4 5 6 7 9 chunks +32 lines, -16 lines 0 comments Download
M ash/public/cpp/shell_window_ids.h View 1 2 3 2 chunks +55 lines, -50 lines 0 comments Download
M ash/root_window_controller.cc View 1 2 3 4 5 6 7 2 chunks +29 lines, -19 lines 0 comments Download
M ash/rotator/screen_rotation_animator.cc View 1 2 3 4 5 6 7 6 chunks +41 lines, -51 lines 0 comments Download
M ash/wm/root_window_layout_manager.cc View 1 2 3 4 5 6 2 chunks +30 lines, -20 lines 0 comments Download

Messages

Total messages: 58 (21 generated)
wutao
Hi Oshima, Could you please have a look. I am adding a NOT_DRAWN layer in ...
3 years, 8 months ago (2017-03-29 15:56:22 UTC) #2
oshima
https://codereview.chromium.org/2786563003/diff/1/ash/common/wm/root_window_layout_manager.cc File ash/common/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/1/ash/common/wm/root_window_layout_manager.cc#newcode28 ash/common/wm/root_window_layout_manager.cc:28: ResizeWindow(child->children(), fullscreen_bounds); I don't think this is right. There ...
3 years, 8 months ago (2017-04-05 20:26:51 UTC) #4
James Cook
https://codereview.chromium.org/2786563003/diff/1/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/2786563003/diff/1/ash/root_window_controller.cc#newcode876 ash/root_window_controller.cc:876: kShellWindowId_DelegateRootContainer, "DelegateRootContainer", root); On 2017/04/05 20:26:51, oshima wrote: > ...
3 years, 8 months ago (2017-04-05 20:54:41 UTC) #5
wutao
Hi Oshima and James, Could you please have a look again. Thanks, Tao https://codereview.chromium.org/2786563003/diff/1/ash/common/wm/root_window_layout_manager.cc File ...
3 years, 8 months ago (2017-04-05 23:37:34 UTC) #7
James Cook
The new name looks good. I'll let oshima review the rest.
3 years, 8 months ago (2017-04-06 14:14:58 UTC) #8
oshima
lgtm with nits https://codereview.chromium.org/2786563003/diff/20001/ash/common/wm/root_window_layout_manager.cc File ash/common/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/20001/ash/common/wm/root_window_layout_manager.cc#newcode20 ash/common/wm/root_window_layout_manager.cc:20: return; I think this is ok ...
3 years, 8 months ago (2017-04-06 16:34:16 UTC) #9
wutao
Rebased to commit. https://codereview.chromium.org/2786563003/diff/20001/ash/common/wm/root_window_layout_manager.cc File ash/common/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/20001/ash/common/wm/root_window_layout_manager.cc#newcode20 ash/common/wm/root_window_layout_manager.cc:20: return; On 2017/04/06 16:34:15, oshima wrote: ...
3 years, 8 months ago (2017-04-08 02:07:10 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786563003/40001
3 years, 8 months ago (2017-04-08 02:07:59 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/358016)
3 years, 8 months ago (2017-04-08 02:48:27 UTC) #15
wutao
Hi Oshima, Please verify adding this layer not break production code. I am afraid if ...
3 years, 8 months ago (2017-04-10 02:08:46 UTC) #17
sadrul
On 2017/04/10 02:08:46, wutao wrote: > Hi Oshima, > > Please verify adding this layer ...
3 years, 8 months ago (2017-04-10 18:18:51 UTC) #22
sadrul
On 2017/04/10 18:18:51, sadrul wrote: > On 2017/04/10 02:08:46, wutao wrote: > > Hi Oshima, ...
3 years, 8 months ago (2017-04-10 18:19:35 UTC) #23
wutao
> > Are you inserting a *layer* or a *window*? Because if you insert a ...
3 years, 8 months ago (2017-04-10 18:25:03 UTC) #24
oshima
https://codereview.chromium.org/2786563003/diff/60001/ash/root_window_controller.cc File ash/root_window_controller.cc (right): https://codereview.chromium.org/2786563003/diff/60001/ash/root_window_controller.cc#newcode877 ash/root_window_controller.cc:877: screen_rotation_container->SetChildWindowVisibilityChangesAnimated(); just noticed this. Did you need this?
3 years, 8 months ago (2017-04-10 19:19:06 UTC) #25
wutao
On 2017/04/10 19:19:06, oshima wrote: > https://codereview.chromium.org/2786563003/diff/60001/ash/root_window_controller.cc > File ash/root_window_controller.cc (right): > > https://codereview.chromium.org/2786563003/diff/60001/ash/root_window_controller.cc#newcode877 > ...
3 years, 8 months ago (2017-04-10 19:26:17 UTC) #26
oshima
can you remove if it's not necessary? https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc File ash/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc#newcode369 ash/devtools/ash_devtools_unittest.cc:369: ->GetChildren()[0] define ...
3 years, 8 months ago (2017-04-10 19:44:12 UTC) #27
wutao
Hi Oshima, Please review the new changes. Thank you, Tao https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc File ash/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc#newcode369 ...
3 years, 8 months ago (2017-04-10 23:03:54 UTC) #28
oshima
lgtm but please wait for sadrul@'s review for dev tools. https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc File ash/devtools/ash_devtools_unittest.cc (right): https://codereview.chromium.org/2786563003/diff/60001/ash/devtools/ash_devtools_unittest.cc#newcode369 ...
3 years, 8 months ago (2017-04-11 21:48:08 UTC) #33
wutao
Hi sadrul@, Could you please look the dev tools test. Thank you, Tao
3 years, 8 months ago (2017-04-12 16:09:55 UTC) #34
sadrul
+sky@ Have you tried actually inserting the *layer* for just the animation? i.e. you insert ...
3 years, 8 months ago (2017-04-13 17:05:15 UTC) #36
sadrul
Some comments on the test itself, if we still end up with the rotation window ...
3 years, 8 months ago (2017-04-13 17:09:42 UTC) #37
oshima
On 2017/04/13 17:05:15, sadrul wrote: > +sky@ > > Have you tried actually inserting the ...
3 years, 8 months ago (2017-04-13 17:12:56 UTC) #38
wutao
Hi Sadrul: I changed the test to what you suggested. Please look the test again. ...
3 years, 8 months ago (2017-04-13 18:09:39 UTC) #39
sadrul
On 2017/04/13 17:12:56, oshima wrote: > On 2017/04/13 17:05:15, sadrul wrote: > > +sky@ > ...
3 years, 8 months ago (2017-04-14 05:52:44 UTC) #40
oshima
On 2017/04/14 05:52:44, sadrul wrote: > On 2017/04/13 17:12:56, oshima wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-14 06:23:33 UTC) #41
oshima
https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc File ash/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc#newcode20 ash/wm/root_window_layout_manager.cc:20: return; On 2017/04/14 05:52:44, sadrul wrote: > This doesn't ...
3 years, 8 months ago (2017-04-14 06:52:15 UTC) #42
wutao
On 2017/04/14 05:52:44, sadrul wrote: > Also, if you are inserting a window, please make ...
3 years, 8 months ago (2017-04-14 08:02:21 UTC) #44
oshima
On 2017/04/14 06:23:33, oshima wrote: > On 2017/04/14 05:52:44, sadrul wrote: > > On 2017/04/13 ...
3 years, 8 months ago (2017-04-14 14:38:27 UTC) #46
sadrul
> > > > > Have you tried actually inserting the *layer* for just the ...
3 years, 8 months ago (2017-04-14 16:58:42 UTC) #47
sadrul
https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc File ash/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc#newcode20 ash/wm/root_window_layout_manager.cc:20: return; On 2017/04/14 06:52:15, oshima wrote: > On 2017/04/14 ...
3 years, 8 months ago (2017-04-14 17:00:58 UTC) #48
oshima
On 2017/04/14 16:58:42, sadrul wrote: > > > > > > Have you tried actually ...
3 years, 8 months ago (2017-04-14 17:19:12 UTC) #49
oshima
https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc File ash/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc#newcode20 ash/wm/root_window_layout_manager.cc:20: return; On 2017/04/14 17:00:58, sadrul wrote: > On 2017/04/14 ...
3 years, 8 months ago (2017-04-14 17:28:46 UTC) #50
oshima
3 years, 8 months ago (2017-04-14 17:28:46 UTC) #51
wutao
Comments updated. https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc File ash/wm/root_window_layout_manager.cc (right): https://codereview.chromium.org/2786563003/diff/100001/ash/wm/root_window_layout_manager.cc#newcode20 ash/wm/root_window_layout_manager.cc:20: return; On 2017/04/14 17:28:45, oshima wrote: > ...
3 years, 8 months ago (2017-04-14 17:56:21 UTC) #52
oshima
lgtm
3 years, 8 months ago (2017-04-14 18:17:29 UTC) #53
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2786563003/140001
3 years, 8 months ago (2017-04-14 18:20:17 UTC) #55
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 18:52:13 UTC) #58
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/335760818a29274b57f59d23f555...

Powered by Google App Engine
This is Rietveld 408576698