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

Unified Diff: third_party/WebKit/Source/core/frame/LocalFrame.h

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Ensure we have a valid PluginView before using it. Created 3 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 | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/LocalFrame.h
diff --git a/third_party/WebKit/Source/core/frame/LocalFrame.h b/third_party/WebKit/Source/core/frame/LocalFrame.h
index 4c00a5b8f81b6c7df73b21246a5d0656f136b6f6..7a2942313edf6477ffb0228a32be99aa8c74386c 100644
--- a/third_party/WebKit/Source/core/frame/LocalFrame.h
+++ b/third_party/WebKit/Source/core/frame/LocalFrame.h
@@ -81,6 +81,7 @@ class PluginData;
class ScriptController;
class SpellChecker;
class WebFrameScheduler;
+class WebPluginContainerBase;
class WebURLLoader;
extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>;
@@ -244,6 +245,14 @@ class CORE_EXPORT LocalFrame final : public Frame,
// for adding a callback multiple times.
static void RegisterInitializationCallback(FrameInitCallback);
+ // If the frame hosts a PluginDocument, this method returns the
+ // WebPluginContainerBase that hosts the plugin. If the provided node is a
+ // plugin, then it returns its WebPluginContainerBase. Otherwise, uses the
+ // currently focused element (if any).
+ // TODO(slangley): Refactor this method to extract the logic of looking up
+ // focused element or passed node into explicit methods.
+ WebPluginContainerBase* GetWebPluginContainerBase(Node* = nullptr) const;
+
private:
friend class FrameNavigationDisabler;
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698