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

Unified Diff: components/exo/wm_helper_mus.h

Issue 2250863003: exo: Run exo in mus+ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix review issues Created 4 years, 4 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: components/exo/wm_helper_mus.h
diff --git a/components/exo/wm_helper_mus.h b/components/exo/wm_helper_mus.h
new file mode 100644
index 0000000000000000000000000000000000000000..198f8e9fa89cc96fa0175505ec3ea568d5520329
--- /dev/null
+++ b/components/exo/wm_helper_mus.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 COMPONENTS_EXO_WM_HELPER_MUS_H_
+#define COMPONENTS_EXO_WM_HELPER_MUS_H_
+
+#include "base/macros.h"
+#include "components/exo/wm_helper.h"
+
+namespace exo {
+
+// A helper class for accessing WindowManager related features.
+class WMHelperMus : public WMHelper {
+ public:
+ WMHelperMus();
+ ~WMHelperMus() override;
+
+ private:
reveman 2016/08/17 21:10:06 nit: please avoid overriding public virtual functi
Peng 2016/08/17 21:29:58 Done.
+ // Overriden from WMHelper:
+ const ash::DisplayInfo GetDisplayInfo(int64_t display_id) const override;
+ aura::Window* GetContainer(int container_id) override;
+ aura::Window* GetActiveWindow() const override;
+ aura::Window* GetFocusedWindow() const override;
+ ui::CursorSetType GetCursorSet() const override;
+ void AddPreTargetHandler(ui::EventHandler* handler) override;
+ void PrependPreTargetHandler(ui::EventHandler* handler) override;
+ void RemovePreTargetHandler(ui::EventHandler* handler) override;
+ void AddPostTargetHandler(ui::EventHandler* handler) override;
+ void RemovePostTargetHandler(ui::EventHandler* handler) override;
+ bool IsMaximizeModeWindowManagerEnabled() const override;
+
+ DISALLOW_COPY_AND_ASSIGN(WMHelperMus);
+};
+
+} // namespace exo
+
+#endif // COMPONENTS_EXO_WM_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698