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_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 6 #define COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <map> | 10 #include <map> |
9 | 11 |
| 12 #include "base/macros.h" |
10 #include "base/observer_list.h" | 13 #include "base/observer_list.h" |
11 #include "components/mus/common/types.h" | 14 #include "components/mus/common/types.h" |
12 #include "components/mus/public/cpp/window.h" | 15 #include "components/mus/public/cpp/window.h" |
13 #include "components/mus/public/cpp/window_tree_connection.h" | 16 #include "components/mus/public/cpp/window_tree_connection.h" |
14 #include "components/mus/public/interfaces/window_tree.mojom.h" | 17 #include "components/mus/public/interfaces/window_tree.mojom.h" |
15 #include "mojo/public/cpp/bindings/associated_binding.h" | 18 #include "mojo/public/cpp/bindings/associated_binding.h" |
16 #include "mojo/public/cpp/bindings/strong_binding.h" | 19 #include "mojo/public/cpp/bindings/strong_binding.h" |
17 | 20 |
18 namespace gfx { | 21 namespace gfx { |
19 class Insets; | 22 class Insets; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 // is an existing change SetRevertValueFrom() is invoked on it. Returns false | 127 // is an existing change SetRevertValueFrom() is invoked on it. Returns false |
125 // if there is no InFlightChange matching |change|. | 128 // if there is no InFlightChange matching |change|. |
126 // See InFlightChange for details on how InFlightChanges are used. | 129 // See InFlightChange for details on how InFlightChanges are used. |
127 bool ApplyServerChangeToExistingInFlightChange(const InFlightChange& change); | 130 bool ApplyServerChangeToExistingInFlightChange(const InFlightChange& change); |
128 | 131 |
129 // OnEmbed() calls into this. Exposed as a separate function for testing. | 132 // OnEmbed() calls into this. Exposed as a separate function for testing. |
130 void OnEmbedImpl(mojom::WindowTree* window_tree, | 133 void OnEmbedImpl(mojom::WindowTree* window_tree, |
131 ConnectionSpecificId connection_id, | 134 ConnectionSpecificId connection_id, |
132 mojom::WindowDataPtr root_data, | 135 mojom::WindowDataPtr root_data, |
133 Id focused_window_id, | 136 Id focused_window_id, |
134 uint32 access_policy); | 137 uint32_t access_policy); |
135 | 138 |
136 // Overridden from WindowTreeConnection: | 139 // Overridden from WindowTreeConnection: |
137 Window* GetRoot() override; | 140 Window* GetRoot() override; |
138 Window* GetWindowById(Id id) override; | 141 Window* GetWindowById(Id id) override; |
139 Window* GetFocusedWindow() override; | 142 Window* GetFocusedWindow() override; |
140 Window* NewWindow(const Window::SharedProperties* properties) override; | 143 Window* NewWindow(const Window::SharedProperties* properties) override; |
141 bool IsEmbedRoot() override; | 144 bool IsEmbedRoot() override; |
142 ConnectionSpecificId GetConnectionId() override; | 145 ConnectionSpecificId GetConnectionId() override; |
143 void AddObserver(WindowTreeConnectionObserver* observer) override; | 146 void AddObserver(WindowTreeConnectionObserver* observer) override; |
144 void RemoveObserver(WindowTreeConnectionObserver* observer) override; | 147 void RemoveObserver(WindowTreeConnectionObserver* observer) override; |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 window_manager_internal_; | 240 window_manager_internal_; |
238 mojom::WindowManagerInternalClientAssociatedPtr | 241 mojom::WindowManagerInternalClientAssociatedPtr |
239 window_manager_internal_client_; | 242 window_manager_internal_client_; |
240 | 243 |
241 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); | 244 MOJO_DISALLOW_COPY_AND_ASSIGN(WindowTreeClientImpl); |
242 }; | 245 }; |
243 | 246 |
244 } // namespace mus | 247 } // namespace mus |
245 | 248 |
246 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ | 249 #endif // COMPONENTS_MUS_PUBLIC_CPP_LIB_WINDOW_TREE_CLIENT_IMPL_H_ |
OLD | NEW |