| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |