Index: third_party/WebKit/Source/core/editing/FrameSelection.cpp |
diff --git a/third_party/WebKit/Source/core/editing/FrameSelection.cpp b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
index 91eca913ae3b82fd15416100e242ca674fee44bd..70a9ab1b05290a44c3e6d36c00a40c5efb94d939 100644 |
--- a/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
+++ b/third_party/WebKit/Source/core/editing/FrameSelection.cpp |
@@ -62,6 +62,7 @@ |
#include "core/html/HTMLFrameElementBase.h" |
#include "core/html/HTMLInputElement.h" |
#include "core/html/HTMLSelectElement.h" |
+#include "core/input/ContextMenuAllowedScope.h" |
#include "core/input/EventHandler.h" |
#include "core/layout/HitTestRequest.h" |
#include "core/layout/HitTestResult.h" |
@@ -715,6 +716,11 @@ void FrameSelection::SelectAll(EUserTriggered user_triggered) { |
SelectFrameElementInParentIfFullySelected(); |
// TODO(editing-dev): Should we pass in user_triggered? |
NotifyTextControlOfSelectionChange(kUserTriggered); |
+ { |
+ ContextMenuAllowedScope scope; |
+ frame_->GetEventHandler().SendContextMenuEventForTouchSelection( |
+ kMenuSourceSelectAll); |
+ } |
} |
bool FrameSelection::SetSelectedRange(const EphemeralRange& range, |