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

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

Issue 2333813002: Introduce WebInputMethodController to blink (Closed)
Patch Set: Explicitly asking for TextInputState updates Created 4 years, 1 month 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 FrameSinkId; 79 class FrameSinkId;
79 class SwapPromise; 80 class SwapPromise;
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // Closes a RenderWidget that was created by |CreateForFrame|. 152 // Closes a RenderWidget that was created by |CreateForFrame|.
152 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget. 153 // TODO(avi): De-virtualize this once RenderViewImpl has-a RenderWidget.
153 // https://crbug.com/545684 154 // https://crbug.com/545684
154 virtual void CloseForFrame(); 155 virtual void CloseForFrame();
155 156
156 int32_t routing_id() const { return routing_id_; } 157 int32_t routing_id() const { return routing_id_; }
157 void SetRoutingID(int32_t routing_id); 158 void SetRoutingID(int32_t routing_id);
158 159
159 CompositorDependencies* compositor_deps() const { return compositor_deps_; } 160 CompositorDependencies* compositor_deps() const { return compositor_deps_; }
160 virtual blink::WebWidget* GetWebWidget() const; 161 virtual blink::WebWidget* GetWebWidget() const;
162
163 // Returns the current instance of WebInputMethodController which is to be
164 // used for IME related tasks. This instance corresponds to the one from
165 // focused frame and can be nullptr.
166 blink::WebInputMethodController* GetInputMethodController() const;
167
161 const gfx::Size& size() const { return size_; } 168 const gfx::Size& size() const { return size_; }
162 bool is_fullscreen_granted() const { return is_fullscreen_granted_; } 169 bool is_fullscreen_granted() const { return is_fullscreen_granted_; }
163 blink::WebDisplayMode display_mode() const { return display_mode_; } 170 blink::WebDisplayMode display_mode() const { return display_mode_; }
164 bool is_hidden() const { return is_hidden_; } 171 bool is_hidden() const { return is_hidden_; }
165 // Temporary for debugging purposes... 172 // Temporary for debugging purposes...
166 bool closing() const { return closing_; } 173 bool closing() const { return closing_; }
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 }
170 gfx::Point host_context_menu_location() { 177 gfx::Point host_context_menu_location() {
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 // Stores edit commands associated to the next key event. 827 // Stores edit commands associated to the next key event.
821 // Will be cleared as soon as the next key event is processed. 828 // Will be cleared as soon as the next key event is processed.
822 EditCommands edit_commands_; 829 EditCommands edit_commands_;
823 830
824 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 831 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
825 }; 832 };
826 833
827 } // namespace content 834 } // namespace content
828 835
829 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 836 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698