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 13 matching lines...) Expand all Loading... |
24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" | 24 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextInputType.h" |
25 #include "ui/gfx/native_widget_types.h" | 25 #include "ui/gfx/native_widget_types.h" |
26 #include "ui/gfx/rect.h" | 26 #include "ui/gfx/rect.h" |
27 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
28 #include "ui/gfx/surface/transport_dib.h" | 28 #include "ui/gfx/surface/transport_dib.h" |
29 | 29 |
30 namespace gfx { | 30 namespace gfx { |
31 class Rect; | 31 class Rect; |
32 } | 32 } |
33 | 33 |
| 34 namespace ui { |
| 35 class Range; |
| 36 } |
| 37 |
34 namespace WebKit { | 38 namespace WebKit { |
35 class WebInputEvent; | 39 class WebInputEvent; |
36 class WebMouseEvent; | 40 class WebMouseEvent; |
37 struct WebCompositionUnderline; | 41 struct WebCompositionUnderline; |
38 struct WebScreenInfo; | 42 struct WebScreenInfo; |
39 } | 43 } |
40 | 44 |
41 class BackingStore; | 45 class BackingStore; |
42 class PaintObserver; | 46 class PaintObserver; |
43 class RenderProcessHost; | 47 class RenderProcessHost; |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 void OnMsgRequestMove(const gfx::Rect& pos); | 472 void OnMsgRequestMove(const gfx::Rect& pos); |
469 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); | 473 void OnMsgPaintAtSizeAck(int tag, const gfx::Size& size); |
470 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 474 void OnMsgUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
471 void OnMsgInputEventAck(const IPC::Message& message); | 475 void OnMsgInputEventAck(const IPC::Message& message); |
472 virtual void OnMsgFocus(); | 476 virtual void OnMsgFocus(); |
473 virtual void OnMsgBlur(); | 477 virtual void OnMsgBlur(); |
474 | 478 |
475 void OnMsgSetCursor(const WebCursor& cursor); | 479 void OnMsgSetCursor(const WebCursor& cursor); |
476 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type, | 480 void OnMsgImeUpdateTextInputState(WebKit::WebTextInputType type, |
477 const gfx::Rect& caret_rect); | 481 const gfx::Rect& caret_rect); |
| 482 void OnMsgImeCompositionRangeChanged(const ui::Range& range); |
478 void OnMsgImeCancelComposition(); | 483 void OnMsgImeCancelComposition(); |
479 | 484 |
480 void OnMsgDidActivateAcceleratedCompositing(bool activated); | 485 void OnMsgDidActivateAcceleratedCompositing(bool activated); |
481 | 486 |
482 #if defined(OS_MACOSX) | 487 #if defined(OS_MACOSX) |
483 void OnMsgGetScreenInfo(gfx::NativeViewId view, | 488 void OnMsgGetScreenInfo(gfx::NativeViewId view, |
484 WebKit::WebScreenInfo* results); | 489 WebKit::WebScreenInfo* results); |
485 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 490 void OnMsgGetWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
486 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); | 491 void OnMsgGetRootWindowRect(gfx::NativeViewId window_id, gfx::Rect* results); |
487 void OnMsgPluginFocusChanged(bool focused, int plugin_id); | 492 void OnMsgPluginFocusChanged(bool focused, int plugin_id); |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 | 675 |
671 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; | 676 std::vector<gfx::PluginWindowHandle> deferred_plugin_handles_; |
672 | 677 |
673 // The last scroll offset of the render widget. | 678 // The last scroll offset of the render widget. |
674 gfx::Point last_scroll_offset_; | 679 gfx::Point last_scroll_offset_; |
675 | 680 |
676 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); | 681 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); |
677 }; | 682 }; |
678 | 683 |
679 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ | 684 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ |
OLD | NEW |