| 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/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 } | 593 } |
| 594 | 594 |
| 595 void DesktopWindowTreeHostWin::OnWindowHidingAnimationCompleted() { | 595 void DesktopWindowTreeHostWin::OnWindowHidingAnimationCompleted() { |
| 596 if (pending_close_) | 596 if (pending_close_) |
| 597 message_handler_->Close(); | 597 message_handler_->Close(); |
| 598 } | 598 } |
| 599 | 599 |
| 600 //////////////////////////////////////////////////////////////////////////////// | 600 //////////////////////////////////////////////////////////////////////////////// |
| 601 // DesktopWindowTreeHostWin, HWNDMessageHandlerDelegate implementation: | 601 // DesktopWindowTreeHostWin, HWNDMessageHandlerDelegate implementation: |
| 602 | 602 |
| 603 ui::InputMethod* DesktopWindowTreeHostWin::GetHWNDMessageDelegateInputMethod() { | |
| 604 return GetInputMethod(); | |
| 605 } | |
| 606 | |
| 607 bool DesktopWindowTreeHostWin::HasNonClientView() const { | 603 bool DesktopWindowTreeHostWin::HasNonClientView() const { |
| 608 return has_non_client_view_; | 604 return has_non_client_view_; |
| 609 } | 605 } |
| 610 | 606 |
| 611 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const { | 607 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const { |
| 612 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN | 608 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN |
| 613 : FrameMode::CUSTOM_DRAWN; | 609 : FrameMode::CUSTOM_DRAWN; |
| 614 } | 610 } |
| 615 | 611 |
| 616 bool DesktopWindowTreeHostWin::HasFrame() const { | 612 bool DesktopWindowTreeHostWin::HasFrame() const { |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 | 995 |
| 1000 // static | 996 // static |
| 1001 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 1002 internal::NativeWidgetDelegate* native_widget_delegate, | 998 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1003 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 999 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 1004 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1000 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 1005 desktop_native_widget_aura); | 1001 desktop_native_widget_aura); |
| 1006 } | 1002 } |
| 1007 | 1003 |
| 1008 } // namespace views | 1004 } // namespace views |
| OLD | NEW |