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

Unified Diff: mash/wm/user_window_controller_impl.h

Issue 1576683002: Add rudimentary mash shelf functionality. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 4 years, 11 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 | « mash/wm/public/interfaces/user_window_controller.mojom ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/user_window_controller_impl.h
diff --git a/mash/wm/user_window_controller_impl.h b/mash/wm/user_window_controller_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..1737b616ccb89271d82a8265c3905bde5d18fed9
--- /dev/null
+++ b/mash/wm/user_window_controller_impl.h
@@ -0,0 +1,49 @@
+// Copyright 2015 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 MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
+#define MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
+
+#include <stdint.h>
+
+#include "base/macros.h"
+#include "components/mus/common/types.h"
+#include "components/mus/public/cpp/window_observer.h"
+#include "mash/wm/public/interfaces/user_window_controller.mojom.h"
+
+namespace mash {
+namespace wm {
+
+class WindowManagerApplication;
+
+class UserWindowControllerImpl : public mash::wm::mojom::UserWindowController,
+ public mus::WindowObserver {
+ public:
+ UserWindowControllerImpl();
+ ~UserWindowControllerImpl() override;
+
+ void Initialize(WindowManagerApplication* state);
+
+ private:
+ // A helper to get the container for user windows.
+ mus::Window* GetUserWindowContainer() const;
+
+ // mus::WindowObserver:
+ void OnTreeChanging(const TreeChangeParams& params) override;
+
+ // mash::wm::mojom::UserWindowController:
+ void AddUserWindowObserver(
+ mash::wm::mojom::UserWindowObserverPtr observer) override;
+ void FocusUserWindow(uint32_t window_id) override;
+
+ WindowManagerApplication* state_;
+ mash::wm::mojom::UserWindowObserverPtr user_window_observer_;
+
+ DISALLOW_COPY_AND_ASSIGN(UserWindowControllerImpl);
+};
+
+} // namespace wm
+} // namespace mash
+
+#endif // MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
« no previous file with comments | « mash/wm/public/interfaces/user_window_controller.mojom ('k') | mash/wm/user_window_controller_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698