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

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

Issue 798723004: Fix copying from interstitial pages on OSX. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 #if defined(OS_ANDROID) 711 #if defined(OS_ANDROID)
712 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const { 712 RenderViewHost* InterstitialPageImpl::GetRenderViewHost() const {
713 return render_view_host_; 713 return render_view_host_;
714 } 714 }
715 #endif 715 #endif
716 716
717 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { 717 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() {
718 return delegate_.get(); 718 return delegate_.get();
719 } 719 }
720 720
721 WebContents* InterstitialPageImpl::GetAsWebContents() {
722 return web_contents_;
723 }
724
721 void InterstitialPageImpl::DontCreateViewForTesting() { 725 void InterstitialPageImpl::DontCreateViewForTesting() {
722 create_view_ = false; 726 create_view_ = false;
723 } 727 }
724 728
725 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { 729 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const {
726 return gfx::Rect(); 730 return gfx::Rect();
727 } 731 }
728 732
729 void InterstitialPageImpl::CreateNewWindow( 733 void InterstitialPageImpl::CreateNewWindow(
730 int render_process_id, 734 int render_process_id,
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
913 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( 917 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted(
914 const LoadCommittedDetails& load_details) { 918 const LoadCommittedDetails& load_details) {
915 interstitial_->OnNavigatingAwayOrTabClosing(); 919 interstitial_->OnNavigatingAwayOrTabClosing();
916 } 920 }
917 921
918 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { 922 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() {
919 interstitial_->OnNavigatingAwayOrTabClosing(); 923 interstitial_->OnNavigatingAwayOrTabClosing();
920 } 924 }
921 925
922 } // namespace content 926 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698