forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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}
- Loading branch information
Showing
32 changed files
with
783 additions
and
570 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h" | ||
|
||
namespace ash { | ||
|
||
MaximizeModeBackdropDelegateImpl::MaximizeModeBackdropDelegateImpl() = default; | ||
|
||
MaximizeModeBackdropDelegateImpl::~MaximizeModeBackdropDelegateImpl() = default; | ||
|
||
bool MaximizeModeBackdropDelegateImpl::HasBackdrop(aura::Window* window) { | ||
return true; | ||
} | ||
|
||
} // namespace ash |
27 changes: 27 additions & 0 deletions
27
ash/wm/maximize_mode/maximize_mode_backdrop_delegate_impl.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright 2017 The Chromium Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ash/wm/workspace/backdrop_delegate.h" | ||
|
||
#include "ash/ash_export.h" | ||
#include "base/macros.h" | ||
|
||
namespace ash { | ||
|
||
// A backdrop delegate for MaximizedMode, which always creates a backdrop. | ||
// This is also used in the WorkspaceLayoutManagerBackdropTest, hence | ||
// is public. | ||
class ASH_EXPORT MaximizeModeBackdropDelegateImpl : public BackdropDelegate { | ||
public: | ||
MaximizeModeBackdropDelegateImpl(); | ||
~MaximizeModeBackdropDelegateImpl() override; | ||
|
||
protected: | ||
bool HasBackdrop(aura::Window* window) override; | ||
|
||
private: | ||
DISALLOW_COPY_AND_ASSIGN(MaximizeModeBackdropDelegateImpl); | ||
}; | ||
|
||
} // namespace ash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.