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

Side by Side Diff: chrome/browser/ui/blocked_content/blocked_content_container.cc

Issue 8253002: Move PageTransition into content namespace. While I'm touching all these files, I've also updated... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/ui/blocked_content/blocked_content_container.h" 5 #include "chrome/browser/ui/blocked_content/blocked_content_container.h"
6 6
7 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 7 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" 8 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
9 #include "content/browser/tab_contents/tab_contents.h" 9 #include "content/browser/tab_contents/tab_contents.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 // Overridden from TabContentsDelegate: 108 // Overridden from TabContentsDelegate:
109 109
110 // TODO(adriansc): Remove this method once refactoring changed all call sites. 110 // TODO(adriansc): Remove this method once refactoring changed all call sites.
111 TabContents* BlockedContentContainer::OpenURLFromTab( 111 TabContents* BlockedContentContainer::OpenURLFromTab(
112 TabContents* source, 112 TabContents* source,
113 const GURL& url, 113 const GURL& url,
114 const GURL& referrer, 114 const GURL& referrer,
115 WindowOpenDisposition disposition, 115 WindowOpenDisposition disposition,
116 PageTransition::Type transition) { 116 content::PageTransition transition) {
117 return owner_->tab_contents()->OpenURL(OpenURLParams(url, 117 return owner_->tab_contents()->OpenURL(OpenURLParams(url,
118 referrer, 118 referrer,
119 disposition, 119 disposition,
120 transition)); 120 transition));
121 } 121 }
122 122
123 TabContents* BlockedContentContainer::OpenURLFromTab( 123 TabContents* BlockedContentContainer::OpenURLFromTab(
124 TabContents* source, 124 TabContents* source,
125 const OpenURLParams& params) { 125 const OpenURLParams& params) {
126 return owner_->tab_contents()->OpenURL(params); 126 return owner_->tab_contents()->OpenURL(params);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 bool BlockedContentContainer::ShouldSuppressDialogs() { 170 bool BlockedContentContainer::ShouldSuppressDialogs() {
171 // Suppress JavaScript dialogs when inside a constrained popup window (because 171 // Suppress JavaScript dialogs when inside a constrained popup window (because
172 // that activates them and breaks them out of the constrained window jail). 172 // that activates them and breaks them out of the constrained window jail).
173 return true; 173 return true;
174 } 174 }
175 175
176 TabContentsWrapper* BlockedContentContainer::GetConstrainingContentsWrapper( 176 TabContentsWrapper* BlockedContentContainer::GetConstrainingContentsWrapper(
177 TabContentsWrapper* source) { 177 TabContentsWrapper* source) {
178 return owner_; 178 return owner_;
179 } 179 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/blocked_content/blocked_content_container.h ('k') | chrome/browser/ui/browser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698