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

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

Issue 2683173002: Rename WindowTreeHostPlatform::window_ to ::platform_window_ (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | ui/aura/window_tree_host_platform.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_TREE_HOST_PLATFORM_H_ 5 #ifndef UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 6 #define UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const gfx::Point& location_in_pixels) override; 43 const gfx::Point& location_in_pixels) override;
44 void OnCursorVisibilityChangedNative(bool show) override; 44 void OnCursorVisibilityChangedNative(bool show) override;
45 45
46 protected: 46 protected:
47 // NOTE: neither of these calls CreateCompositor(); subclasses must call 47 // NOTE: neither of these calls CreateCompositor(); subclasses must call
48 // CreateCompositor() at the appropriate time. 48 // CreateCompositor() at the appropriate time.
49 WindowTreeHostPlatform(); 49 WindowTreeHostPlatform();
50 explicit WindowTreeHostPlatform(std::unique_ptr<WindowPort> window_port); 50 explicit WindowTreeHostPlatform(std::unique_ptr<WindowPort> window_port);
51 51
52 void SetPlatformWindow(std::unique_ptr<ui::PlatformWindow> window); 52 void SetPlatformWindow(std::unique_ptr<ui::PlatformWindow> window);
53 ui::PlatformWindow* platform_window() { return window_.get(); } 53 ui::PlatformWindow* platform_window() { return platform_window_.get(); }
54 54
55 // ui::PlatformWindowDelegate: 55 // ui::PlatformWindowDelegate:
56 void OnBoundsChanged(const gfx::Rect& new_bounds) override; 56 void OnBoundsChanged(const gfx::Rect& new_bounds) override;
57 void OnDamageRect(const gfx::Rect& damaged_region) override; 57 void OnDamageRect(const gfx::Rect& damaged_region) override;
58 void DispatchEvent(ui::Event* event) override; 58 void DispatchEvent(ui::Event* event) override;
59 void OnCloseRequest() override; 59 void OnCloseRequest() override;
60 void OnClosed() override; 60 void OnClosed() override;
61 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 61 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
62 void OnLostCapture() override; 62 void OnLostCapture() override;
63 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 63 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
64 float device_pixel_ratio) override; 64 float device_pixel_ratio) override;
65 void OnAcceleratedWidgetDestroyed() override; 65 void OnAcceleratedWidgetDestroyed() override;
66 void OnActivationChanged(bool active) override; 66 void OnActivationChanged(bool active) override;
67 67
68 private: 68 private:
69 gfx::AcceleratedWidget widget_; 69 gfx::AcceleratedWidget widget_;
70 std::unique_ptr<ui::PlatformWindow> window_; 70 std::unique_ptr<ui::PlatformWindow> platform_window_;
71 gfx::NativeCursor current_cursor_; 71 gfx::NativeCursor current_cursor_;
72 gfx::Rect bounds_; 72 gfx::Rect bounds_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform); 74 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostPlatform);
75 }; 75 };
76 76
77 } // namespace aura 77 } // namespace aura
78 78
79 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_ 79 #endif // UI_AURA_WINDOW_TREE_HOST_PLATFORM_H_
OLDNEW
« no previous file with comments | « no previous file | ui/aura/window_tree_host_platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698