| 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_window_tree_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_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 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 void DesktopWindowTreeHostWin::OnNativeWidgetBlur() { | 429 void DesktopWindowTreeHostWin::OnNativeWidgetBlur() { |
| 430 } | 430 } |
| 431 | 431 |
| 432 bool DesktopWindowTreeHostWin::IsAnimatingClosed() const { | 432 bool DesktopWindowTreeHostWin::IsAnimatingClosed() const { |
| 433 return pending_close_; | 433 return pending_close_; |
| 434 } | 434 } |
| 435 | 435 |
| 436 //////////////////////////////////////////////////////////////////////////////// | 436 //////////////////////////////////////////////////////////////////////////////// |
| 437 // DesktopWindowTreeHostWin, WindowTreeHost implementation: | 437 // DesktopWindowTreeHostWin, WindowTreeHost implementation: |
| 438 | 438 |
| 439 ui::EventSource* DesktopWindowTreeHostWin::GetEventSource() { |
| 440 return this; |
| 441 } |
| 442 |
| 439 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { | 443 gfx::AcceleratedWidget DesktopWindowTreeHostWin::GetAcceleratedWidget() { |
| 440 return message_handler_->hwnd(); | 444 return message_handler_->hwnd(); |
| 441 } | 445 } |
| 442 | 446 |
| 443 void DesktopWindowTreeHostWin::Show() { | 447 void DesktopWindowTreeHostWin::Show() { |
| 444 message_handler_->Show(); | 448 message_handler_->Show(); |
| 445 } | 449 } |
| 446 | 450 |
| 447 void DesktopWindowTreeHostWin::Hide() { | 451 void DesktopWindowTreeHostWin::Hide() { |
| 448 if (!pending_close_) | 452 if (!pending_close_) |
| (...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 977 | 981 |
| 978 // static | 982 // static |
| 979 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 983 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 980 internal::NativeWidgetDelegate* native_widget_delegate, | 984 internal::NativeWidgetDelegate* native_widget_delegate, |
| 981 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 985 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 982 return new DesktopWindowTreeHostWin(native_widget_delegate, | 986 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 983 desktop_native_widget_aura); | 987 desktop_native_widget_aura); |
| 984 } | 988 } |
| 985 | 989 |
| 986 } // namespace views | 990 } // namespace views |
| OLD | NEW |