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

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

Issue 2734653002: chromeos: Move files in //ash/common to //ash (Closed)
Patch Set: fix a11y tests, fix docs Created 3 years, 10 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/common/wm/maximize_mode/workspace_backdrop_delegate.h
diff --git a/ash/common/wm/maximize_mode/workspace_backdrop_delegate.h b/ash/common/wm/maximize_mode/workspace_backdrop_delegate.h
deleted file mode 100644
index 4145c2cb4cfc69e798bfc37fc98b63d43a6ee728..0000000000000000000000000000000000000000
--- a/ash/common/wm/maximize_mode/workspace_backdrop_delegate.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef ASH_COMMON_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
-#define ASH_COMMON_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "ash/common/wm/workspace/workspace_layout_manager_backdrop_delegate.h"
-#include "base/macros.h"
-
-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(WmWindow* container);
- ~WorkspaceBackdropDelegate() override;
-
- // WorkspaceLayoutManagerBackdropDelegate overrides:
- void OnWindowAddedToLayout(WmWindow* child) override;
- void OnWindowRemovedFromLayout(WmWindow* child) override;
- void OnChildWindowVisibilityChanged(WmWindow* child, bool visible) override;
- void OnWindowStackingChanged(WmWindow* window) override;
- void OnPostWindowStateTypeChange(wm::WindowState* window_state,
- wm::WindowStateType old_type) override;
- void OnDisplayWorkAreaInsetsChanged() override;
-
- private:
- class WindowObserverImpl;
-
- // Restack the backdrop relatively to the other windows in the container.
- void RestackBackdrop();
-
- // Returns the current visible top level window in the container.
- WmWindow* GetCurrentTopWindow();
-
- // Position & size the background over the container window.
- void AdjustToContainerBounds();
-
- // Show the overlay.
- void Show();
-
- std::unique_ptr<WindowObserverImpl> container_observer_;
-
- // The background which covers the rest of the screen.
- views::Widget* background_ = nullptr;
- // WmWindow for |background_|.
- WmWindow* background_window_ = nullptr;
-
- // The window which is being "maximized".
- WmWindow* container_;
-
- // If true, the |RestackOrHideWindow| might recurse.
- bool in_restacking_;
-
- DISALLOW_COPY_AND_ASSIGN(WorkspaceBackdropDelegate);
-};
-
-} // namespace ash
-
-#endif // ASH_COMMON_WM_MAXIMIZE_MODE_WORKSPACE_BACKDROP_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698