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

Side by Side Diff: content/browser/renderer_host/legacy_render_widget_host_win.cc

Issue 165353006: Forward WM_VSCROLL and WM_HSCROLL messages from the LegacyRenderWidgetHostHWND class to its parent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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 "content/browser/renderer_host/legacy_render_widget_host_win.h" 5 #include "content/browser/renderer_host/legacy_render_widget_host_win.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/win/windows_version.h" 9 #include "base/win/windows_version.h"
10 #include "base/win/win_util.h" 10 #include "base/win/win_util.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return MA_NOACTIVATE; 197 return MA_NOACTIVATE;
198 return MA_ACTIVATE; 198 return MA_ACTIVATE;
199 } 199 }
200 200
201 LRESULT LegacyRenderWidgetHostHWND::OnTouch(UINT message, 201 LRESULT LegacyRenderWidgetHostHWND::OnTouch(UINT message,
202 WPARAM w_param, 202 WPARAM w_param,
203 LPARAM l_param) { 203 LPARAM l_param) {
204 return ::SendMessage(GetParent(), message, w_param, l_param); 204 return ::SendMessage(GetParent(), message, w_param, l_param);
205 } 205 }
206 206
207 LRESULT LegacyRenderWidgetHostHWND::OnScroll(UINT message,
208 WPARAM w_param,
209 LPARAM l_param) {
210 return ::SendMessage(GetParent(), message, w_param, l_param);
211 }
212
207 LRESULT LegacyRenderWidgetHostHWND::OnNCPaint(UINT message, 213 LRESULT LegacyRenderWidgetHostHWND::OnNCPaint(UINT message,
208 WPARAM w_param, 214 WPARAM w_param,
209 LPARAM l_param) { 215 LPARAM l_param) {
210 return 0; 216 return 0;
211 } 217 }
212 218
213 LRESULT LegacyRenderWidgetHostHWND::OnPaint(UINT message, 219 LRESULT LegacyRenderWidgetHostHWND::OnPaint(UINT message,
214 WPARAM w_param, 220 WPARAM w_param,
215 LPARAM l_param) { 221 LPARAM l_param) {
216 PAINTSTRUCT ps = {0}; 222 PAINTSTRUCT ps = {0};
217 ::BeginPaint(hwnd(), &ps); 223 ::BeginPaint(hwnd(), &ps);
218 ::EndPaint(hwnd(), &ps); 224 ::EndPaint(hwnd(), &ps);
219 return 0; 225 return 0;
220 } 226 }
221 227
222 LRESULT LegacyRenderWidgetHostHWND::OnSetCursor(UINT message, 228 LRESULT LegacyRenderWidgetHostHWND::OnSetCursor(UINT message,
223 WPARAM w_param, 229 WPARAM w_param,
224 LPARAM l_param) { 230 LPARAM l_param) {
225 return 0; 231 return 0;
226 } 232 }
227 233
228 } // namespace content 234 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/legacy_render_widget_host_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698