diff options
author | joshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 17:39:00 +0000 |
---|---|---|
committer | joshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-16 17:39:00 +0000 |
commit | 1345bda1781a2d1fd5120f852ac0ff04a871a3a1 (patch) | |
tree | fa088e916728f87c8ab7e751dfb7631d0e814a95 /chrome/browser/render_widget_host_hwnd.h | |
parent | c3ce34fb49289027feccf7a4e66714096872f97d (diff) | |
download | chromium_src-1345bda1781a2d1fd5120f852ac0ff04a871a3a1.zip chromium_src-1345bda1781a2d1fd5120f852ac0ff04a871a3a1.tar.gz chromium_src-1345bda1781a2d1fd5120f852ac0ff04a871a3a1.tar.bz2 |
Touchpad support for laptops
This fix is a workaround to receive mouse wheel and scroll messages
from synaptics touchpad driver used in majority of laptops.
Removed fake scroll bars in RenderWidgetHostHwnd so that it can now
receive mouse wheel messages from synaptics drivers for Dell, Toshiba
laptops.
Added fake scroll bars to WebContents so that it can receive scroll
messages. WebContents then reflects scroll messages to the view to
give it a chance to handle them.
BUG=4
TEST=Touchpad scrolling and zooming (control + scroll) on various laptops.
Review URL: http://codereview.chromium.org/2878
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2266 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_host_hwnd.h')
-rw-r--r-- | chrome/browser/render_widget_host_hwnd.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/render_widget_host_hwnd.h b/chrome/browser/render_widget_host_hwnd.h index 5f245cb..bc16c6d 100644 --- a/chrome/browser/render_widget_host_hwnd.h +++ b/chrome/browser/render_widget_host_hwnd.h @@ -106,8 +106,6 @@ class RenderWidgetHostHWND : MESSAGE_HANDLER(WM_CHAR, OnKeyEvent) MESSAGE_HANDLER(WM_SYSCHAR, OnKeyEvent) MESSAGE_HANDLER(WM_IME_CHAR, OnKeyEvent) - MESSAGE_HANDLER(WM_NCCALCSIZE, OnNcCalcSize) - MESSAGE_HANDLER(WM_SIZE, OnSize) MESSAGE_HANDLER(WM_MOUSEACTIVATE, OnMouseActivate) END_MSG_MAP() @@ -165,11 +163,6 @@ class RenderWidgetHostHWND : UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); LRESULT OnWheelEvent( UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); - // Handle WM_NCCALCSIZE and supress scrollbars - LRESULT OnNcCalcSize(UINT, WPARAM, LPARAM, BOOL& handled); - // Handle WM_SIZE and indicate that we have a valid scroll info - // so that windows will give us the WS_HSCROLL and WS_VSCROLL style. - LRESULT OnSize(UINT, WPARAM, LPARAM, BOOL& handled); LRESULT OnMouseActivate(UINT, WPARAM, LPARAM, BOOL& handled); // Handle vertical scrolling LRESULT OnVScroll(int code, short position, HWND scrollbar_control); |