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 2884623002: Refactor backdrop (Closed)

Created:
3 years, 7 months ago by oshima
Modified:
3 years, 7 months ago
Reviewers:
James Cook, reveman, sky
CC:
chromium-reviews, dcheng, kalyank, sadrul, Mr4D (OOO till 08-26)
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor backdrop that is currently used in the maximized mode. The maximized mode creates a backdrop window so that a user will not see the content of windows behind the top window, in case it doesn't cover the entire window. (can happen if the maximize size is specified for example) This CL generalizes the backdrop code used in maximize mode as to create the backdrop in the following scenarios: 1) Has a aura::client::kHasBackdrop property = true. 2) BackdropDelegate::HasBackdrop(aura::Window* window) returns true. 3) Active ARC window when the spoken feedback is enabled. * Added delegate to check if the window should have a backdrop. Maximized mode always puts a backdrop. * Added kHasBackdrop property for a window that needs a backdrop even in clamshell. * Move the accessibility feature implemented in exo's backbround. This is useful and should be there even for non-arc/exo case. BUG=721646 TEST=coverted by unit tests Review-Url: https://codereview.chromium.org/2884623002 Cr-Commit-Position: refs/heads/master@{#472401} Committed: https://chromium.googlesource.com/chromium/src/+/04936c54ed2396ae54cd824e24f11151e0e11948

Patch Set 1 #

Patch Set 2 : Generalize Backdrop #

Total comments: 65

Patch Set 3 : Generalize Backdrop #

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 9

Patch Set 6 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+759 lines, -591 lines) Patch
M ash/BUILD.gn View 1 2 3 4 5 4 chunks +5 lines, -3 lines 0 comments Download
M ash/test/workspace_controller_test_api.h View 1 chunk +1 line, -0 lines 0 comments Download
M ash/test/workspace_controller_test_api.cc View 2 chunks +6 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.cc View 1 2 1 chunk +17 lines, -0 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 4 chunks +4 lines, -20 lines 0 comments Download
D ash/wm/maximize_mode/workspace_backdrop_delegate.h View 1 chunk +0 lines, -65 lines 0 comments Download
D ash/wm/maximize_mode/workspace_backdrop_delegate.cc View 1 chunk +0 lines, -133 lines 0 comments Download
A ash/wm/workspace/backdrop_controller.h View 1 2 3 4 5 1 chunk +116 lines, -0 lines 0 comments Download
A ash/wm/workspace/backdrop_controller.cc View 1 2 3 4 5 1 chunk +244 lines, -0 lines 0 comments Download
A + ash/wm/workspace/backdrop_delegate.h View 1 2 1 chunk +7 lines, -24 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 1 2 3 4 chunks +9 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 1 2 3 4 5 8 chunks +23 lines, -24 lines 0 comments Download
D ash/wm/workspace/workspace_layout_manager_backdrop_delegate.h View 1 chunk +0 lines, -45 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager_unittest.cc View 1 2 3 4 5 7 chunks +258 lines, -10 lines 0 comments Download
M ash/wm/workspace_controller.h View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/wm/workspace_controller.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge_unittest.cc View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download
M components/exo/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M components/exo/shell_surface.h View 3 chunks +0 lines, -5 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 4 5 8 chunks +11 lines, -81 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 1 2 3 6 chunks +18 lines, -103 lines 0 comments Download
M components/exo/wm_helper.h View 5 chunks +0 lines, -14 lines 0 comments Download
M components/exo/wm_helper.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M components/exo/wm_helper_ash.h View 4 chunks +0 lines, -8 lines 0 comments Download
M components/exo/wm_helper_ash.cc View 5 chunks +0 lines, -16 lines 0 comments Download
M components/exo/wm_helper_mus.h View 1 chunk +0 lines, -2 lines 0 comments Download
M components/exo/wm_helper_mus.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 49 (38 generated)
oshima
3 years, 7 months ago (2017-05-15 09:28:55 UTC) #10
oshima
jamescook@ -> ash reveman@ -> exo sky@ -> ui/aura skuhne@ FYI as you're busy for ...
3 years, 7 months ago (2017-05-15 09:29:37 UTC) #12
reveman
components/exo lgtm with nits https://codereview.chromium.org/2884623002/diff/100001/components/exo/shell_surface.cc File components/exo/shell_surface.cc (right): https://codereview.chromium.org/2884623002/diff/100001/components/exo/shell_surface.cc#newcode1540 components/exo/shell_surface.cc:1540: bool enable_backdrop = nit: describes ...
3 years, 7 months ago (2017-05-15 13:46:23 UTC) #15
sky
LGTM with the following addressed https://codereview.chromium.org/2884623002/diff/100001/ui/aura/client/aura_constants.h File ui/aura/client/aura_constants.h (right): https://codereview.chromium.org/2884623002/diff/100001/ui/aura/client/aura_constants.h#newcode118 ui/aura/client/aura_constants.h:118: // A bool property ...
3 years, 7 months ago (2017-05-15 17:38:29 UTC) #16
James Cook
Can you add to CL description what "backdrop" means? https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h File ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h (right): https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h#newcode12 ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h:12: ...
3 years, 7 months ago (2017-05-15 21:57:40 UTC) #17
oshima
There is one scenario that was missing in the original CL. ARC window should have ...
3 years, 7 months ago (2017-05-16 08:22:10 UTC) #25
James Cook
LGTM with nits https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h File ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h (right): https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h#newcode12 ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h:12: class ASH_EXPORT MaximizeModeBackdropDelegateImpl : public BackdropDelegate ...
3 years, 7 months ago (2017-05-16 15:12:15 UTC) #35
oshima
https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h File ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h (right): https://codereview.chromium.org/2884623002/diff/100001/ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h#newcode12 ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h:12: class ASH_EXPORT MaximizeModeBackdropDelegateImpl : public BackdropDelegate { On 2017/05/16 ...
3 years, 7 months ago (2017-05-17 07:44:34 UTC) #37
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/2884623002/220001
3 years, 7 months ago (2017-05-17 09:37:55 UTC) #45
commit-bot: I haz the power
Committed patchset #6 (id:220001) as https://chromium.googlesource.com/chromium/src/+/04936c54ed2396ae54cd824e24f11151e0e11948
3 years, 7 months ago (2017-05-17 09:44:51 UTC) #48
kolos1
3 years, 7 months ago (2017-05-17 13:15:59 UTC) #49
Message was sent while issue was closed.
A revert of this CL (patchset #6 id:220001) has been created in
https://codereview.chromium.org/2887103002/ by kolos@chromium.org.

The reason for reverting is: FindIt detected this CL as culprit.
https://findit-for-me.appspot.com/waterfall/build-failure?url=https://build.c....

Powered by Google App Engine
This is Rietveld 408576698