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

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

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/web_contents/interstitial_page_impl.h" 5 #include "content/browser/web_contents/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 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 } 621 }
622 622
623 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { 623 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() {
624 return delegate_.get(); 624 return delegate_.get();
625 } 625 }
626 626
627 void InterstitialPageImpl::DontCreateViewForTesting() { 627 void InterstitialPageImpl::DontCreateViewForTesting() {
628 create_view_ = false; 628 create_view_ = false;
629 } 629 }
630 630
631 content::ViewType InterstitialPageImpl::GetRenderViewType() const {
632 return content::VIEW_TYPE_INTERSTITIAL_PAGE;
633 }
634
635 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { 631 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const {
636 return gfx::Rect(); 632 return gfx::Rect();
637 } 633 }
638 634
639 void InterstitialPageImpl::Disable() { 635 void InterstitialPageImpl::Disable() {
640 enabled_ = false; 636 enabled_ = false;
641 } 637 }
642 638
643 void InterstitialPageImpl::TakeActionOnResourceDispatcher( 639 void InterstitialPageImpl::TakeActionOnResourceDispatcher(
644 ResourceRequestAction action) { 640 ResourceRequestAction action) {
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 if (!web_contents->GetViewDelegate()) 745 if (!web_contents->GetViewDelegate())
750 return; 746 return;
751 747
752 web_contents->GetViewDelegate()->TakeFocus(reverse); 748 web_contents->GetViewDelegate()->TakeFocus(reverse);
753 } 749 }
754 750
755 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply( 751 void InterstitialPageImpl::InterstitialPageRVHViewDelegate::OnFindReply(
756 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 752 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
757 int active_match_ordinal, bool final_update) { 753 int active_match_ordinal, bool final_update) {
758 } 754 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698