| 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 e95e67e9dc9b998de626174a24b6613853952521..6aa4d525c55c8440841cc2c218175ef2106f0f99 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
| @@ -237,7 +237,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.
|
| @@ -252,7 +252,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();
|
| @@ -277,10 +277,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();
|
| @@ -359,7 +359,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);
|
|
|
| @@ -375,7 +375,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-
|
| @@ -428,7 +428,7 @@ void DesktopNativeWidgetAura::InitNativeWidget(
|
|
|
| focus_client_->FocusWindow(content_window_);
|
|
|
| - OnRootWindowHostResized(root_window_.get());
|
| + OnWindowTreeHostResized(root_window_.get());
|
|
|
| root_window_->AddRootWindowObserver(this);
|
|
|
| @@ -627,7 +627,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) {
|
| @@ -637,7 +637,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) {
|
| @@ -679,14 +679,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();
|
| }
|
|
|
| @@ -843,7 +843,7 @@ void DesktopNativeWidgetAura::SetVisibilityChangedAnimationsEnabled(
|
| }
|
|
|
| ui::NativeTheme* DesktopNativeWidgetAura::GetNativeTheme() const {
|
| - return DesktopRootWindowHost::GetNativeTheme(content_window_);
|
| + return DesktopWindowTreeHost::GetNativeTheme(content_window_);
|
| }
|
|
|
| void DesktopNativeWidgetAura::OnRootViewLayout() const {
|
| @@ -1071,12 +1071,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
|
| @@ -1092,10 +1092,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();
|
|
|