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

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

Issue 2865953002: Move more users of WebLocalFrameImpl to WebLocalFrameBase. (Closed)
Patch Set: Convert DedicatedWorkerMessagingProxyProviderImpl to use WebLocalFrameBase. 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 63214655706a8c3468d99ef8c4ad55f781be68cd..765f96787c8e1c547e47f1f638c2a779bcbf8608 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -44,6 +44,7 @@
#include "core/frame/FrameView.h"
#include "core/frame/Settings.h"
#include "core/frame/VisualViewport.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "core/html/HTMLAnchorElement.h"
#include "core/html/HTMLFormElement.h"
#include "core/html/HTMLImageElement.h"
@@ -78,7 +79,6 @@
#include "public/web/WebTextCheckClient.h"
#include "public/web/WebViewClient.h"
#include "web/ContextMenuAllowedScope.h"
-#include "web/WebLocalFrameImpl.h"
#include "web/WebPluginContainerImpl.h"
namespace blink {
@@ -189,8 +189,8 @@ bool ContextMenuClientImpl::ShowContextMenu(const ContextMenu* default_menu,
r.SetToShadowHostIfInRestrictedShadowRoot();
LocalFrame* selected_frame = r.InnerNodeFrame();
- WebLocalFrameImpl* selected_web_frame =
- WebLocalFrameImpl::FromFrame(selected_frame);
+ WebLocalFrameBase* selected_web_frame =
+ WebLocalFrameBase::FromFrame(selected_frame);
WebContextMenuData data;
data.mouse_position = selected_frame->View()->ContentsToViewport(
@@ -420,8 +420,8 @@ void ContextMenuClientImpl::ClearContextMenu() {
if (!selected_frame)
return;
- WebLocalFrameImpl* selected_web_frame =
- WebLocalFrameImpl::FromFrame(selected_frame);
+ WebLocalFrameBase* selected_web_frame =
+ WebLocalFrameBase::FromFrame(selected_frame);
selected_web_frame->ClearContextMenuNode();
}

Powered by Google App Engine
This is Rietveld 408576698