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

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

Issue 2848513002: Introduce the abstract class WebViewBase, to decouple WebViewImpl. (Closed)
Patch Set: Fix typo. Created 3 years, 8 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/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 7156fc237344bbe7bf1e894415c5b10ebd382c55..5cb5f0877bd765fc03d22d855cac2daff5b0626b 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -283,6 +283,10 @@ WebViewImpl* WebViewImpl::Create(WebViewClient* client,
return AdoptRef(new WebViewImpl(client, visibility_state)).LeakRef();
}
+const WebInputEvent* WebViewBase::CurrentInputEvent() {
+ return WebViewImpl::CurrentInputEvent();
+}
+
void WebView::SetUseExternalPopupMenus(bool use_external_popup_menus) {
g_should_use_external_popup_menus = use_external_popup_menus;
}
@@ -1657,6 +1661,11 @@ WebInputEventResult WebViewImpl::SendContextMenuEvent(
.SendContextMenuEventForKey(nullptr);
}
}
+#else
+WebInputEventResult WebViewImpl::SendContextMenuEvent(
+ const WebKeyboardEvent& event) {
+ return WebInputEventResult::kNotHandled;
+}
#endif
void WebViewImpl::ShowContextMenuAtPoint(float x,
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/ActiveConnectionThrottlingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698