Commit 0ee7e0bd authored by jorgegil@google.com's avatar jorgegil@google.com Committed by Commit Bot

Add support for Quick Menu with Smart Text Selection actions

Implements TouchSelectionMenuClient functions required to request Smart
Text Selection actions and to open the Quick Menu on cross-process
subframes.

Bug: 1020334
Change-Id: Iba3e6139db266a3ed1ea5dfbbf49c83ea7d5f3b1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1954405Reviewed-by: default avatarDavid Jacobo <djacobo@chromium.org>
Reviewed-by: default avatarTimothy Dresser <tdresser@chromium.org>
Commit-Queue: Jorge Gil <jorgegil@google.com>
Auto-Submit: Jorge Gil <jorgegil@google.com>
Cr-Commit-Position: refs/heads/master@{#723553}
parent b79cc946
......@@ -199,13 +199,11 @@ void TouchSelectionControllerClientChildFrame::RunContextMenu() {
}
bool TouchSelectionControllerClientChildFrame::ShouldShowQuickMenu() {
NOTREACHED();
return false;
return true;
}
base::string16 TouchSelectionControllerClientChildFrame::GetSelectedText() {
NOTREACHED();
return base::string16();
return rwhv_->GetSelectedText();
}
} // namespace content
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment