| 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);
|
| }
|
| }
|
|
|
|
|