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

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

Issue 2867073005: Provide downcasts for WebLocalFrameBase using DEFINE_TYPE_CASTS macro. (Closed)
Patch Set: 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/WebFrameWidgetBase.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
index b8be11284a4d07159487069aa4f28d56d3fff3fb..20da5c42e59bed4386cc362d95d6d8b4db3b8bad 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetBase.cpp
@@ -8,6 +8,7 @@
#include "core/exported/WebViewBase.h"
#include "core/frame/FrameView.h"
#include "core/frame/VisualViewport.h"
+#include "core/frame/WebLocalFrameBase.h"
#include "core/input/EventHandler.h"
#include "core/page/DragActions.h"
#include "core/page/DragController.h"
@@ -20,7 +21,6 @@
#include "public/web/WebDocument.h"
#include "public/web/WebWidgetClient.h"
#include "web/WebInputEventConversion.h"
-#include "web/WebLocalFrameImpl.h"
namespace blink {
@@ -29,7 +29,7 @@ namespace {
// Helper to get LocalFrame* from WebLocalFrame*.
// TODO(dcheng): This should be moved into WebLocalFrame.
LocalFrame* ToCoreFrame(WebLocalFrame* frame) {
- return ToWebLocalFrameImpl(frame)->GetFrame();
+ return ToWebLocalFrameBase(frame)->GetFrame();
}
} // namespace
@@ -228,7 +228,7 @@ WebPoint WebFrameWidgetBase::ViewportToRootFrame(
}
WebViewBase* WebFrameWidgetBase::View() const {
- return ToWebLocalFrameImpl(LocalRoot())->ViewImpl();
+ return ToWebLocalFrameBase(LocalRoot())->ViewImpl();
}
Page* WebFrameWidgetBase::GetPage() const {
@@ -280,7 +280,7 @@ void WebFrameWidgetBase::PointerLockMouseEvent(const WebInputEvent& event) {
if (GetPage()) {
WebMouseEvent transformed_event = TransformWebMouseEvent(
- ToWebLocalFrameImpl(LocalRoot())->GetFrameView(), mouse_event);
+ ToWebLocalFrameBase(LocalRoot())->GetFrameView(), mouse_event);
GetPage()->GetPointerLockController().DispatchLockedMouseEvent(
transformed_event, event_type);
}
« no previous file with comments | « third_party/WebKit/Source/web/WebFrameContentDumper.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698