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

Issue 2890733005: Refactor backdrop that is currently used in the maximized mode. (Closed)

Created:
3 years, 7 months ago by oshima
Modified:
3 years, 7 months ago
Reviewers:
James Cook, reveman, sky
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, dtseng+watch_chromium.org, sadrul, yusukes+watch_chromium.org, je_julie, aboxhall+watch_chromium.org, hidehiko+watch_chromium.org, oshima+watch_chromium.org, nektar+watch_chromium.org, dcheng, yuzo+watch_chromium.org, dougt+watch_chromium.org, lhchavez+watch_chromium.org, dmazzoni+watch_chromium.org, victorhsieh+watch_chromium.org, kalyank, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

This is reland of crrev.com/2884623002. Added test uncovered a stack-use-after-scope issue in AshTouchExplorationManager. Patch #2 fixes the issue. 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. TBR=jamescook@chromium.org,reveman@chromium.org,sky@chromium.org 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 from issue 2884623002 at patchset 220001 (http://crrev.com/2884623002#ps220001) Review-Url: https://codereview.chromium.org/2890733005 Cr-Commit-Position: refs/heads/master@{#472479} Committed: https://chromium.googlesource.com/chromium/src/+/512e6cd623a2039889c13d04759dd6714c08f663

Patch Set 1 #

Patch Set 2 : fix memory issue in AshTouchExplorationManager #

Unified diffs Side-by-side diffs Delta from patch set Stats (+762 lines, -594 lines) Patch
M ash/BUILD.gn View 4 chunks +5 lines, -3 lines 0 comments Download
M ash/ash_touch_exploration_manager_chromeos.cc View 1 1 chunk +3 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 chunk +27 lines, -0 lines 0 comments Download
A ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.cc View 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 chunk +116 lines, -0 lines 0 comments Download
A ash/wm/workspace/backdrop_controller.cc View 1 chunk +244 lines, -0 lines 0 comments Download
A + ash/wm/workspace/backdrop_delegate.h View 1 chunk +7 lines, -24 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.h View 4 chunks +9 lines, -4 lines 0 comments Download
M ash/wm/workspace/workspace_layout_manager.cc View 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 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 chunk +0 lines, -2 lines 0 comments Download
M components/exo/BUILD.gn View 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 8 chunks +11 lines, -81 lines 0 comments Download
M components/exo/shell_surface_unittest.cc View 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 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: 9 (5 generated)
oshima
3 years, 7 months ago (2017-05-17 15:37:53 UTC) #3
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/2890733005/20001
3 years, 7 months ago (2017-05-17 15:38:24 UTC) #5
James Cook
still lgtm. thanks for uploading the fix patch separately
3 years, 7 months ago (2017-05-17 16:18:02 UTC) #6
commit-bot: I haz the power
3 years, 7 months ago (2017-05-17 16:51:40 UTC) #9
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/512e6cd623a2039889c13d04759d...

Powered by Google App Engine
This is Rietveld 408576698