OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 5 #ifndef COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 6 #define COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "components/view_manager/public/cpp/types.h" |
| 11 #include "components/window_manager/public/interfaces/window_manager.mojom.h" |
10 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" | 12 #include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h" |
11 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" | 13 #include "third_party/mojo/src/mojo/public/cpp/bindings/error_handler.h" |
12 #include "third_party/mojo_services/src/view_manager/public/cpp/types.h" | |
13 #include "third_party/mojo_services/src/window_manager/public/interfaces/window_
manager.mojom.h" | |
14 | 14 |
15 namespace window_manager { | 15 namespace window_manager { |
16 | 16 |
17 class WindowManagerApp; | 17 class WindowManagerApp; |
18 | 18 |
19 class WindowManagerImpl : public mojo::WindowManager, | 19 class WindowManagerImpl : public mojo::WindowManager, |
20 public mojo::ErrorHandler { | 20 public mojo::ErrorHandler { |
21 public: | 21 public: |
22 // See description above |from_vm_| for details on |from_vm|. | 22 // See description above |from_vm_| for details on |from_vm|. |
23 // WindowManagerImpl deletes itself on connection errors. WindowManagerApp | 23 // WindowManagerImpl deletes itself on connection errors. WindowManagerApp |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 | 59 |
60 mojo::Binding<mojo::WindowManager> binding_; | 60 mojo::Binding<mojo::WindowManager> binding_; |
61 mojo::WindowManagerObserverPtr observer_; | 61 mojo::WindowManagerObserverPtr observer_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 63 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
64 }; | 64 }; |
65 | 65 |
66 } // namespace window_manager | 66 } // namespace window_manager |
67 | 67 |
68 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ | 68 #endif // COMPONENTS_WINDOW_MANAGER_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |