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

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

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

Powered by Google App Engine
This is Rietveld 408576698