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_WS_WINDOW_TREE_IMPL_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <queue> | 10 #include <queue> |
9 #include <string> | 11 #include <string> |
10 #include <vector> | 12 #include <vector> |
11 | 13 |
12 #include "base/basictypes.h" | |
13 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
| 15 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 16 #include "base/memory/ref_counted.h" |
15 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
16 #include "components/mus/public/interfaces/surface_id.mojom.h" | 18 #include "components/mus/public/interfaces/surface_id.mojom.h" |
17 #include "components/mus/public/interfaces/window_tree.mojom.h" | 19 #include "components/mus/public/interfaces/window_tree.mojom.h" |
18 #include "components/mus/ws/access_policy_delegate.h" | 20 #include "components/mus/ws/access_policy_delegate.h" |
19 #include "components/mus/ws/ids.h" | 21 #include "components/mus/ws/ids.h" |
20 #include "mojo/public/cpp/bindings/associated_binding.h" | 22 #include "mojo/public/cpp/bindings/associated_binding.h" |
21 | 23 |
22 namespace gfx { | 24 namespace gfx { |
23 class Insets; | 25 class Insets; |
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 void OnWindowInputEventAck(uint32_t event_id) override; | 255 void OnWindowInputEventAck(uint32_t event_id) override; |
254 void SetClientArea( | 256 void SetClientArea( |
255 Id transport_window_id, | 257 Id transport_window_id, |
256 mojo::InsetsPtr insets, | 258 mojo::InsetsPtr insets, |
257 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; | 259 mojo::Array<mojo::RectPtr> transport_additional_client_areas) override; |
258 void GetWindowManagerInternalClient( | 260 void GetWindowManagerInternalClient( |
259 mojo::AssociatedInterfaceRequest<mojom::WindowManagerInternalClient> | 261 mojo::AssociatedInterfaceRequest<mojom::WindowManagerInternalClient> |
260 internal) override; | 262 internal) override; |
261 | 263 |
262 // mojom::WindowManagerInternalClient: | 264 // mojom::WindowManagerInternalClient: |
263 void WmResponse(uint32 change_id, bool response) override; | 265 void WmResponse(uint32_t change_id, bool response) override; |
264 void WmRequestClose(Id transport_window_id) override; | 266 void WmRequestClose(Id transport_window_id) override; |
265 | 267 |
266 // AccessPolicyDelegate: | 268 // AccessPolicyDelegate: |
267 bool IsRootForAccessPolicy(const WindowId& id) const override; | 269 bool IsRootForAccessPolicy(const WindowId& id) const override; |
268 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; | 270 bool IsWindowKnownForAccessPolicy(const ServerWindow* window) const override; |
269 bool IsWindowRootOfAnotherConnectionForAccessPolicy( | 271 bool IsWindowRootOfAnotherConnectionForAccessPolicy( |
270 const ServerWindow* window) const override; | 272 const ServerWindow* window) const override; |
271 bool IsDescendantOfEmbedRoot(const ServerWindow* window) override; | 273 bool IsDescendantOfEmbedRoot(const ServerWindow* window) override; |
272 | 274 |
273 ConnectionManager* connection_manager_; | 275 ConnectionManager* connection_manager_; |
(...skipping 30 matching lines...) Expand all Loading... |
304 mojom::WindowManagerInternal* window_manager_internal_; | 306 mojom::WindowManagerInternal* window_manager_internal_; |
305 | 307 |
306 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); | 308 DISALLOW_COPY_AND_ASSIGN(WindowTreeImpl); |
307 }; | 309 }; |
308 | 310 |
309 } // namespace ws | 311 } // namespace ws |
310 | 312 |
311 } // namespace mus | 313 } // namespace mus |
312 | 314 |
313 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ | 315 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_IMPL_H_ |
OLD | NEW |