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

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

Issue 2785853002: Selection Action mode triggered like a context menu (Closed)
Patch Set: fix rebase 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/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index f7013a5d4e0f4feddd2b386647f890922d744e57..a93169a11d4a01e6d206587dc0788011099c044c 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -840,9 +840,13 @@ WebInputEventResult WebViewImpl::HandleGestureEvent(
}
}
- event_result =
- MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent(
- targeted_event);
+ {
+ ContextMenuAllowedScope scope;
+ event_result =
+ MainFrameImpl()->GetFrame()->GetEventHandler().HandleGestureEvent(
+ targeted_event);
+ }
+
if (page_popup_ && last_hidden_page_popup_ &&
page_popup_->HasSamePopupClient(last_hidden_page_popup_.Get())) {
// The tap triggered a page popup that is the same as the one we just
« no previous file with comments | « third_party/WebKit/Source/web/ContextMenuClientImpl.cpp ('k') | third_party/WebKit/public/web/WebMenuSourceType.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698