| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 | 649 |
| 650 gfx::Size DesktopWindowTreeHostWin::GetRootViewSize() const { | 650 gfx::Size DesktopWindowTreeHostWin::GetRootViewSize() const { |
| 651 return GetWidget()->GetRootView()->size(); | 651 return GetWidget()->GetRootView()->size(); |
| 652 } | 652 } |
| 653 | 653 |
| 654 void DesktopWindowTreeHostWin::ResetWindowControls() { | 654 void DesktopWindowTreeHostWin::ResetWindowControls() { |
| 655 GetWidget()->non_client_view()->ResetWindowControls(); | 655 GetWidget()->non_client_view()->ResetWindowControls(); |
| 656 } | 656 } |
| 657 | 657 |
| 658 void DesktopWindowTreeHostWin::PaintLayeredWindow(gfx::Canvas* canvas) { | 658 void DesktopWindowTreeHostWin::PaintLayeredWindow(gfx::Canvas* canvas) { |
| 659 GetWidget()->GetRootView()->Paint(canvas); | 659 GetWidget()->GetRootView()->Paint(canvas, views::CullSet()); |
| 660 } | 660 } |
| 661 | 661 |
| 662 gfx::NativeViewAccessible DesktopWindowTreeHostWin::GetNativeViewAccessible() { | 662 gfx::NativeViewAccessible DesktopWindowTreeHostWin::GetNativeViewAccessible() { |
| 663 return GetWidget()->GetRootView()->GetNativeViewAccessible(); | 663 return GetWidget()->GetRootView()->GetNativeViewAccessible(); |
| 664 } | 664 } |
| 665 | 665 |
| 666 InputMethod* DesktopWindowTreeHostWin::GetInputMethod() { | 666 InputMethod* DesktopWindowTreeHostWin::GetInputMethod() { |
| 667 return GetWidget()->GetInputMethodDirect(); | 667 return GetWidget()->GetInputMethodDirect(); |
| 668 } | 668 } |
| 669 | 669 |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 | 951 |
| 952 // static | 952 // static |
| 953 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 953 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 954 internal::NativeWidgetDelegate* native_widget_delegate, | 954 internal::NativeWidgetDelegate* native_widget_delegate, |
| 955 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 955 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 956 return new DesktopWindowTreeHostWin(native_widget_delegate, | 956 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 957 desktop_native_widget_aura); | 957 desktop_native_widget_aura); |
| 958 } | 958 } |
| 959 | 959 |
| 960 } // namespace views | 960 } // namespace views |
| OLD | NEW |