summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_contents.h
diff options
context:
space:
mode:
authorjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 17:39:00 +0000
committerjoshia@google.com <joshia@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-16 17:39:00 +0000
commit1345bda1781a2d1fd5120f852ac0ff04a871a3a1 (patch)
treefa088e916728f87c8ab7e751dfb7631d0e814a95 /chrome/browser/web_contents.h
parentc3ce34fb49289027feccf7a4e66714096872f97d (diff)
downloadchromium_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/web_contents.h')
-rw-r--r--chrome/browser/web_contents.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/web_contents.h b/chrome/browser/web_contents.h
index 866862a..30b4c2f 100644
--- a/chrome/browser/web_contents.h
+++ b/chrome/browser/web_contents.h
@@ -493,6 +493,8 @@ class WebContents : public TabContents,
GearsCreateShortcutCallbackFunctor* callback_functor;
};
+ void ScrollCommon(UINT message, int scroll_type, short position,
+ HWND scrollbar);
bool ScrollZoom(int scroll_type);
void WheelZoom(int distance);
@@ -511,6 +513,8 @@ class WebContents : public TabContents,
virtual void OnSetFocus(HWND window);
virtual void OnVScroll(int scroll_type, short position, HWND scrollbar);
virtual void OnWindowPosChanged(WINDOWPOS* window_pos);
+ virtual void OnSize(UINT param, const CSize& size);
+ virtual LRESULT OnNCCalcSize(BOOL w_param, LPARAM l_param);
// Callback from HistoryService for our request for a favicon.
void OnFavIconData(HistoryService::Handle handle,