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

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

Issue 169203005: Forward WM_NCHITTEST messages from the LegacyRenderWidgetHostHWND class to the parent window. (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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) 74 MESSAGE_HANDLER_EX(WM_VSCROLL, OnScroll)
75 MESSAGE_HANDLER_EX(WM_HSCROLL, OnScroll) 75 MESSAGE_HANDLER_EX(WM_HSCROLL, OnScroll)
76 MESSAGE_HANDLER_EX(WM_NCHITTEST, OnNCHitTest)
77 MESSAGE_RANGE_HANDLER(WM_NCMOUSEMOVE, WM_NCXBUTTONDBLCLK,
78 OnMouseRange)
76 END_MSG_MAP() 79 END_MSG_MAP()
77 80
78 HWND hwnd() { return m_hWnd; } 81 HWND hwnd() { return m_hWnd; }
79 82
80 // Called when the child window is to be reparented to a new window. 83 // Called when the child window is to be reparented to a new window.
81 // The |parent| parameter contains the new parent window. 84 // The |parent| parameter contains the new parent window.
82 void UpdateParent(HWND parent); 85 void UpdateParent(HWND parent);
83 HWND GetParent(); 86 HWND GetParent();
84 87
85 IAccessible* window_accessible() { return window_accessible_; } 88 IAccessible* window_accessible() { return window_accessible_; }
(...skipping 23 matching lines...) Expand all
109 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param); 112 LRESULT OnEraseBkGnd(UINT message, WPARAM w_param, LPARAM l_param);
110 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param); 113 LRESULT OnGetObject(UINT message, WPARAM w_param, LPARAM l_param);
111 LRESULT OnKeyboardRange(UINT message, WPARAM w_param, LPARAM l_param, 114 LRESULT OnKeyboardRange(UINT message, WPARAM w_param, LPARAM l_param,
112 BOOL& handled); 115 BOOL& handled);
113 LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param); 116 LRESULT OnMouseLeave(UINT message, WPARAM w_param, LPARAM l_param);
114 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param, 117 LRESULT OnMouseRange(UINT message, WPARAM w_param, LPARAM l_param,
115 BOOL& handled); 118 BOOL& handled);
116 LRESULT OnMouseActivate(UINT message, WPARAM w_param, LPARAM l_param); 119 LRESULT OnMouseActivate(UINT message, WPARAM w_param, LPARAM l_param);
117 LRESULT OnTouch(UINT message, WPARAM w_param, LPARAM l_param); 120 LRESULT OnTouch(UINT message, WPARAM w_param, LPARAM l_param);
118 LRESULT OnScroll(UINT message, WPARAM w_param, LPARAM l_param); 121 LRESULT OnScroll(UINT message, WPARAM w_param, LPARAM l_param);
122 LRESULT OnNCHitTest(UINT message, WPARAM w_param, LPARAM l_param);
119 123
120 LRESULT OnNCPaint(UINT message, WPARAM w_param, LPARAM l_param); 124 LRESULT OnNCPaint(UINT message, WPARAM w_param, LPARAM l_param);
121 LRESULT OnPaint(UINT message, WPARAM w_param, LPARAM l_param); 125 LRESULT OnPaint(UINT message, WPARAM w_param, LPARAM l_param);
122 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param); 126 LRESULT OnSetCursor(UINT message, WPARAM w_param, LPARAM l_param);
123 127
124 content::BrowserAccessibilityManagerWin* manager_; 128 content::BrowserAccessibilityManagerWin* manager_;
125 base::win::ScopedComPtr<IAccessible> window_accessible_; 129 base::win::ScopedComPtr<IAccessible> window_accessible_;
126 130
127 // Set to true if we turned on mouse tracking. 131 // Set to true if we turned on mouse tracking.
128 bool mouse_tracking_enabled_; 132 bool mouse_tracking_enabled_;
129 133
130 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND); 134 DISALLOW_COPY_AND_ASSIGN(LegacyRenderWidgetHostHWND);
131 }; 135 };
132 136
133 } // namespace content 137 } // namespace content
134 138
135 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_ 139 #endif // CONTENT_BROWSER_RENDERER_HOST_LEGACY_RENDER_WIDGET_HOST_WIN_H_
136 140
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