| 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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 uint32_t ScheduleInFlightChange(std::unique_ptr<InFlightChange> change); | 243 uint32_t ScheduleInFlightChange(std::unique_ptr<InFlightChange> change); |
| 244 | 244 |
| 245 // Returns true if there is an InFlightChange that matches |change|. If there | 245 // Returns true if there is an InFlightChange that matches |change|. If there |
| 246 // is an existing change SetRevertValueFrom() is invoked on it. Returns false | 246 // is an existing change SetRevertValueFrom() is invoked on it. Returns false |
| 247 // if there is no InFlightChange matching |change|. | 247 // if there is no InFlightChange matching |change|. |
| 248 // See InFlightChange for details on how InFlightChanges are used. | 248 // See InFlightChange for details on how InFlightChanges are used. |
| 249 bool ApplyServerChangeToExistingInFlightChange(const InFlightChange& change); | 249 bool ApplyServerChangeToExistingInFlightChange(const InFlightChange& change); |
| 250 | 250 |
| 251 static Id server_id(const Window* window) { return window->server_id(); } | 251 static Id server_id(const Window* window) { return window->server_id(); } |
| 252 | 252 |
| 253 Window* BuildWindowTree(const mojo::Array<mojom::WindowDataPtr>& windows, | 253 void BuildWindowTree(const mojo::Array<mojom::WindowDataPtr>& windows, |
| 254 Window* initial_parent); | 254 Window* initial_parent); |
| 255 | 255 |
| 256 Window* NewWindowImpl(NewWindowType type, | 256 Window* NewWindowImpl(NewWindowType type, |
| 257 const Window::SharedProperties* properties); | 257 const Window::SharedProperties* properties); |
| 258 | 258 |
| 259 // Sets the mojom::WindowTree implementation. | 259 // Sets the mojom::WindowTree implementation. |
| 260 void SetWindowTree(mojom::WindowTreePtr window_tree_ptr); | 260 void SetWindowTree(mojom::WindowTreePtr window_tree_ptr); |
| 261 | 261 |
| 262 // Called when the mojom::WindowTree connection is lost, deletes this. | 262 // Called when the mojom::WindowTree connection is lost, deletes this. |
| 263 void OnConnectionLost(); | 263 void OnConnectionLost(); |
| 264 | 264 |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 std::set<Id> drag_entered_windows_; | 488 std::set<Id> drag_entered_windows_; |
| 489 | 489 |
| 490 base::WeakPtrFactory<WindowTreeClient> weak_factory_; | 490 base::WeakPtrFactory<WindowTreeClient> weak_factory_; |
| 491 | 491 |
| 492 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); | 492 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 } // namespace ui | 495 } // namespace ui |
| 496 | 496 |
| 497 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ | 497 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_H_ |
| OLD | NEW |