Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
index 8a5353c6e7255e3c2023b14ebfbdbb4958ae0af7..8e07b791192b066f10f2a7056d5294de01421e5a 100644 |
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc |
@@ -247,7 +247,7 @@ DesktopNativeWidgetAura* DesktopNativeWidgetAura::ForWindow( |
void DesktopNativeWidgetAura::OnHostClosed() { |
// Don't invoke Widget::OnNativeWidgetDestroying(), its done by |
- // DesktopRootWindowHost. |
+ // DesktopWindowTreeHost. |
// The WindowModalityController is at the front of the event pretarget |
// handler list. We destroy it first to preserve order symantics. |
@@ -262,7 +262,7 @@ void DesktopNativeWidgetAura::OnHostClosed() { |
capture_window->ReleaseCapture(); |
} |
- // DesktopRootWindowHost owns the ActivationController which ShadowController |
+ // DesktopWindowTreeHost owns the ActivationController which ShadowController |
// references. Make sure we destroy ShadowController early on. |
shadow_controller_.reset(); |
tooltip_manager_.reset(); |
@@ -287,10 +287,10 @@ void DesktopNativeWidgetAura::OnHostClosed() { |
delete this; |
} |
-void DesktopNativeWidgetAura::OnDesktopRootWindowHostDestroyed( |
+void DesktopNativeWidgetAura::OnDesktopWindowTreeHostDestroyed( |
aura::RootWindow* root) { |
- // |root_window_| is still valid, but DesktopRootWindowHost is nearly |
- // destroyed. Do cleanup here of members DesktopRootWindowHost may also use. |
+ // |root_window_| is still valid, but DesktopWindowTreeHost is nearly |
+ // destroyed. Do cleanup here of members DesktopWindowTreeHost may also use. |
aura::client::SetFocusClient(root->window(), NULL); |
aura::client::SetActivationClient(root->window(), NULL); |
focus_client_.reset(); |
@@ -369,7 +369,7 @@ void DesktopNativeWidgetAura::InitNativeWidget( |
desktop_root_window_host_ = params.desktop_root_window_host ? |
params.desktop_root_window_host : |
- DesktopRootWindowHost::Create(native_widget_delegate_, this); |
+ DesktopWindowTreeHost::Create(native_widget_delegate_, this); |
aura::RootWindow::CreateParams rw_params(params.bounds); |
desktop_root_window_host_->Init(content_window_, params, &rw_params); |
@@ -385,7 +385,7 @@ void DesktopNativeWidgetAura::InitNativeWidget( |
new views::corewm::WindowModalityController(root_window_->window())); |
// |root_window_event_filter_| must be created before |
- // OnRootWindowHostCreated() is invoked. |
+ // OnWindowTreeHostCreated() is invoked. |
// CEF sets focus to the window the user clicks down on. |
// TODO(beng): see if we can't do this some other way. CEF seems a heavy- |
@@ -438,7 +438,7 @@ void DesktopNativeWidgetAura::InitNativeWidget( |
focus_client_->FocusWindow(content_window_); |
- OnRootWindowHostResized(root_window_.get()); |
+ OnWindowTreeHostResized(root_window_.get()); |
root_window_->AddRootWindowObserver(this); |
@@ -637,7 +637,7 @@ void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) { |
// TODO(ananta) |
// This code by default scales the bounds rectangle by 1. |
// We could probably get rid of this and similar logic from |
- // the DesktopNativeWidgetAura::OnRootWindowHostResized function. |
+ // the DesktopNativeWidgetAura::OnWindowTreeHostResized function. |
float scale = 1; |
aura::Window* root = root_window_->window(); |
if (root) { |
@@ -647,7 +647,7 @@ void DesktopNativeWidgetAura::SetBounds(const gfx::Rect& bounds) { |
gfx::Rect bounds_in_pixels( |
gfx::ToCeiledPoint(gfx::ScalePoint(bounds.origin(), scale)), |
gfx::ToFlooredSize(gfx::ScaleSize(bounds.size(), scale))); |
- desktop_root_window_host_->AsRootWindowHost()->SetBounds(bounds_in_pixels); |
+ desktop_root_window_host_->AsWindowTreeHost()->SetBounds(bounds_in_pixels); |
} |
void DesktopNativeWidgetAura::SetSize(const gfx::Size& size) { |
@@ -689,14 +689,14 @@ void DesktopNativeWidgetAura::CloseNow() { |
void DesktopNativeWidgetAura::Show() { |
if (!content_window_) |
return; |
- desktop_root_window_host_->AsRootWindowHost()->Show(); |
+ desktop_root_window_host_->AsWindowTreeHost()->Show(); |
content_window_->Show(); |
} |
void DesktopNativeWidgetAura::Hide() { |
if (!content_window_) |
return; |
- desktop_root_window_host_->AsRootWindowHost()->Hide(); |
+ desktop_root_window_host_->AsWindowTreeHost()->Hide(); |
content_window_->Hide(); |
} |
@@ -853,7 +853,7 @@ void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled( |
} |
ui::NativeTheme* DesktopNativeWidgetAura::GetNativeTheme() const { |
- return DesktopRootWindowHost::GetNativeTheme(content_window_); |
+ return DesktopWindowTreeHost::GetNativeTheme(content_window_); |
} |
void DesktopNativeWidgetAura::OnRootViewLayout() const { |
@@ -1081,12 +1081,12 @@ int DesktopNativeWidgetAura::OnPerformDrop(const ui::DropTargetEvent& event) { |
//////////////////////////////////////////////////////////////////////////////// |
// DesktopNativeWidgetAura, aura::RootWindowObserver implementation: |
-void DesktopNativeWidgetAura::OnRootWindowHostCloseRequested( |
+void DesktopNativeWidgetAura::OnWindowTreeHostCloseRequested( |
const aura::RootWindow* root) { |
Close(); |
} |
-void DesktopNativeWidgetAura::OnRootWindowHostResized( |
+void DesktopNativeWidgetAura::OnWindowTreeHostResized( |
const aura::RootWindow* root) { |
// Don't update the bounds of the child layers when animating closed. If we |
// did it would force a paint, which we don't want. We don't want the paint |
@@ -1102,10 +1102,10 @@ void DesktopNativeWidgetAura::OnRootWindowHostResized( |
native_widget_delegate_->OnNativeWidgetSizeChanged(new_bounds.size()); |
} |
-void DesktopNativeWidgetAura::OnRootWindowHostMoved( |
+void DesktopNativeWidgetAura::OnWindowTreeHostMoved( |
const aura::RootWindow* root, |
const gfx::Point& new_origin) { |
- TRACE_EVENT1("views", "DesktopNativeWidgetAura::OnRootWindowHostMoved", |
+ TRACE_EVENT1("views", "DesktopNativeWidgetAura::OnWindowTreeHostMoved", |
"new_origin", new_origin.ToString()); |
native_widget_delegate_->OnNativeWidgetMove(); |