OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <atlbase.h> | 9 #include <atlbase.h> |
10 #include <atlapp.h> | 10 #include <atlapp.h> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 MSG_WM_KILLFOCUS(OnKillFocus) | 97 MSG_WM_KILLFOCUS(OnKillFocus) |
98 MSG_WM_CAPTURECHANGED(OnCaptureChanged) | 98 MSG_WM_CAPTURECHANGED(OnCaptureChanged) |
99 MSG_WM_CANCELMODE(OnCancelMode) | 99 MSG_WM_CANCELMODE(OnCancelMode) |
100 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) | 100 MSG_WM_INPUTLANGCHANGE(OnInputLangChange) |
101 MSG_WM_THEMECHANGED(OnThemeChanged) | 101 MSG_WM_THEMECHANGED(OnThemeChanged) |
102 MSG_WM_NOTIFY(OnNotify) | 102 MSG_WM_NOTIFY(OnNotify) |
103 MESSAGE_HANDLER(WM_IME_SETCONTEXT, OnImeSetContext) | 103 MESSAGE_HANDLER(WM_IME_SETCONTEXT, OnImeSetContext) |
104 MESSAGE_HANDLER(WM_IME_STARTCOMPOSITION, OnImeStartComposition) | 104 MESSAGE_HANDLER(WM_IME_STARTCOMPOSITION, OnImeStartComposition) |
105 MESSAGE_HANDLER(WM_IME_COMPOSITION, OnImeComposition) | 105 MESSAGE_HANDLER(WM_IME_COMPOSITION, OnImeComposition) |
106 MESSAGE_HANDLER(WM_IME_ENDCOMPOSITION, OnImeEndComposition) | 106 MESSAGE_HANDLER(WM_IME_ENDCOMPOSITION, OnImeEndComposition) |
| 107 MESSAGE_HANDLER(WM_IME_REQUEST, OnImeRequest) |
107 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseEvent) | 108 MESSAGE_HANDLER(WM_MOUSEMOVE, OnMouseEvent) |
108 MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseEvent) | 109 MESSAGE_HANDLER(WM_MOUSELEAVE, OnMouseEvent) |
109 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseEvent) | 110 MESSAGE_HANDLER(WM_LBUTTONDOWN, OnMouseEvent) |
110 MESSAGE_HANDLER(WM_MBUTTONDOWN, OnMouseEvent) | 111 MESSAGE_HANDLER(WM_MBUTTONDOWN, OnMouseEvent) |
111 MESSAGE_HANDLER(WM_RBUTTONDOWN, OnMouseEvent) | 112 MESSAGE_HANDLER(WM_RBUTTONDOWN, OnMouseEvent) |
112 MESSAGE_HANDLER(WM_LBUTTONUP, OnMouseEvent) | 113 MESSAGE_HANDLER(WM_LBUTTONUP, OnMouseEvent) |
113 MESSAGE_HANDLER(WM_MBUTTONUP, OnMouseEvent) | 114 MESSAGE_HANDLER(WM_MBUTTONUP, OnMouseEvent) |
114 MESSAGE_HANDLER(WM_RBUTTONUP, OnMouseEvent) | 115 MESSAGE_HANDLER(WM_RBUTTONUP, OnMouseEvent) |
115 MESSAGE_HANDLER(WM_LBUTTONDBLCLK, OnMouseEvent) | 116 MESSAGE_HANDLER(WM_LBUTTONDBLCLK, OnMouseEvent) |
116 MESSAGE_HANDLER(WM_MBUTTONDBLCLK, OnMouseEvent) | 117 MESSAGE_HANDLER(WM_MBUTTONDBLCLK, OnMouseEvent) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void Hide() OVERRIDE; | 154 virtual void Hide() OVERRIDE; |
154 virtual bool IsShowing() OVERRIDE; | 155 virtual bool IsShowing() OVERRIDE; |
155 virtual gfx::Rect GetViewBounds() const OVERRIDE; | 156 virtual gfx::Rect GetViewBounds() const OVERRIDE; |
156 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; | 157 virtual void UpdateCursor(const WebCursor& cursor) OVERRIDE; |
157 virtual void SetIsLoading(bool is_loading) OVERRIDE; | 158 virtual void SetIsLoading(bool is_loading) OVERRIDE; |
158 virtual void TextInputStateChanged(ui::TextInputType type, | 159 virtual void TextInputStateChanged(ui::TextInputType type, |
159 bool can_compose_inline) OVERRIDE; | 160 bool can_compose_inline) OVERRIDE; |
160 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, | 161 virtual void SelectionBoundsChanged(const gfx::Rect& start_rect, |
161 const gfx::Rect& end_rect) OVERRIDE; | 162 const gfx::Rect& end_rect) OVERRIDE; |
162 virtual void ImeCancelComposition() OVERRIDE; | 163 virtual void ImeCancelComposition() OVERRIDE; |
| 164 virtual void ImeCompositionRangeChanged(const ui::Range& range) OVERRIDE; |
163 virtual void DidUpdateBackingStore( | 165 virtual void DidUpdateBackingStore( |
164 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, | 166 const gfx::Rect& scroll_rect, int scroll_dx, int scroll_dy, |
165 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; | 167 const std::vector<gfx::Rect>& copy_rects) OVERRIDE; |
166 virtual void RenderViewGone(base::TerminationStatus status, | 168 virtual void RenderViewGone(base::TerminationStatus status, |
167 int error_code) OVERRIDE; | 169 int error_code) OVERRIDE; |
168 // called by TabContents before DestroyWindow | 170 // called by TabContents before DestroyWindow |
169 virtual void WillWmDestroy() OVERRIDE; | 171 virtual void WillWmDestroy() OVERRIDE; |
170 virtual void Destroy() OVERRIDE; | 172 virtual void Destroy() OVERRIDE; |
171 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; | 173 virtual void SetTooltipText(const string16& tooltip_text) OVERRIDE; |
172 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; | 174 virtual BackingStore* AllocBackingStore(const gfx::Size& size) OVERRIDE; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 void OnThemeChanged(); | 215 void OnThemeChanged(); |
214 LRESULT OnNotify(int w_param, NMHDR* header); | 216 LRESULT OnNotify(int w_param, NMHDR* header); |
215 LRESULT OnImeSetContext( | 217 LRESULT OnImeSetContext( |
216 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 218 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
217 LRESULT OnImeStartComposition( | 219 LRESULT OnImeStartComposition( |
218 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 220 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
219 LRESULT OnImeComposition( | 221 LRESULT OnImeComposition( |
220 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 222 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
221 LRESULT OnImeEndComposition( | 223 LRESULT OnImeEndComposition( |
222 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 224 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
| 225 LRESULT OnImeRequest( |
| 226 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
223 LRESULT OnMouseEvent( | 227 LRESULT OnMouseEvent( |
224 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 228 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
225 LRESULT OnKeyEvent( | 229 LRESULT OnKeyEvent( |
226 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 230 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
227 LRESULT OnWheelEvent( | 231 LRESULT OnWheelEvent( |
228 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); | 232 UINT message, WPARAM wparam, LPARAM lparam, BOOL& handled); |
229 LRESULT OnMouseActivate(UINT message, | 233 LRESULT OnMouseActivate(UINT message, |
230 WPARAM wparam, | 234 WPARAM wparam, |
231 LPARAM lparam, | 235 LPARAM lparam, |
232 BOOL& handled); | 236 BOOL& handled); |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 // Do initialization needed by both InitAsPopup() and InitAsFullscreen(). | 301 // Do initialization needed by both InitAsPopup() and InitAsFullscreen(). |
298 void DoPopupOrFullscreenInit(HWND parent_hwnd, | 302 void DoPopupOrFullscreenInit(HWND parent_hwnd, |
299 const gfx::Rect& pos, | 303 const gfx::Rect& pos, |
300 DWORD ex_style); | 304 DWORD ex_style); |
301 | 305 |
302 CPoint GetClientCenter() const; | 306 CPoint GetClientCenter() const; |
303 void MoveCursorToCenter() const; | 307 void MoveCursorToCenter() const; |
304 | 308 |
305 void HandleLockedMouseEvent(UINT message, WPARAM wparam, LPARAM lparam); | 309 void HandleLockedMouseEvent(UINT message, WPARAM wparam, LPARAM lparam); |
306 | 310 |
| 311 LRESULT OnDocumentFeed(RECONVERTSTRING* reconv); |
| 312 LRESULT OnReconvertString(RECONVERTSTRING* reconv); |
| 313 |
307 // The associated Model. While |this| is being Destroyed, | 314 // The associated Model. While |this| is being Destroyed, |
308 // |render_widget_host_| is NULL and the Windows message loop is run one last | 315 // |render_widget_host_| is NULL and the Windows message loop is run one last |
309 // time. Message handlers must check for a NULL |render_widget_host_|. | 316 // time. Message handlers must check for a NULL |render_widget_host_|. |
310 RenderWidgetHost* render_widget_host_; | 317 RenderWidgetHost* render_widget_host_; |
311 | 318 |
312 // When we are doing accelerated compositing | 319 // When we are doing accelerated compositing |
313 HWND compositor_host_window_; | 320 HWND compositor_host_window_; |
314 | 321 |
315 // true if the compositor host window must be hidden after the | 322 // true if the compositor host window must be hidden after the |
316 // software renderered view is updated. | 323 // software renderered view is updated. |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 // lock was entered. | 411 // lock was entered. |
405 // Relative to the upper-left corner of the view. | 412 // Relative to the upper-left corner of the view. |
406 gfx::Point last_mouse_position_; | 413 gfx::Point last_mouse_position_; |
407 // Relative to the upper-left corner of the screen. | 414 // Relative to the upper-left corner of the screen. |
408 gfx::Point last_global_mouse_position_; | 415 gfx::Point last_global_mouse_position_; |
409 | 416 |
410 // In the case of the mouse being moved away from the view and then moved | 417 // In the case of the mouse being moved away from the view and then moved |
411 // back, we regard the mouse movement as (0, 0). | 418 // back, we regard the mouse movement as (0, 0). |
412 bool ignore_mouse_movement_; | 419 bool ignore_mouse_movement_; |
413 | 420 |
| 421 ui::Range composition_range_; |
| 422 |
414 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); | 423 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewWin); |
415 }; | 424 }; |
416 | 425 |
417 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ | 426 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_WIN_H_ |
OLD | NEW |