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

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

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 | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.cc » ('j') | 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 #ifndef CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlwin.h> 9 #include <atlwin.h>
10 #include <atlcrack.h> 10 #include <atlcrack.h>
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject) 64 MESSAGE_HANDLER_EX(WM_GETOBJECT, OnGetObject)
65 MESSAGE_RANGE_HANDLER(WM_KEYFIRST, WM_KEYLAST, OnKeyboardRange) 65 MESSAGE_RANGE_HANDLER(WM_KEYFIRST, WM_KEYLAST, OnKeyboardRange)
66 MESSAGE_HANDLER_EX(WM_PAINT, OnPaint) 66 MESSAGE_HANDLER_EX(WM_PAINT, OnPaint)
67 MESSAGE_HANDLER_EX(WM_NCPAINT, OnNCPaint) 67 MESSAGE_HANDLER_EX(WM_NCPAINT, OnNCPaint)
68 MESSAGE_HANDLER_EX(WM_ERASEBKGND, OnEraseBkGnd) 68 MESSAGE_HANDLER_EX(WM_ERASEBKGND, OnEraseBkGnd)
69 MESSAGE_RANGE_HANDLER(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange) 69 MESSAGE_RANGE_HANDLER(WM_MOUSEFIRST, WM_MOUSELAST, OnMouseRange)
70 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseLeave) 70 MESSAGE_HANDLER_EX(WM_MOUSELEAVE, OnMouseLeave)
71 MESSAGE_HANDLER_EX(WM_MOUSEACTIVATE, OnMouseActivate) 71 MESSAGE_HANDLER_EX(WM_MOUSEACTIVATE, OnMouseActivate)
72 MESSAGE_HANDLER_EX(WM_SETCURSOR, OnSetCursor) 72 MESSAGE_HANDLER_EX(WM_SETCURSOR, OnSetCursor)
73 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouch) 73 MESSAGE_HANDLER_EX(WM_TOUCH, OnTouch)
74 MESSAGE_HANDLER_EX(WM_VSCROLL, OnScroll)
75 MESSAGE_HANDLER_EX(WM_HSCROLL, OnScroll)
74 END_MSG_MAP() 76 END_MSG_MAP()
75 77
76 HWND hwnd() { return m_hWnd; } 78 HWND hwnd() { return m_hWnd; }
77 79
78 // Called when the child window is to be reparented to a new window. 80 // Called when the child window is to be reparented to a new window.
79 // The |parent| parameter contains the new parent window. 81 // The |parent| parameter contains the new parent window.
80 void UpdateParent(HWND parent); 82 void UpdateParent(HWND parent);
81 HWND GetParent(); 83 HWND GetParent();
82 84
83 IAccessible* window_accessible() { return window_accessible_; } 85 IAccessible* window_accessible() { return window_accessible_; }
(...skipping 22 matching lines...) Expand all
106 108
107 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param); 109 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param);
108 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param); 110 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param);
109 LRESULT OnKeyboardRange(UINT message, WPARAM w_param, LPARAM l_param, 111 LRESULT OnKeyboardRange(UINT message, WPARAM w_param, LPARAM l_param,
110 BOOL& handled); 112 BOOL& handled);
111 LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param); 113 LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param);
112 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param, 114 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param,
113 BOOL& handled); 115 BOOL& handled);
114 LRESULT OnMouseActivate(UINT message, WPARAM w_param, LPARAM l_param); 116 LRESULT OnMouseActivate(UINT message, WPARAM w_param, LPARAM l_param);
115 LRESULT OnTouch(UINT message, WPARAM w_param, LPARAM l_param); 117 LRESULT OnTouch(UINT message, WPARAM w_param, LPARAM l_param);
118 LRESULT OnScroll(UINT message, WPARAM w_param, LPARAM l_param);
116 119
117 LRESULT OnNCPaint(UINT message, WPARAM w_param, LPARAM l_param); 120 LRESULT OnNCPaint(UINT message, WPARAM w_param, LPARAM l_param);
118 LRESULT OnPaint(UINT message, WPARAM w_param, LPARAM l_param); 121 LRESULT OnPaint(UINT message, WPARAM w_param, LPARAM l_param);
119 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); 122 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param);
120 123
121 content::BrowserAccessibilityManagerWin* manager_; 124 content::BrowserAccessibilityManagerWin* manager_;
122 base::win::ScopedComPtr<IAccessible> window_accessible_; 125 base::win::ScopedComPtr<IAccessible> window_accessible_;
123 126
124 // Set to true if we turned on mouse tracking. 127 // Set to true if we turned on mouse tracking.
125 bool mouse_tracking_enabled_; 128 bool mouse_tracking_enabled_;
126 129
127 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); 130 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND);
128 }; 131 };
129 132
130 } // namespace content 133 } // namespace content
131 134
132 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ 135 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_
133 136
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/legacy_render_widget_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698