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

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

Issue 2864833002: Tapping handle shouldn't select misspelled word (Closed)
Patch Set: Fixed naming 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
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a8985f8f7f0d01d24468aca6107ea7b50e36f4ae..dccdd580812372ac051595045ea69a697319dcc3 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -135,6 +135,7 @@
#include "public/platform/WebFloatPoint.h"
#include "public/platform/WebGestureCurve.h"
#include "public/platform/WebImage.h"
+#include "public/platform/WebInputEvent.h"
#include "public/platform/WebLayerTreeView.h"
#include "public/platform/WebTextInputInfo.h"
#include "public/platform/WebURLRequest.h"
@@ -151,6 +152,7 @@
#include "public/web/WebInputElement.h"
#include "public/web/WebMeaningfulLayout.h"
#include "public/web/WebMediaPlayerAction.h"
+#include "public/web/WebMenuSourceType.h"
#include "public/web/WebNode.h"
#include "public/web/WebPlugin.h"
#include "public/web/WebPluginAction.h"
@@ -3495,16 +3497,18 @@ void WebViewImpl::PerformCustomContextMenuAction(unsigned action) {
page_->GetContextMenuController().ClearContextMenu();
}
-void WebViewImpl::ShowContextMenu() {
+void WebViewImpl::ShowContextMenu(WebMenuSourceType source_type) {
if (!GetPage())
return;
GetPage()->GetContextMenuController().ClearContextMenu();
{
ContextMenuAllowedScope scope;
- if (LocalFrame* focused_frame =
- ToLocalFrame(GetPage()->GetFocusController().FocusedOrMainFrame()))
- focused_frame->GetEventHandler().ShowNonLocatedContextMenu(nullptr);
+ if (LocalFrame* focused_frame = ToLocalFrame(
+ GetPage()->GetFocusController().FocusedOrMainFrame())) {
+ focused_frame->GetEventHandler().ShowNonLocatedContextMenu(nullptr,
+ source_type);
+ }
}
}
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.h ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698