| 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_aura/desktop_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
| 6 | 6 |
| 7 #include "base/win/metro.h" | 7 #include "base/win/metro.h" |
| 8 #include "third_party/skia/include/core/SkPath.h" | 8 #include "third_party/skia/include/core/SkPath.h" |
| 9 #include "third_party/skia/include/core/SkRegion.h" | 9 #include "third_party/skia/include/core/SkRegion.h" |
| 10 #include "ui/aura/client/aura_constants.h" | 10 #include "ui/aura/client/aura_constants.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 content_window_(NULL), | 80 content_window_(NULL), |
| 81 drag_drop_client_(NULL), | 81 drag_drop_client_(NULL), |
| 82 should_animate_window_close_(false), | 82 should_animate_window_close_(false), |
| 83 pending_close_(false), | 83 pending_close_(false), |
| 84 has_non_client_view_(false), | 84 has_non_client_view_(false), |
| 85 tooltip_(NULL), | 85 tooltip_(NULL), |
| 86 is_cursor_visible_(true) { | 86 is_cursor_visible_(true) { |
| 87 } | 87 } |
| 88 | 88 |
| 89 DesktopRootWindowHostWin::~DesktopRootWindowHostWin() { | 89 DesktopRootWindowHostWin::~DesktopRootWindowHostWin() { |
| 90 DestroyCompositor(); |
| 90 // WARNING: |content_window_| has been destroyed by the time we get here. | 91 // WARNING: |content_window_| has been destroyed by the time we get here. |
| 91 desktop_native_widget_aura_->OnDesktopRootWindowHostDestroyed( | 92 desktop_native_widget_aura_->OnDesktopRootWindowHostDestroyed( |
| 92 root_window_); | 93 root_window_); |
| 93 } | 94 } |
| 94 | 95 |
| 95 // static | 96 // static |
| 96 aura::Window* DesktopRootWindowHostWin::GetContentWindowForHWND(HWND hwnd) { | 97 aura::Window* DesktopRootWindowHostWin::GetContentWindowForHWND(HWND hwnd) { |
| 97 aura::RootWindow* root = aura::RootWindow::GetForAcceleratedWidget(hwnd); | 98 aura::RootWindow* root = aura::RootWindow::GetForAcceleratedWidget(hwnd); |
| 98 return root ? root->window()->GetProperty(kContentWindowForRootWindow) : NULL; | 99 return root ? root->window()->GetProperty(kContentWindowForRootWindow) : NULL; |
| 99 } | 100 } |
| (...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 974 | 975 |
| 975 // static | 976 // static |
| 976 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 977 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 977 internal::NativeWidgetDelegate* native_widget_delegate, | 978 internal::NativeWidgetDelegate* native_widget_delegate, |
| 978 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 979 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 979 return new DesktopRootWindowHostWin(native_widget_delegate, | 980 return new DesktopRootWindowHostWin(native_widget_delegate, |
| 980 desktop_native_widget_aura); | 981 desktop_native_widget_aura); |
| 981 } | 982 } |
| 982 | 983 |
| 983 } // namespace views | 984 } // namespace views |
| OLD | NEW |