Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.cc

Issue 133053004: Ensure that trackpad and trackpoint scrolling works on Windows desktop Aura with legacy trackpad dr… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 922 matching lines...) Expand 10 before | Expand all | Expand 10 after
933 LPARAM l_param, 933 LPARAM l_param,
934 LRESULT* result) { 934 LRESULT* result) {
935 return false; 935 return false;
936 } 936 }
937 937
938 void DesktopWindowTreeHostWin::PostHandleMSG(UINT message, 938 void DesktopWindowTreeHostWin::PostHandleMSG(UINT message,
939 WPARAM w_param, 939 WPARAM w_param,
940 LPARAM l_param) { 940 LPARAM l_param) {
941 } 941 }
942 942
943 bool DesktopWindowTreeHostWin::HandleScrollEvent(
944 const ui::ScrollEvent& event) {
945 return delegate_->OnHostScrollEvent(const_cast<ui::ScrollEvent*>(&event));
946 }
947
943 //////////////////////////////////////////////////////////////////////////////// 948 ////////////////////////////////////////////////////////////////////////////////
944 // DesktopWindowTreeHostWin, private: 949 // DesktopWindowTreeHostWin, private:
945 950
946 Widget* DesktopWindowTreeHostWin::GetWidget() { 951 Widget* DesktopWindowTreeHostWin::GetWidget() {
947 return native_widget_delegate_->AsWidget(); 952 return native_widget_delegate_->AsWidget();
948 } 953 }
949 954
950 const Widget* DesktopWindowTreeHostWin::GetWidget() const { 955 const Widget* DesktopWindowTreeHostWin::GetWidget() const {
951 return native_widget_delegate_->AsWidget(); 956 return native_widget_delegate_->AsWidget();
952 } 957 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
985 990
986 // static 991 // static
987 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 992 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
988 internal::NativeWidgetDelegate* native_widget_delegate, 993 internal::NativeWidgetDelegate* native_widget_delegate,
989 DesktopNativeWidgetAura* desktop_native_widget_aura) { 994 DesktopNativeWidgetAura* desktop_native_widget_aura) {
990 return new DesktopWindowTreeHostWin(native_widget_delegate, 995 return new DesktopWindowTreeHostWin(native_widget_delegate,
991 desktop_native_widget_aura); 996 desktop_native_widget_aura);
992 } 997 }
993 998
994 } // namespace views 999 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_root_window_host_win.h ('k') | ui/views/widget/native_widget_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698