Chromium Code Reviews| Index: content/renderer/render_widget.h |
| diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h |
| index 3cffee421e5433e7848a1606b604642099df93b4..f25607ca13ea90234188246e1cfac5edc08f18ba 100644 |
| --- a/content/renderer/render_widget.h |
| +++ b/content/renderer/render_widget.h |
| @@ -83,6 +83,7 @@ class CompositorDependencies; |
| class ExternalPopupMenu; |
| class FrameSwapMessageQueue; |
| class ImeEventGuard; |
| +class PepperPluginInstanceImpl; |
| class RenderFrameImpl; |
| class RenderFrameProxy; |
| class RenderWidgetCompositor; |
| @@ -365,6 +366,10 @@ class CONTENT_EXPORT RenderWidget |
| // Indicates whether this widget has focus. |
| bool has_focus() const { return has_focus_; } |
| + void set_focused_pepper_plugin(PepperPluginInstanceImpl* plugin) { |
| + focused_pepper_plugin_ = plugin; |
| + } |
| + |
| protected: |
| // Friend RefCounted so that the dtor can be non-public. Using this class |
| // without ref-counting is an error. |
| @@ -458,6 +463,7 @@ class CONTENT_EXPORT RenderWidget |
| virtual void OnImeConfirmComposition(const base::string16& text, |
| const gfx::Range& replacement_range, |
| bool keep_selection); |
| + |
|
kenrb
2016/06/10 20:52:03
Nit: new line not needed.
EhsanK
2016/06/27 21:14:49
Done.
|
| // Called when the device scale factor is changed, or the layer tree is |
| // initialized. |
| virtual void OnDeviceScaleFactorChanged(); |
| @@ -766,6 +772,10 @@ class CONTENT_EXPORT RenderWidget |
| // Indicates whether this widget has focus. |
| bool has_focus_; |
| + // This reference is set by the RenderFrame and is used to query the IME- |
| + // related state from the plugin to later send to the browser. |
| + PepperPluginInstanceImpl* focused_pepper_plugin_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
| }; |