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

Side by Side Diff: chrome/browser/tab_contents/interstitial_page.cc

Issue 6330007: Don't use GetAsTabContents. Send notifications from TabContentsView instead. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/tab_contents/interstitial_page.h" 5 #include "chrome/browser/tab_contents/interstitial_page.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } // namespace 85 } // namespace
86 86
87 class InterstitialPage::InterstitialPageRVHViewDelegate 87 class InterstitialPage::InterstitialPageRVHViewDelegate
88 : public RenderViewHostDelegate::View { 88 : public RenderViewHostDelegate::View {
89 public: 89 public:
90 explicit InterstitialPageRVHViewDelegate(InterstitialPage* page); 90 explicit InterstitialPageRVHViewDelegate(InterstitialPage* page);
91 91
92 // RenderViewHostDelegate::View implementation: 92 // RenderViewHostDelegate::View implementation:
93 virtual void CreateNewWindow( 93 virtual void CreateNewWindow(
94 int route_id, 94 int route_id,
95 WindowContainerType window_container_type, 95 const ViewHostMsg_CreateWindow_Params& params);
96 const string16& frame_name);
97 virtual void CreateNewWidget(int route_id, 96 virtual void CreateNewWidget(int route_id,
98 WebKit::WebPopupType popup_type); 97 WebKit::WebPopupType popup_type);
99 virtual void CreateNewFullscreenWidget(int route_id, 98 virtual void CreateNewFullscreenWidget(int route_id,
100 WebKit::WebPopupType popup_type); 99 WebKit::WebPopupType popup_type);
101 virtual void ShowCreatedWindow(int route_id, 100 virtual void ShowCreatedWindow(int route_id,
102 WindowOpenDisposition disposition, 101 WindowOpenDisposition disposition,
103 const gfx::Rect& initial_pos, 102 const gfx::Rect& initial_pos,
104 bool user_gesture); 103 bool user_gesture);
105 virtual void ShowCreatedWidget(int route_id, 104 virtual void ShowCreatedWidget(int route_id,
106 const gfx::Rect& initial_pos); 105 const gfx::Rect& initial_pos);
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 return iter->second; 586 return iter->second;
588 } 587 }
589 588
590 InterstitialPage::InterstitialPageRVHViewDelegate:: 589 InterstitialPage::InterstitialPageRVHViewDelegate::
591 InterstitialPageRVHViewDelegate(InterstitialPage* page) 590 InterstitialPageRVHViewDelegate(InterstitialPage* page)
592 : interstitial_page_(page) { 591 : interstitial_page_(page) {
593 } 592 }
594 593
595 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWindow( 594 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWindow(
596 int route_id, 595 int route_id,
597 WindowContainerType window_container_type, 596 const ViewHostMsg_CreateWindow_Params& params) {
598 const string16& frame_name) {
599 NOTREACHED() << "InterstitialPage does not support showing popups yet."; 597 NOTREACHED() << "InterstitialPage does not support showing popups yet.";
600 } 598 }
601 599
602 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWidget( 600 void InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewWidget(
603 int route_id, WebKit::WebPopupType popup_type) { 601 int route_id, WebKit::WebPopupType popup_type) {
604 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet."; 602 NOTREACHED() << "InterstitialPage does not support showing drop-downs yet.";
605 } 603 }
606 604
607 void 605 void
608 InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewFullscreenWidget( 606 InterstitialPage::InterstitialPageRVHViewDelegate::CreateNewFullscreenWidget(
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 725
728 void InterstitialPage::UpdateInspectorSetting(const std::string& key, 726 void InterstitialPage::UpdateInspectorSetting(const std::string& key,
729 const std::string& value) { 727 const std::string& value) {
730 RenderViewHostDelegateHelper::UpdateInspectorSetting( 728 RenderViewHostDelegateHelper::UpdateInspectorSetting(
731 tab_->profile(), key, value); 729 tab_->profile(), key, value);
732 } 730 }
733 731
734 void InterstitialPage::ClearInspectorSettings() { 732 void InterstitialPage::ClearInspectorSettings() {
735 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile()); 733 RenderViewHostDelegateHelper::ClearInspectorSettings(tab_->profile());
736 } 734 }
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/background_contents.cc ('k') | chrome/browser/tab_contents/tab_contents_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698