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

Side by Side Diff: ui/aura/window_port_local.h

Issue 2582823002: WIP: Surface Synchronization System
Patch Set: Only create ClientSurfaceEmbedder if window is visible. Trash it otherwise. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WINDOW_PORT_LOCAL_H_ 5 #ifndef UI_AURA_WINDOW_PORT_LOCAL_H_
6 #define UI_AURA_WINDOW_PORT_LOCAL_H_ 6 #define UI_AURA_WINDOW_PORT_LOCAL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/window_port.h" 9 #include "ui/aura/window_port.h"
10 10
11 namespace aura { 11 namespace aura {
12 12
13 class Window; 13 class Window;
14 14
15 // WindowPort implementation for classic aura, e.g. not mus. 15 // WindowPort implementation for classic aura, e.g. not mus.
16 class AURA_EXPORT WindowPortLocal : public WindowPort { 16 class AURA_EXPORT WindowPortLocal : public WindowPort {
17 public: 17 public:
18 explicit WindowPortLocal(Window* window); 18 explicit WindowPortLocal(Window* window);
19 ~WindowPortLocal() override; 19 ~WindowPortLocal() override;
20 20
21 // WindowPort: 21 // WindowPort:
22 void OnPreInit(Window* window) override; 22 void OnPreInit(Window* window, ui::LayerType layer_type) override;
23 void OnDeviceScaleFactorChanged(float device_scale_factor) override; 23 void OnDeviceScaleFactorChanged(float device_scale_factor) override;
24 void OnWillAddChild(Window* child) override; 24 void OnWillAddChild(Window* child) override;
25 void OnWillRemoveChild(Window* child) override; 25 void OnWillRemoveChild(Window* child) override;
26 void OnWillMoveChild(size_t current_index, size_t dest_index) override; 26 void OnWillMoveChild(size_t current_index, size_t dest_index) override;
27 void OnVisibilityChanged(bool visible) override; 27 void OnVisibilityChanged(bool visible) override;
28 void OnDidChangeBounds(const gfx::Rect& old_bounds, 28 void OnDidChangeBounds(const gfx::Rect& old_bounds,
29 const gfx::Rect& new_bounds) override; 29 const gfx::Rect& new_bounds) override;
30 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty( 30 std::unique_ptr<WindowPortPropertyData> OnWillChangeProperty(
31 const void* key) override; 31 const void* key) override;
32 void OnPropertyChanged(const void* key, 32 void OnPropertyChanged(const void* key,
33 std::unique_ptr<WindowPortPropertyData> data) override; 33 std::unique_ptr<WindowPortPropertyData> data) override;
34 34
35 private: 35 private:
36 Window* window_; 36 Window* window_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(WindowPortLocal); 38 DISALLOW_COPY_AND_ASSIGN(WindowPortLocal);
39 }; 39 };
40 40
41 } // namespace aura 41 } // namespace aura
42 42
43 #endif // UI_AURA_WINDOW_PORT_LOCAL_H_ 43 #endif // UI_AURA_WINDOW_PORT_LOCAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698