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

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

Issue 2905783002: Rename SendContextMenuEventForKey to ShowNonLocatedContextMenu (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
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | no next file » | 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 76ced057fd982bb2b9b1c9d77a91cad6f5414693..8346db9c41648e277e24d8dedd62432c0e0c8911 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1649,7 +1649,7 @@ WebInputEventResult WebViewImpl::SendContextMenuEvent(
focused_element->scrollIntoViewIfNeeded();
return ToLocalFrame(focused_frame)
->GetEventHandler()
- .SendContextMenuEventForKey(nullptr);
+ .ShowNonLocatedContextMenu(nullptr);
}
}
#else
@@ -1681,7 +1681,7 @@ void WebViewImpl::ShowContextMenuForElement(WebElement element) {
ContextMenuAllowedScope scope;
if (LocalFrame* focused_frame =
ToLocalFrame(GetPage()->GetFocusController().FocusedOrMainFrame()))
- focused_frame->GetEventHandler().SendContextMenuEventForKey(
+ focused_frame->GetEventHandler().ShowNonLocatedContextMenu(
element.Unwrap<Element>());
}
}
@@ -3504,7 +3504,7 @@ void WebViewImpl::ShowContextMenu() {
ContextMenuAllowedScope scope;
if (LocalFrame* focused_frame =
ToLocalFrame(GetPage()->GetFocusController().FocusedOrMainFrame()))
- focused_frame->GetEventHandler().SendContextMenuEventForKey(nullptr);
+ focused_frame->GetEventHandler().ShowNonLocatedContextMenu(nullptr);
}
}
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandler.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698