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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

Issue 2886113002: Introduce WebPluginContainerBase to abstract WebPluginContainerImpl. (Closed)
Patch Set: Rebase 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/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index 8654ed996bc1b1ebcef4f540fb7ee01c990c8f27..6159ead224234cde467314e763605ca17cb49f43 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -40,6 +40,7 @@
#include "core/editing/markers/DocumentMarkerController.h"
#include "core/editing/spellcheck/SpellChecker.h"
#include "core/exported/WebDataSourceImpl.h"
+#include "core/exported/WebPluginContainerBase.h"
#include "core/exported/WebViewBase.h"
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
@@ -78,7 +79,6 @@
#include "public/web/WebTextCheckClient.h"
#include "public/web/WebViewClient.h"
#include "web/ContextMenuAllowedScope.h"
-#include "web/WebPluginContainerImpl.h"
namespace blink {
@@ -296,7 +296,7 @@ bool ContextMenuClientImpl::ShowContextMenu(const ContextMenu* default_menu,
PluginView* plugin_view = ToLayoutPart(object)->Plugin();
if (plugin_view && plugin_view->IsPluginContainer()) {
data.media_type = WebContextMenuData::kMediaTypePlugin;
- WebPluginContainerImpl* plugin = ToWebPluginContainerImpl(plugin_view);
+ WebPluginContainerBase* plugin = ToWebPluginContainerBase(plugin_view);
WebString text = plugin->Plugin()->SelectionAsText();
if (!text.IsEmpty()) {
data.selected_text = text;

Powered by Google App Engine
This is Rietveld 408576698