OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 MASH_WM_WINDOW_MANAGER_IMPL_H_ | 5 #ifndef ASH_MUS_WM_WINDOW_MANAGER_IMPL_H_ |
6 #define MASH_WM_WINDOW_MANAGER_IMPL_H_ | 6 #define ASH_MUS_WM_WINDOW_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "components/mus/common/types.h" | 11 #include "components/mus/common/types.h" |
12 #include "components/mus/public/cpp/window_manager_delegate.h" | 12 #include "components/mus/public/cpp/window_manager_delegate.h" |
13 #include "components/mus/public/cpp/window_observer.h" | 13 #include "components/mus/public/cpp/window_observer.h" |
14 #include "components/mus/public/interfaces/window_manager.mojom.h" | 14 #include "components/mus/public/interfaces/window_manager.mojom.h" |
15 | 15 |
16 namespace mash { | 16 namespace ash { |
17 namespace wm { | 17 namespace muswm { |
18 | 18 |
19 class WindowManagerApplication; | 19 class WindowManagerApplication; |
20 | 20 |
21 using WindowManagerErrorCodeCallback = | 21 using WindowManagerErrorCodeCallback = |
22 const mojo::Callback<void(mus::mojom::WindowManagerErrorCode)>; | 22 const mojo::Callback<void(mus::mojom::WindowManagerErrorCode)>; |
23 | 23 |
24 class WindowManagerImpl : public mus::mojom::WindowManagerDeprecated, | 24 class WindowManagerImpl : public mus::mojom::WindowManagerDeprecated, |
25 public mus::WindowObserver, | 25 public mus::WindowObserver, |
26 public mus::WindowManagerDelegate { | 26 public mus::WindowManagerDelegate { |
27 public: | 27 public: |
(...skipping 27 matching lines...) Expand all Loading... |
55 scoped_ptr<std::vector<uint8_t>>* new_data) override; | 55 scoped_ptr<std::vector<uint8_t>>* new_data) override; |
56 mus::Window* OnWmCreateTopLevelWindow( | 56 mus::Window* OnWmCreateTopLevelWindow( |
57 std::map<std::string, std::vector<uint8_t>>* properties) override; | 57 std::map<std::string, std::vector<uint8_t>>* properties) override; |
58 | 58 |
59 WindowManagerApplication* state_; | 59 WindowManagerApplication* state_; |
60 mus::WindowManagerClient* window_manager_client_; | 60 mus::WindowManagerClient* window_manager_client_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); | 62 DISALLOW_COPY_AND_ASSIGN(WindowManagerImpl); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace wm | 65 } // namespace muswm |
66 } // namespace mash | 66 } // namespace ash |
67 | 67 |
68 #endif // MASH_WM_WINDOW_MANAGER_IMPL_H_ | 68 #endif // ASH_MUS_WM_WINDOW_MANAGER_IMPL_H_ |
OLD | NEW |