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 |
603 bool DesktopWindowTreeHostWin::HasNonClientView() const { | 607 bool DesktopWindowTreeHostWin::HasNonClientView() const { |
604 return has_non_client_view_; | 608 return has_non_client_view_; |
605 } | 609 } |
606 | 610 |
607 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const { | 611 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const { |
608 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN | 612 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN |
609 : FrameMode::CUSTOM_DRAWN; | 613 : FrameMode::CUSTOM_DRAWN; |
610 } | 614 } |
611 | 615 |
612 bool DesktopWindowTreeHostWin::HasFrame() const { | 616 bool DesktopWindowTreeHostWin::HasFrame() const { |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 | 999 |
996 // static | 1000 // static |
997 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 1001 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
998 internal::NativeWidgetDelegate* native_widget_delegate, | 1002 internal::NativeWidgetDelegate* native_widget_delegate, |
999 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 1003 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
1000 return new DesktopWindowTreeHostWin(native_widget_delegate, | 1004 return new DesktopWindowTreeHostWin(native_widget_delegate, |
1001 desktop_native_widget_aura); | 1005 desktop_native_widget_aura); |
1002 } | 1006 } |
1003 | 1007 |
1004 } // namespace views | 1008 } // namespace views |
OLD | NEW |