OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 namespace blink { | 65 namespace blink { |
66 namespace scheduler { | 66 namespace scheduler { |
67 class RenderWidgetSchedulingState; | 67 class RenderWidgetSchedulingState; |
68 } | 68 } |
69 struct WebDeviceEmulationParams; | 69 struct WebDeviceEmulationParams; |
70 class WebDragData; | 70 class WebDragData; |
71 class WebFrameWidget; | 71 class WebFrameWidget; |
72 class WebGestureEvent; | 72 class WebGestureEvent; |
73 class WebImage; | 73 class WebImage; |
| 74 class WebInputMethodController; |
74 class WebLocalFrame; | 75 class WebLocalFrame; |
75 class WebMouseEvent; | 76 class WebMouseEvent; |
76 class WebNode; | 77 class WebNode; |
77 struct WebPoint; | 78 struct WebPoint; |
78 } | 79 } |
79 | 80 |
80 namespace cc { | 81 namespace cc { |
81 class CompositorFrameSink; | 82 class CompositorFrameSink; |
82 class FrameSinkId; | 83 class FrameSinkId; |
83 class SwapPromise; | 84 class SwapPromise; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Closes a RenderWidget that was created by |CreateForFrame|. | 156 // Closes a RenderWidget that was created by |CreateForFrame|. |
156 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. | 157 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. |
157 // https://crbug.com/545684 | 158 // https://crbug.com/545684 |
158 virtual void CloseForFrame(); | 159 virtual void CloseForFrame(); |
159 | 160 |
160 int32_t routing_id() const { return routing_id_; } | 161 int32_t routing_id() const { return routing_id_; } |
161 void SetRoutingID(int32_t routing_id); | 162 void SetRoutingID(int32_t routing_id); |
162 | 163 |
163 CompositorDependencies* compositor_deps() const { return compositor_deps_; } | 164 CompositorDependencies* compositor_deps() const { return compositor_deps_; } |
164 virtual blink::WebWidget* GetWebWidget() const; | 165 virtual blink::WebWidget* GetWebWidget() const; |
| 166 |
| 167 // Returns the current instance of WebInputMethodController which is to be |
| 168 // used for IME related tasks. This instance corresponds to the one from |
| 169 // focused frame and can be nullptr. |
| 170 blink::WebInputMethodController* GetInputMethodController() const; |
| 171 |
165 const gfx::Size& size() const { return size_; } | 172 const gfx::Size& size() const { return size_; } |
166 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } | 173 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } |
167 blink::WebDisplayMode display_mode() const { return display_mode_; } | 174 blink::WebDisplayMode display_mode() const { return display_mode_; } |
168 bool is_hidden() const { return is_hidden_; } | 175 bool is_hidden() const { return is_hidden_; } |
169 // Temporary for debugging purposes... | 176 // Temporary for debugging purposes... |
170 bool closing() const { return closing_; } | 177 bool closing() const { return closing_; } |
171 bool has_host_context_menu_location() { | 178 bool has_host_context_menu_location() { |
172 return has_host_context_menu_location_; | 179 return has_host_context_menu_location_; |
173 } | 180 } |
174 gfx::Point host_context_menu_location() { | 181 gfx::Point host_context_menu_location() { |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
826 // being handled. If the current event results in starting a drag/drop | 833 // being handled. If the current event results in starting a drag/drop |
827 // session, this info is sent to the browser along with other drag/drop info. | 834 // session, this info is sent to the browser along with other drag/drop info. |
828 DragEventSourceInfo possible_drag_event_info_; | 835 DragEventSourceInfo possible_drag_event_info_; |
829 | 836 |
830 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 837 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
831 }; | 838 }; |
832 | 839 |
833 } // namespace content | 840 } // namespace content |
834 | 841 |
835 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 842 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |