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

Unified Diff: content/renderer/render_frame_impl.h

Issue 1962923002: Fix rendering of flash content inside an out-of-process iframe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing unneded includes Created 4 years, 7 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
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index bd2b61a63b60088c756e7dc35b4a6febc70379f7..39e08a6e5b7e3989b495561235faccafe7eddd2b 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -245,6 +245,9 @@ class CONTENT_EXPORT RenderFrameImpl
// when a compositor frame has committed.
void DidCommitCompositorFrame();
+ // Draw commands have been issued by RenderWidgetCompositor.
+ void DidCommitAndDrawCompositorFrame();
+
// TODO(jam): this is a temporary getter until all the code is transitioned
// to using RenderFrame instead of RenderView.
RenderViewImpl* render_view() { return render_view_.get(); }
@@ -296,6 +299,12 @@ class CONTENT_EXPORT RenderFrameImpl
// blink has a separate accessibility tree per frame.
void FocusedNodeChangedForAccessibility(const blink::WebNode& node);
+ // Called when this frame's widget is focused.
+ void RenderWidgetSetFocus(bool enable);
+
+ // Called when the widget receives a mouse event.
+ void RenderWidgetWillHandleMouseEvent();
+
#if defined(ENABLE_PLUGINS)
// Get/set the plugin which will be used to handle document find requests.
void set_plugin_find_handler(PepperPluginInstanceImpl* plugin) {
@@ -647,6 +656,31 @@ class CONTENT_EXPORT RenderFrameImpl
// the Mojo IPC layer.
void MaybeEnableMojoBindings();
+ // Plugin-related functions --------------------------------------------------
+
+#if defined(ENABLE_PLUGINS)
+ PepperPluginInstanceImpl* focused_pepper_plugin() {
+ return focused_pepper_plugin_;
+ }
+ PepperPluginInstanceImpl* pepper_last_mouse_event_target() {
+ return pepper_last_mouse_event_target_;
+ }
+ void set_pepper_last_mouse_event_target(PepperPluginInstanceImpl* plugin) {
+ pepper_last_mouse_event_target_ = plugin;
+ }
+
+ // Indicates that the given instance has been created.
+ void PepperInstanceCreated(PepperPluginInstanceImpl* instance);
+
+ // Indicates that the given instance is being destroyed. This is called from
+ // the destructor, so it's important that the instance is not dereferenced
+ // from this call.
+ void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
+
+ // Notification that the given plugin is focused or unfocused.
+ void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
+#endif // ENABLE_PLUGINS
+
protected:
explicit RenderFrameImpl(const CreateParams& params);
@@ -1204,6 +1238,21 @@ class CONTENT_EXPORT RenderFrameImpl
FrameBlameContext* blame_context_; // Not owned.
+ // Plugins -------------------------------------------------------------------
+#if defined(ENABLE_PLUGINS)
+ typedef std::set<PepperPluginInstanceImpl*> PepperPluginSet;
+ PepperPluginSet active_pepper_instances_;
+
+ // Whether or not the focus is on a PPAPI plugin
+ PepperPluginInstanceImpl* focused_pepper_plugin_;
+
+ // The plugin instance that received the last mouse event. It is set to NULL
+ // if the last mouse event went to elements other than Pepper plugins.
+ // |pepper_last_mouse_event_target_| is not owned by this class. We depend on
+ // the RenderFrameImpl to NULL it out when it destructs.
+ PepperPluginInstanceImpl* pepper_last_mouse_event_target_;
+#endif
+
base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
« no previous file with comments | « content/renderer/pepper/pepper_plugin_instance_impl.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698