Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: content/renderer/render_widget.h

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Updated a comment Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 class SyncMessageFilter; 60 class SyncMessageFilter;
61 } 61 }
62 62
63 namespace blink { 63 namespace blink {
64 namespace scheduler { 64 namespace scheduler {
65 class RenderWidgetSchedulingState; 65 class RenderWidgetSchedulingState;
66 } 66 }
67 struct WebDeviceEmulationParams; 67 struct WebDeviceEmulationParams;
68 class WebFrameWidget; 68 class WebFrameWidget;
69 class WebGestureEvent; 69 class WebGestureEvent;
70 class WebInputMethodController;
70 class WebLocalFrame; 71 class WebLocalFrame;
71 class WebMouseEvent; 72 class WebMouseEvent;
72 class WebNode; 73 class WebNode;
73 struct WebPoint; 74 struct WebPoint;
74 } 75 }
75 76
76 namespace cc { 77 namespace cc {
77 class CompositorFrameSink; 78 class CompositorFrameSink;
78 class SwapPromise; 79 class SwapPromise;
79 } 80 }
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Closes a RenderWidget that was created by |CreateForFrame|. 151 // Closes a RenderWidget that was created by |CreateForFrame|.
151 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. 152 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
152 // https://crbug.com/545684 153 // https://crbug.com/545684
153 virtual void CloseForFrame(); 154 virtual void CloseForFrame();
154 155
155 int32_t routing_id() const { return routing_id_; } 156 int32_t routing_id() const { return routing_id_; }
156 void SetRoutingID(int32_t routing_id); 157 void SetRoutingID(int32_t routing_id);
157 158
158 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 159 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
159 virtual blink::WebWidget* GetWebWidget() const; 160 virtual blink::WebWidget* GetWebWidget() const;
161
162 // Returns the current instance of WebInputMethodController which is to be
163 // used for IME related tasks. This instance corresponds to the one from
164 // focused frame and can be nullptr.
165 blink::WebInputMethodController* GetInputMethodController() const;
166
160 const gfx::Size& size() const { return size_; } 167 const gfx::Size& size() const { return size_; }
161 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 168 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
162 blink::WebDisplayMode display_mode() const { return display_mode_; } 169 blink::WebDisplayMode display_mode() const { return display_mode_; }
163 bool is_hidden() const { return is_hidden_; } 170 bool is_hidden() const { return is_hidden_; }
164 // Temporary for debugging purposes... 171 // Temporary for debugging purposes...
165 bool closing() const { return closing_; } 172 bool closing() const { return closing_; }
166 bool is_swapped_out() { return is_swapped_out_; } 173 bool is_swapped_out() { return is_swapped_out_; }
167 bool has_host_context_menu_location() { 174 bool has_host_context_menu_location() {
168 return has_host_context_menu_location_; 175 return has_host_context_menu_location_;
169 } 176 }
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 // Stores edit commands associated to the next key event. 839 // Stores edit commands associated to the next key event.
833 // Will be cleared as soon as the next key event is processed. 840 // Will be cleared as soon as the next key event is processed.
834 EditCommands edit_commands_; 841 EditCommands edit_commands_;
835 842
836 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 843 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
837 }; 844 };
838 845
839 } // namespace content 846 } // namespace content
840 847
841 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 848 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698