diff options
author | lgarron <lgarron@chromium.org> | 2015-07-10 00:39:56 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-10 07:41:48 +0000 |
commit | 145aaa8a7762909442a684415333ebce4f65a229 (patch) | |
tree | ced809b5822f9a1d00d2cd42c5a2c84ce1dc2456 /content/browser/frame_host/interstitial_page_impl.cc | |
parent | cd131d403bc15f9a7aca116b14d08268a3c6aded (diff) | |
download | chromium_src-145aaa8a7762909442a684415333ebce4f65a229.zip chromium_src-145aaa8a7762909442a684415333ebce4f65a229.tar.gz chromium_src-145aaa8a7762909442a684415333ebce4f65a229.tar.bz2 |
Route 'Select All' OS method through RenderWidgetHostDelegate.
This allows Cmd-A / "Select All" to be used on SSL interstitials on OSX.
BUG=507416
Review URL: https://codereview.chromium.org/1212373009
Cr-Commit-Position: refs/heads/master@{#338248}
Diffstat (limited to 'content/browser/frame_host/interstitial_page_impl.cc')
-rw-r--r-- | content/browser/frame_host/interstitial_page_impl.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/content/browser/frame_host/interstitial_page_impl.cc b/content/browser/frame_host/interstitial_page_impl.cc index a42a802..f622283 100644 --- a/content/browser/frame_host/interstitial_page_impl.cc +++ b/content/browser/frame_host/interstitial_page_impl.cc @@ -459,6 +459,16 @@ void InterstitialPageImpl::Paste() { RecordAction(base::UserMetricsAction("Paste")); } +void InterstitialPageImpl::SelectAll() { + FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); + if (!focused_node) + return; + + focused_node->current_frame_host()->Send(new InputMsg_SelectAll( + focused_node->current_frame_host()->GetRoutingID())); + RecordAction(base::UserMetricsAction("SelectAll")); +} + RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { return rvh_delegate_view_.get(); } |