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

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: Created 3 years, 11 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 aura { 49 namespace aura {
46 class CaptureSynchronizer; 50 class CaptureSynchronizer;
47 class DragDropControllerMus; 51 class DragDropControllerMus;
48 class FocusSynchronizer; 52 class FocusSynchronizer;
49 class InFlightBoundsChange; 53 class InFlightBoundsChange;
50 class InFlightChange; 54 class InFlightChange;
51 class InFlightFocusChange; 55 class InFlightFocusChange;
52 class InFlightPropertyChange; 56 class InFlightPropertyChange;
53 class InFlightVisibleChange; 57 class InFlightVisibleChange;
54 class WindowMus; 58 class WindowMus;
55 class WindowPortMus; 59 class WindowPortMus;
56 struct WindowPortPropertyData;
57 class WindowTreeClientDelegate; 60 class WindowTreeClientDelegate;
58 class WindowTreeClientPrivate; 61 class WindowTreeClientPrivate;
59 class WindowTreeClientObserver; 62 class WindowTreeClientObserver;
60 class WindowTreeHostMus; 63 class WindowTreeHostMus;
61 64
62 namespace client { 65 namespace client {
63 class CaptureClient; 66 class CaptureClient;
64 } 67 }
65 68
66 using EventResultCallback = base::Callback<void(ui::mojom::EventResult)>; 69 using EventResultCallback = base::Callback<void(ui::mojom::EventResult)>;
(...skipping 203 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 std::unique_ptr<DragDropControllerMus> drag_drop_controller_; 524 std::unique_ptr<DragDropControllerMus> drag_drop_controller_;
522 525
523 base::WeakPtrFactory<WindowTreeClient> weak_factory_; 526 base::WeakPtrFactory<WindowTreeClient> weak_factory_;
524 527
525 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient); 528 DISALLOW_COPY_AND_ASSIGN(WindowTreeClient);
526 }; 529 };
527 530
528 } // namespace aura 531 } // namespace aura
529 532
530 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_ 533 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698