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 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 } | 671 } |
672 | 672 |
673 gfx::Size DesktopWindowTreeHostWin::GetRootViewSize() const { | 673 gfx::Size DesktopWindowTreeHostWin::GetRootViewSize() const { |
674 return GetWidget()->GetRootView()->size(); | 674 return GetWidget()->GetRootView()->size(); |
675 } | 675 } |
676 | 676 |
677 void DesktopWindowTreeHostWin::ResetWindowControls() { | 677 void DesktopWindowTreeHostWin::ResetWindowControls() { |
678 GetWidget()->non_client_view()->ResetWindowControls(); | 678 GetWidget()->non_client_view()->ResetWindowControls(); |
679 } | 679 } |
680 | 680 |
681 void DesktopWindowTreeHostWin::PaintLayeredWindow(gfx::Canvas* canvas) { | |
682 GetWidget()->GetRootView()->Paint(ui::PaintContext(canvas)); | |
683 } | |
684 | |
685 gfx::NativeViewAccessible DesktopWindowTreeHostWin::GetNativeViewAccessible() { | 681 gfx::NativeViewAccessible DesktopWindowTreeHostWin::GetNativeViewAccessible() { |
686 return GetWidget()->GetRootView()->GetNativeViewAccessible(); | 682 return GetWidget()->GetRootView()->GetNativeViewAccessible(); |
687 } | 683 } |
688 | 684 |
689 InputMethod* DesktopWindowTreeHostWin::GetInputMethod() { | 685 InputMethod* DesktopWindowTreeHostWin::GetInputMethod() { |
690 return GetWidget()->GetInputMethodDirect(); | 686 return GetWidget()->GetInputMethodDirect(); |
691 } | 687 } |
692 | 688 |
693 bool DesktopWindowTreeHostWin::ShouldHandleSystemCommands() const { | 689 bool DesktopWindowTreeHostWin::ShouldHandleSystemCommands() const { |
694 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands(); | 690 return GetWidget()->widget_delegate()->ShouldHandleSystemCommands(); |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
962 | 958 |
963 // static | 959 // static |
964 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 960 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
965 internal::NativeWidgetDelegate* native_widget_delegate, | 961 internal::NativeWidgetDelegate* native_widget_delegate, |
966 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 962 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
967 return new DesktopWindowTreeHostWin(native_widget_delegate, | 963 return new DesktopWindowTreeHostWin(native_widget_delegate, |
968 desktop_native_widget_aura); | 964 desktop_native_widget_aura); |
969 } | 965 } |
970 | 966 |
971 } // namespace views | 967 } // namespace views |
OLD | NEW |