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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 1212373009: Route 'Select All' OS method through RenderWidgetHostDelegate. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move TearDownTestClipboard back to InterstitialPageImplTest.Paste Created 5 years, 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 void InterstitialPageImpl::Paste() { 452 void InterstitialPageImpl::Paste() {
453 FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame(); 453 FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame();
454 if (!focused_node) 454 if (!focused_node)
455 return; 455 return;
456 456
457 focused_node->current_frame_host()->Send( 457 focused_node->current_frame_host()->Send(
458 new InputMsg_Paste(focused_node->current_frame_host()->GetRoutingID())); 458 new InputMsg_Paste(focused_node->current_frame_host()->GetRoutingID()));
459 RecordAction(base::UserMetricsAction("Paste")); 459 RecordAction(base::UserMetricsAction("Paste"));
460 } 460 }
461 461
462 void InterstitialPageImpl::SelectAll() {
463 FrameTreeNode* focused_node = frame_tree_.GetFocusedFrame();
464 if (!focused_node)
465 return;
466
467 focused_node->current_frame_host()->Send(new InputMsg_SelectAll(
468 focused_node->current_frame_host()->GetRoutingID()));
469 RecordAction(base::UserMetricsAction("SelectAll"));
470 }
471
462 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { 472 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() {
463 return rvh_delegate_view_.get(); 473 return rvh_delegate_view_.get();
464 } 474 }
465 475
466 const GURL& InterstitialPageImpl::GetMainFrameLastCommittedURL() const { 476 const GURL& InterstitialPageImpl::GetMainFrameLastCommittedURL() const {
467 return url_; 477 return url_;
468 } 478 }
469 479
470 void InterstitialPageImpl::RenderViewTerminated( 480 void InterstitialPageImpl::RenderViewTerminated(
471 RenderViewHost* render_view_host, 481 RenderViewHost* render_view_host,
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
930 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( 940 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted(
931 const LoadCommittedDetails& load_details) { 941 const LoadCommittedDetails& load_details) {
932 interstitial_->OnNavigatingAwayOrTabClosing(); 942 interstitial_->OnNavigatingAwayOrTabClosing();
933 } 943 }
934 944
935 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { 945 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() {
936 interstitial_->OnNavigatingAwayOrTabClosing(); 946 interstitial_->OnNavigatingAwayOrTabClosing();
937 } 947 }
938 948
939 } // namespace content 949 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/interstitial_page_impl.h ('k') | content/browser/frame_host/interstitial_page_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698