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

Unified Diff: ash/wm/maximize_mode/workspace_backdrop_delegate.h

Issue 2091263004: Moves a couple of the maximize mode classes to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/wm/maximize_mode/workspace_backdrop_delegate.h
diff --git a/ash/wm/maximize_mode/workspace_backdrop_delegate.h b/ash/wm/maximize_mode/workspace_backdrop_delegate.h
index 2ebbbf9b171711750878e5aeacdc34aba045cf9e..527a5faba8aaa2eebba4a59d7aed092a1c870502 100644
--- a/ash/wm/maximize_mode/workspace_backdrop_delegate.h
+++ b/ash/wm/maximize_mode/workspace_backdrop_delegate.h
@@ -9,26 +9,23 @@
#include "ash/ash_export.h"
#include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
-#include "base/compiler_specific.h"
#include "base/macros.h"
-namespace aura {
-class Window;
-}
-
namespace views {
class Widget;
}
namespace ash {
+class WmWindow;
+
// A background which gets created for a container |window| and which gets
// stacked behind the topmost window (within that container) covering the
// entire container.
class ASH_EXPORT WorkspaceBackdropDelegate
: public WorkspaceLayoutManagerBackdropDelegate {
public:
- explicit WorkspaceBackdropDelegate(aura::Window* container);
+ explicit WorkspaceBackdropDelegate(WmWindow* container);
~WorkspaceBackdropDelegate() override;
// WorkspaceLayoutManagerBackdropDelegate overrides:
@@ -47,7 +44,7 @@ class ASH_EXPORT WorkspaceBackdropDelegate
void RestackBackdrop();
// Returns the current visible top level window in the container.
- aura::Window* GetCurrentTopWindow();
+ WmWindow* GetCurrentTopWindow();
// Position & size the background over the container window.
void AdjustToContainerBounds();
@@ -58,10 +55,12 @@ class ASH_EXPORT WorkspaceBackdropDelegate
std::unique_ptr<WindowObserverImpl> container_observer_;
// The background which covers the rest of the screen.
- views::Widget* background_;
+ views::Widget* background_ = nullptr;
+ // WmWindow for |background_|.
+ WmWindow* background_window_ = nullptr;
// The window which is being "maximized".
- aura::Window* container_;
+ WmWindow* container_;
// If true, the |RestackOrHideWindow| might recurse.
bool in_restacking_;
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_state.cc ('k') | ash/wm/maximize_mode/workspace_backdrop_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698