| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |