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

Unified Diff: ui/aura/window_tree_host_platform.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/window_tree_host_platform.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_tree_host_platform.cc
diff --git a/ui/aura/window_tree_host_platform.cc b/ui/aura/window_tree_host_platform.cc
index 84cb47739e53a66d1c80b95c2e57d7972719f0dc..54e820eb11a17b496d3d129ed2a46d80033db865 100644
--- a/ui/aura/window_tree_host_platform.cc
+++ b/ui/aura/window_tree_host_platform.cc
@@ -42,12 +42,12 @@ WindowTreeHostPlatform::WindowTreeHostPlatform(const gfx::Rect& bounds)
: WindowTreeHostPlatform() {
CreateCompositor();
#if defined(USE_OZONE)
- window_ =
+ platform_window_ =
ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds);
#elif defined(OS_WIN)
- window_.reset(new ui::WinWindow(this, bounds));
+ platform_window_.reset(new ui::WinWindow(this, bounds));
#elif defined(OS_ANDROID)
- window_.reset(new ui::PlatformWindowAndroid(this));
+ platform_window_.reset(new ui::PlatformWindowAndroid(this));
#else
NOTIMPLEMENTED();
#endif
@@ -65,13 +65,13 @@ WindowTreeHostPlatform::WindowTreeHostPlatform(
void WindowTreeHostPlatform::SetPlatformWindow(
std::unique_ptr<ui::PlatformWindow> window) {
- window_ = std::move(window);
+ platform_window_ = std::move(window);
}
WindowTreeHostPlatform::~WindowTreeHostPlatform() {
DestroyCompositor();
DestroyDispatcher();
- window_->Close();
+ platform_window_->Close();
}
ui::EventSource* WindowTreeHostPlatform::GetEventSource() {
@@ -83,31 +83,31 @@ gfx::AcceleratedWidget WindowTreeHostPlatform::GetAcceleratedWidget() {
}
void WindowTreeHostPlatform::ShowImpl() {
- window_->Show();
+ platform_window_->Show();
}
void WindowTreeHostPlatform::HideImpl() {
- window_->Hide();
+ platform_window_->Hide();
}
gfx::Rect WindowTreeHostPlatform::GetBoundsInPixels() const {
- return window_ ? window_->GetBounds() : gfx::Rect();
+ return platform_window_ ? platform_window_->GetBounds() : gfx::Rect();
}
void WindowTreeHostPlatform::SetBoundsInPixels(const gfx::Rect& bounds) {
- window_->SetBounds(bounds);
+ platform_window_->SetBounds(bounds);
}
gfx::Point WindowTreeHostPlatform::GetLocationOnScreenInPixels() const {
- return window_->GetBounds().origin();
+ return platform_window_->GetBounds().origin();
}
void WindowTreeHostPlatform::SetCapture() {
- window_->SetCapture();
+ platform_window_->SetCapture();
}
void WindowTreeHostPlatform::ReleaseCapture() {
- window_->ReleaseCapture();
+ platform_window_->ReleaseCapture();
}
void WindowTreeHostPlatform::SetCursorNative(gfx::NativeCursor cursor) {
@@ -120,12 +120,12 @@ void WindowTreeHostPlatform::SetCursorNative(gfx::NativeCursor cursor) {
cursor_loader.SetPlatformCursor(&cursor);
#endif
- window_->SetCursor(cursor.platform());
+ platform_window_->SetCursor(cursor.platform());
}
void WindowTreeHostPlatform::MoveCursorToScreenLocationInPixels(
const gfx::Point& location_in_pixels) {
- window_->MoveCursorTo(location_in_pixels);
+ platform_window_->MoveCursorTo(location_in_pixels);
}
void WindowTreeHostPlatform::OnCursorVisibilityChangedNative(bool show) {
« no previous file with comments | « ui/aura/window_tree_host_platform.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698