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_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <string> | 10 #include <string> |
(...skipping 29 matching lines...) Expand all Loading... |
40 struct WebCompositionUnderline; | 40 struct WebCompositionUnderline; |
41 struct WebScreenInfo; | 41 struct WebScreenInfo; |
42 } | 42 } |
43 | 43 |
44 class BackingStore; | 44 class BackingStore; |
45 class PaintObserver; | 45 class PaintObserver; |
46 class RenderProcessHost; | 46 class RenderProcessHost; |
47 class RenderWidgetHostView; | 47 class RenderWidgetHostView; |
48 class TransportDIB; | 48 class TransportDIB; |
49 class WebCursor; | 49 class WebCursor; |
| 50 struct ViewHostMsg_ImeUpdateTextInputState_Params; |
50 struct ViewHostMsg_UpdateRect_Params; | 51 struct ViewHostMsg_UpdateRect_Params; |
51 | 52 |
52 // This class manages the browser side of a browser<->renderer HWND connection. | 53 // This class manages the browser side of a browser<->renderer HWND connection. |
53 // The HWND lives in the browser process, and windows events are sent over | 54 // The HWND lives in the browser process, and windows events are sent over |
54 // IPC to the corresponding object in the renderer. The renderer paints into | 55 // IPC to the corresponding object in the renderer. The renderer paints into |
55 // shared memory, which we transfer to a backing store and blit to the screen | 56 // shared memory, which we transfer to a backing store and blit to the screen |
56 // when Windows sends us a WM_PAINT message. | 57 // when Windows sends us a WM_PAINT message. |
57 // | 58 // |
58 // How Shutdown Works | 59 // How Shutdown Works |
59 // | 60 // |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 void OnMsgRequestMove(const gfx::Rect& pos); | 452 void OnMsgRequestMove(const gfx::Rect& pos); |
452 void OnMsgSetTooltipText(const string16& tooltip_text, | 453 void OnMsgSetTooltipText(const string16& tooltip_text, |
453 WebKit::WebTextDirection text_direction_hint); | 454 WebKit::WebTextDirection text_direction_hint); |
454 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 455 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
455 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 456 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
456 void OnMsgInputEventAck(const IPC::Message& message); | 457 void OnMsgInputEventAck(const IPC::Message& message); |
457 virtual void OnMsgFocus(); | 458 virtual void OnMsgFocus(); |
458 virtual void OnMsgBlur(); | 459 virtual void OnMsgBlur(); |
459 | 460 |
460 void OnMsgSetCursor(const WebCursor& cursor); | 461 void OnMsgSetCursor(const WebCursor& cursor); |
461 void OnMsgImeUpdateTextInputState(ui::TextInputType type, | 462 void OnMsgImeUpdateTextInputState( |
462 bool can_compose_inline, | 463 const ViewHostMsg_ImeUpdateTextInputState_Params& params); |
463 const gfx::Rect& caret_rect); | |
464 void OnMsgImeCompositionRangeChanged(const ui::Range& range); | 464 void OnMsgImeCompositionRangeChanged(const ui::Range& range); |
465 void OnMsgImeCancelComposition(); | 465 void OnMsgImeCancelComposition(); |
466 | 466 |
467 void OnMsgDidActivateAcceleratedCompositing(bool activated); | 467 void OnMsgDidActivateAcceleratedCompositing(bool activated); |
468 | 468 |
469 #if defined(OS_POSIX) | 469 #if defined(OS_POSIX) |
470 void OnMsgGetScreenInfo(gfx::NativeViewId view, | 470 void OnMsgGetScreenInfo(gfx::NativeViewId view, |
471 WebKit::WebScreenInfo* results); | 471 WebKit::WebScreenInfo* results); |
472 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 472 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
473 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 473 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 | 674 |
675 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 675 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
676 | 676 |
677 // The last scroll offset of the render widget. | 677 // The last scroll offset of the render widget. |
678 gfx::Point last_scroll_offset_; | 678 gfx::Point last_scroll_offset_; |
679 | 679 |
680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 680 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
681 }; | 681 }; |
682 | 682 |
683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 683 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |