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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
6 #define MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "components/mus/common/types.h"
12 #include "components/mus/public/cpp/window_observer.h"
13 #include "mash/wm/public/interfaces/user_window_controller.mojom.h"
14
15 namespace mash {
16 namespace wm {
17
18 class WindowManagerApplication;
19
20 class UserWindowControllerImpl : public mash::wm::mojom::UserWindowController,
21 public mus::WindowObserver {
22 public:
23 UserWindowControllerImpl();
24 ~UserWindowControllerImpl() override;
25
26 void Initialize(WindowManagerApplication* state);
27
28 private:
29 // A helper to get the container for user windows.
30 mus::Window* GetUserWindowContainer() const;
31
32 // mus::WindowObserver:
33 void OnTreeChanging(const TreeChangeParams& params) override;
34
35 // mash::wm::mojom::UserWindowController:
36 void AddUserWindowObserver(
37 mash::wm::mojom::UserWindowObserverPtr observer) override;
38 void FocusUserWindow(uint32_t window_id) override;
39
40 WindowManagerApplication* state_;
41 mash::wm::mojom::UserWindowObserverPtr user_window_observer_;
42
43 DISALLOW_COPY_AND_ASSIGN(UserWindowControllerImpl);
44 };
45
46 } // namespace wm
47 } // namespace mash
48
49 #endif // MASH_WM_USER_WINDOW_CONTROLLER_IMPL_H_
OLDNEW
« 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