Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: ui/aura/mus/window_tree_client.h

Issue 2632543003: Refactor and push window properties up to class properties. (Closed)
Patch Set: More build fixes Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 20 matching lines...) Expand all
31 #include "ui/aura/mus/window_tree_host_mus_delegate.h" 31 #include "ui/aura/mus/window_tree_host_mus_delegate.h"
32 32
33 namespace display { 33 namespace display {
34 class Display; 34 class Display;
35 } 35 }
36 36
37 namespace gfx { 37 namespace gfx {
38 class Insets; 38 class Insets;
39 } 39 }
40 40
41 namespace ui {
42 struct PropertyData;
43 }
44
41 namespace service_manager { 45 namespace service_manager {
42 class Connector; 46 class Connector;
43 } 47 }
44 48
45 namespace ui { 49 namespace ui {
46 class Gpu; 50 class Gpu;
47 } 51 }
48 52
49 namespace aura { 53 namespace aura {
50 class CaptureSynchronizer; 54 class CaptureSynchronizer;
51 class DragDropControllerMus; 55 class DragDropControllerMus;
52 class FocusSynchronizer; 56 class FocusSynchronizer;
53 class InFlightBoundsChange; 57 class InFlightBoundsChange;
54 class InFlightChange; 58 class InFlightChange;
55 class InFlightFocusChange; 59 class InFlightFocusChange;
56 class InFlightPropertyChange; 60 class InFlightPropertyChange;
57 class InFlightVisibleChange; 61 class InFlightVisibleChange;
58 class MusContextFactory; 62 class MusContextFactory;
59 class WindowMus; 63 class WindowMus;
60 class WindowPortMus; 64 class WindowPortMus;
61 struct WindowPortPropertyData;
62 class WindowTreeClientDelegate; 65 class WindowTreeClientDelegate;
63 class WindowTreeClientPrivate; 66 class WindowTreeClientPrivate;
64 class WindowTreeClientObserver; 67 class WindowTreeClientObserver;
65 class WindowTreeClientTestObserver; 68 class WindowTreeClientTestObserver;
66 class WindowTreeHostMus; 69 class WindowTreeHostMus;
67 70
68 namespace client { 71 namespace client {
69 class CaptureClient; 72 class CaptureClient;
70 } 73 }
71 74
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 void OnWindowMusDestroyed(WindowMus* window, Origin origin); 273 void OnWindowMusDestroyed(WindowMus* window, Origin origin);
271 void OnWindowMusBoundsChanged(WindowMus* window, 274 void OnWindowMusBoundsChanged(WindowMus* window,
272 const gfx::Rect& old_bounds, 275 const gfx::Rect& old_bounds,
273 const gfx::Rect& new_bounds); 276 const gfx::Rect& new_bounds);
274 void OnWindowMusAddChild(WindowMus* parent, WindowMus* child); 277 void OnWindowMusAddChild(WindowMus* parent, WindowMus* child);
275 void OnWindowMusRemoveChild(WindowMus* parent, WindowMus* child); 278 void OnWindowMusRemoveChild(WindowMus* parent, WindowMus* child);
276 void OnWindowMusMoveChild(WindowMus* parent, 279 void OnWindowMusMoveChild(WindowMus* parent,
277 size_t current_index, 280 size_t current_index,
278 size_t dest_index); 281 size_t dest_index);
279 void OnWindowMusSetVisible(WindowMus* window, bool visible); 282 void OnWindowMusSetVisible(WindowMus* window, bool visible);
280 std::unique_ptr<WindowPortPropertyData> OnWindowMusWillChangeProperty( 283 std::unique_ptr<ui::PropertyData> OnWindowMusWillChangeProperty(
281 WindowMus* window, 284 WindowMus* window,
282 const void* key); 285 const void* key);
283 void OnWindowMusPropertyChanged(WindowMus* window, 286 void OnWindowMusPropertyChanged(WindowMus* window,
284 const void* key, 287 const void* key,
285 std::unique_ptr<WindowPortPropertyData> data); 288 std::unique_ptr<ui::PropertyData> data);
286 289
287 // Callback passed from WmPerformMoveLoop(). 290 // Callback passed from WmPerformMoveLoop().
288 void OnWmMoveLoopCompleted(uint32_t change_id, bool completed); 291 void OnWmMoveLoopCompleted(uint32_t change_id, bool completed);
289 292
290 // Overridden from WindowTreeClient: 293 // Overridden from WindowTreeClient:
291 void OnEmbed(ClientSpecificId client_id, 294 void OnEmbed(ClientSpecificId client_id,
292 ui::mojom::WindowDataPtr root, 295 ui::mojom::WindowDataPtr root,
293 ui::mojom::WindowTreePtr tree, 296 ui::mojom::WindowTreePtr tree,
294 int64_t display_id, 297 int64_t display_id,
295 Id focused_window_id, 298 Id focused_window_id,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 std::unique_ptr<ui::Gpu> gpu_; 544 std::unique_ptr<ui::Gpu> gpu_;
542 std::unique_ptr<MusContextFactory> compositor_context_factory_; 545 std::unique_ptr<MusContextFactory> compositor_context_factory_;
543 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 546 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
544 547
545 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 548 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
546 }; 549 };
547 550
548 } // namespace aura 551 } // namespace aura
549 552
550 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 553 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698