| 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_root_window_host_win.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_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 921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 932 LPARAM l_param, | 932 LPARAM l_param, |
| 933 LRESULT* result) { | 933 LRESULT* result) { |
| 934 return false; | 934 return false; |
| 935 } | 935 } |
| 936 | 936 |
| 937 void DesktopWindowTreeHostWin::PostHandleMSG(UINT message, | 937 void DesktopWindowTreeHostWin::PostHandleMSG(UINT message, |
| 938 WPARAM w_param, | 938 WPARAM w_param, |
| 939 LPARAM l_param) { | 939 LPARAM l_param) { |
| 940 } | 940 } |
| 941 | 941 |
| 942 bool DesktopWindowTreeHostWin::HandleScrollEvent( |
| 943 const ui::ScrollEvent& event) { |
| 944 return delegate_->OnHostScrollEvent(const_cast<ui::ScrollEvent*>(&event)); |
| 945 } |
| 946 |
| 942 //////////////////////////////////////////////////////////////////////////////// | 947 //////////////////////////////////////////////////////////////////////////////// |
| 943 // DesktopWindowTreeHostWin, private: | 948 // DesktopWindowTreeHostWin, private: |
| 944 | 949 |
| 945 Widget* DesktopWindowTreeHostWin::GetWidget() { | 950 Widget* DesktopWindowTreeHostWin::GetWidget() { |
| 946 return native_widget_delegate_->AsWidget(); | 951 return native_widget_delegate_->AsWidget(); |
| 947 } | 952 } |
| 948 | 953 |
| 949 const Widget* DesktopWindowTreeHostWin::GetWidget() const { | 954 const Widget* DesktopWindowTreeHostWin::GetWidget() const { |
| 950 return native_widget_delegate_->AsWidget(); | 955 return native_widget_delegate_->AsWidget(); |
| 951 } | 956 } |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 984 | 989 |
| 985 // static | 990 // static |
| 986 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( | 991 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( |
| 987 internal::NativeWidgetDelegate* native_widget_delegate, | 992 internal::NativeWidgetDelegate* native_widget_delegate, |
| 988 DesktopNativeWidgetAura* desktop_native_widget_aura) { | 993 DesktopNativeWidgetAura* desktop_native_widget_aura) { |
| 989 return new DesktopWindowTreeHostWin(native_widget_delegate, | 994 return new DesktopWindowTreeHostWin(native_widget_delegate, |
| 990 desktop_native_widget_aura); | 995 desktop_native_widget_aura); |
| 991 } | 996 } |
| 992 | 997 |
| 993 } // namespace views | 998 } // namespace views |
| OLD | NEW |