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

Unified Diff: content/renderer/render_widget.h

Issue 2029423003: OOPIF IME: Renderer Side Changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing kenrb@'s comments Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 3cffee421e5433e7848a1606b604642099df93b4..6fd4bcb64a52c999889e38afca8f523b55061c52 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.
@@ -766,6 +771,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);
};

Powered by Google App Engine
This is Rietveld 408576698