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

Unified Diff: chrome/browser/render_widget_host_hwnd.cc

Issue 2878: Touchpad support for laptops... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/render_widget_host_hwnd.h ('k') | chrome/browser/web_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/render_widget_host_hwnd.cc
===================================================================
--- chrome/browser/render_widget_host_hwnd.cc (revision 2238)
+++ chrome/browser/render_widget_host_hwnd.cc (working copy)
@@ -724,39 +724,6 @@
return 0;
}
-LRESULT RenderWidgetHostHWND::OnNcCalcSize(UINT message, WPARAM w_param,
- LPARAM l_param, BOOL& handled) {
- // Handle WM_NCCALCSIZE and make scrollbar size to 0.
- // Here we indicate that the entire window area is our
- // client area. The assumption is that we won't have a border
- // or any other non-client widget.
- return 0;
-}
-
-LRESULT RenderWidgetHostHWND::OnSize(UINT message, WPARAM w_param,
- LPARAM l_param, BOOL& handled) {
- // Set arbitrary but valid scroll information so that
- // our window will get WS_VSCROLL and WS_HSCROLL style.
-
- // TODO(joshia): The correct thing to do here is to get
- // the correct scroll information from the renderer and
- // set it here.
- SCROLLINFO si = {0};
- si.cbSize = sizeof(si);
- si.fMask = SIF_ALL;
-
- si.nMin = 1;
- si.nMax = 100;
- si.nPage = 10;
- si.nTrackPos = 50;
-
- SetScrollInfo(SB_HORZ, &si, FALSE);
- SetScrollInfo(SB_VERT, &si, FALSE);
-
- handled = FALSE;
- return 0;
-}
-
LRESULT RenderWidgetHostHWND::OnMouseActivate(UINT, WPARAM, LPARAM,
BOOL& handled) {
// We handle WM_MOUSEACTIVATE to set focus to the underlying plugin
« no previous file with comments | « chrome/browser/render_widget_host_hwnd.h ('k') | chrome/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698