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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.h

Issue 2888203006: Move the logic to retrieve the WebPluginContainer to LocalFrame and Node. (Closed)
Patch Set: Rename & format. 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
Index: third_party/WebKit/Source/web/WebLocalFrameImpl.h
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.h b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
index e532d8d460e115173776254c1c1a40a0d0bc212c..ae2a7c2fcdd4c10de649e07f2bdc54523ac48efa 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.h
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.h
@@ -351,17 +351,6 @@ class WEB_EXPORT WebLocalFrameImpl final
static WebLocalFrameImpl* FromFrame(LocalFrame&);
static WebLocalFrameImpl* FromFrameOwnerElement(Element*);
- // If the frame hosts a PluginDocument, this method returns the
- // WebPluginContainerBase that hosts the plugin.
- static WebPluginContainerBase* PluginContainerFromFrame(LocalFrame*);
-
- // If the frame hosts a PluginDocument, this method returns the
- // WebPluginContainerBase that hosts the plugin. If the provided node is a
- // plugin, then it runs its WebPluginContainerBase. Otherwise, uses the
- // currently focused element (if any).
- static WebPluginContainerBase* CurrentPluginContainer(LocalFrame*,
- Node* = nullptr);
-
WebViewBase* ViewImpl() const override;
FrameView* GetFrameView() const override {
@@ -470,6 +459,8 @@ class WEB_EXPORT WebLocalFrameImpl final
WebPlugin* FocusedPluginIfInputMethodSupported();
ScrollableArea* LayoutViewportScrollableArea() const;
+ WebPluginContainerBase* CurrentPluginContainer(LocalFrame*,
+ Node* = nullptr) const;
// Returns true if the frame is focused.
bool IsFocused() const;

Powered by Google App Engine
This is Rietveld 408576698