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

Unified Diff: content/renderer/render_view_impl.cc

Issue 351683002: Adds link disambiguation popup support to Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: responding to cpu's feedback Created 6 years, 5 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: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index 23e0b1d8215d38dbc9e9431d9eb3a1f6a2d07520..6c5761478f0d382b97dc8fa01173a5d6cf663290 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -204,7 +204,6 @@
#include "content/renderer/android/email_detector.h"
#include "content/renderer/android/phone_number_detector.h"
#include "net/android/network_library.h"
-#include "skia/ext/platform_canvas.h"
#include "third_party/WebKit/public/platform/WebFloatPoint.h"
#include "third_party/WebKit/public/platform/WebFloatRect.h"
#include "third_party/WebKit/public/web/WebHitTestResult.h"
@@ -220,6 +219,11 @@
#include "skia/ext/skia_utils_mac.h"
#endif
+// Support for link disambiguation popup.
+#if defined(OS_ANDROID) || defined(OS_WIN)
+#include "skia/ext/platform_canvas.h"
+#endif
+
#if defined(ENABLE_PLUGINS)
#include "content/renderer/npapi/webplugin_delegate_proxy.h"
#include "content/renderer/pepper/pepper_plugin_instance_impl.h"
@@ -4118,7 +4122,7 @@ void RenderViewImpl::OnDisownOpener() {
main_frame->setOpener(NULL);
}
-#if defined(OS_ANDROID)
+#if defined(OS_ANDROID) || defined(OS_WIN)
bool RenderViewImpl::didTapMultipleTargets(
const blink::WebGestureEvent& event,
const WebVector<WebRect>& target_rects) {
@@ -4196,7 +4200,7 @@ bool RenderViewImpl::didTapMultipleTargets(
return handled;
}
-#endif
+#endif // defined(OS_ANDROID) || defined(OS_WIN)
unsigned RenderViewImpl::GetLocalSessionHistoryLengthForTesting() const {
return history_list_length_;

Powered by Google App Engine
This is Rietveld 408576698