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

Unified Diff: ash/wm/aura/wm_globals_aura.h

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows 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/cursor_manager_test_api.cc ('k') | ash/wm/aura/wm_globals_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/aura/wm_globals_aura.h
diff --git a/ash/wm/aura/wm_globals_aura.h b/ash/wm/aura/wm_globals_aura.h
new file mode 100644
index 0000000000000000000000000000000000000000..16f5e3a6f72643078356f470575ebec37f794e73
--- /dev/null
+++ b/ash/wm/aura/wm_globals_aura.h
@@ -0,0 +1,38 @@
+// Copyright 2016 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_AURA_WM_GLOBALS_AURA_H_
+#define ASH_WM_AURA_WM_GLOBALS_AURA_H_
+
+#include <set>
+
+#include "ash/ash_export.h"
+#include "ash/wm/common/wm_globals.h"
+#include "base/macros.h"
+
+namespace ash {
+namespace wm {
+
+class ASH_EXPORT WmGlobalsAura : public WmGlobals {
+ public:
+ WmGlobalsAura();
+ ~WmGlobalsAura() override;
+
+ static WmGlobalsAura* Get();
+
+ // WmGlobals:
+ WmWindow* GetActiveWindow() override;
+ WmWindow* GetRootWindowForNewWindows() override;
+ std::vector<WmWindow*> GetMruWindowListIgnoreModals() override;
+ bool IsForceMaximizeOnFirstRun() override;
+ std::vector<WmWindow*> GetAllRootWindows() override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WmGlobalsAura);
+};
+
+} // namespace wm
+} // namespace ash
+
+#endif // ASH_WM_AURA_WM_GLOBALS_AURA_H_
« no previous file with comments | « ash/test/cursor_manager_test_api.cc ('k') | ash/wm/aura/wm_globals_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698