| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "ui/views/widget/desktop_native_widget_helper_aura.h" | 5 #include "ui/views/widget/desktop_native_widget_helper_aura.h" |
| 6 | 6 |
| 7 #include "ui/aura/client/dispatcher_client.h" | 7 #include "ui/aura/client/dispatcher_client.h" |
| 8 #include "ui/aura/client/screen_position_client.h" | 8 #include "ui/aura/client/screen_position_client.h" |
| 9 #include "ui/aura/desktop/desktop_activation_client.h" | 9 #include "ui/aura/desktop/desktop_activation_client.h" |
| 10 #include "ui/aura/desktop/desktop_cursor_client.h" | 10 #include "ui/aura/desktop/desktop_cursor_client.h" |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // DesktopNativeWidgetHelperAura, aura::RootWindowObserver implementation: | 235 // DesktopNativeWidgetHelperAura, aura::RootWindowObserver implementation: |
| 236 | 236 |
| 237 void DesktopNativeWidgetHelperAura::OnRootWindowResized( | 237 void DesktopNativeWidgetHelperAura::OnRootWindowResized( |
| 238 const aura::RootWindow* root, | 238 const aura::RootWindow* root, |
| 239 const gfx::Size& old_size) { | 239 const gfx::Size& old_size) { |
| 240 DCHECK_EQ(root, root_window_.get()); | 240 DCHECK_EQ(root, root_window_.get()); |
| 241 widget_->SetBounds(gfx::Rect(root->GetHostOrigin(), | 241 widget_->SetBounds(gfx::Rect(root->GetHostOrigin(), |
| 242 root->GetHostSize())); | 242 root->GetHostSize())); |
| 243 } | 243 } |
| 244 | 244 |
| 245 void DesktopNativeWidgetHelperAura::OnRootWindowHostClosed( | 245 void DesktopNativeWidgetHelperAura::OnRootWindowHostCloseRequested( |
| 246 const aura::RootWindow* root) { | 246 const aura::RootWindow* root) { |
| 247 DCHECK_EQ(root, root_window_.get()); | 247 DCHECK_EQ(root, root_window_.get()); |
| 248 widget_->GetWidget()->Close(); | 248 widget_->GetWidget()->Close(); |
| 249 } | 249 } |
| 250 | 250 |
| 251 } // namespace views | 251 } // namespace views |
| OLD | NEW |