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

Side by Side Diff: components/mus/example/wm/window_manager_impl.h

Issue 1407073002: Adds GetDisplays() to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 5 years, 2 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ 5 #ifndef COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_
6 #define COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ 6 #define COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/mus/public/interfaces/window_manager.mojom.h" 9 #include "components/mus/public/interfaces/window_manager.mojom.h"
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" 10 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h"
11 11
12 class WindowManagerApplication; 12 class WindowManagerApplication;
13 13
14 class WindowManagerImpl : public mus::mojom::WindowManager { 14 class WindowManagerImpl : public mus::mojom::WindowManager {
15 public: 15 public:
16 WindowManagerImpl(WindowManagerApplication* state, 16 WindowManagerImpl(WindowManagerApplication* state,
17 mojo::InterfaceRequest<mus::mojom::WindowManager> request); 17 mojo::InterfaceRequest<mus::mojom::WindowManager> request);
18 ~WindowManagerImpl() override; 18 ~WindowManagerImpl() override;
19 19
20 private: 20 private:
21 // mus::mojom::WindowManager: 21 // mus::mojom::WindowManager:
22 void OpenWindow(mojo::ViewTreeClientPtr client) override; 22 void OpenWindow(mojo::ViewTreeClientPtr client) override;
23 void CenterWindow(uint32_t view_id, mojo::SizePtr size) override; 23 void CenterWindow(uint32_t view_id, mojo::SizePtr size) override;
24 void GetDisplays(const GetDisplaysCallback& callback) override;
24 25
25 WindowManagerApplication* state_; 26 WindowManagerApplication* state_;
26 mojo::StrongBinding<mus::mojom::WindowManager> binding_; 27 mojo::StrongBinding<mus::mojom::WindowManager> binding_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); 29 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl);
29 }; 30 };
30 31
31 #endif // COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_ 32 #endif // COMPONENTS_MUS_EXAMPLE_WM_WINDOW_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/example/window_type_launcher/window_type_launcher.cc ('k') | components/mus/example/wm/window_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698