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

Unified Diff: ash/wm/always_on_top_controller.h

Issue 1926913002: Moves more code to ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_workspace_layout_manager
Patch Set: merge to trunk Created 4 years, 8 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
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/always_on_top_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/always_on_top_controller.h
diff --git a/ash/wm/always_on_top_controller.h b/ash/wm/always_on_top_controller.h
deleted file mode 100644
index dac4cd30435e2fa7e4d9c946ae0d61c0477ff94e..0000000000000000000000000000000000000000
--- a/ash/wm/always_on_top_controller.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2012 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_WM_ALWAYS_ON_TOP_CONTROLLER_H_
-#define ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_
-
-#include <memory>
-
-#include "ash/ash_export.h"
-#include "ash/wm/common/wm_window_observer.h"
-#include "base/macros.h"
-
-namespace ash {
-class WorkspaceLayoutManager;
-
-// AlwaysOnTopController puts window into proper containers based on its
-// 'AlwaysOnTop' property. That is, putting a window into the worskpace
-// container if its "AlwaysOnTop" property is false. Otherwise, put it in
-// |always_on_top_container_|.
-class ASH_EXPORT AlwaysOnTopController : public wm::WmWindowObserver {
- public:
- explicit AlwaysOnTopController(wm::WmWindow* viewport);
- ~AlwaysOnTopController() override;
-
- // Gets container for given |window| based on its "AlwaysOnTop" property.
- wm::WmWindow* GetContainer(wm::WmWindow* window) const;
-
- WorkspaceLayoutManager* GetLayoutManager() const;
-
- void SetLayoutManagerForTest(
- std::unique_ptr<WorkspaceLayoutManager> layout_manager);
-
- private:
- // Overridden from wm::WmWindowObserver:
- void OnWindowTreeChanged(wm::WmWindow* window,
- const TreeChangeParams& params) override;
- void OnWindowPropertyChanged(wm::WmWindow* window,
- wm::WmWindowProperty property,
- intptr_t old) override;
- void OnWindowDestroying(wm::WmWindow* window) override;
-
- wm::WmWindow* always_on_top_container_;
-
- DISALLOW_COPY_AND_ASSIGN(AlwaysOnTopController);
-};
-
-} // namepsace ash
-
-#endif // ASH_WM_ALWAYS_ON_TOP_CONTROLLER_H_
« no previous file with comments | « ash/test/ash_test_base.cc ('k') | ash/wm/always_on_top_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698