| OLD | NEW |
| 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 "chrome/browser/ui/blocked_content/blocked_content_container.h" | 5 #include "chrome/browser/ui/blocked_content/blocked_content_container.h" |
| 6 | 6 |
| 7 #include "base/logging.h" |
| 7 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" | 8 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" |
| 8 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 9 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 9 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| 10 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
| 11 | 12 |
| 12 using content::OpenURLParams; | 13 using content::OpenURLParams; |
| 13 using content::WebContents; | 14 using content::WebContents; |
| 14 | 15 |
| 15 // static | 16 // static |
| 16 const size_t BlockedContentContainer::kImpossibleNumberOfPopups = 30; | 17 const size_t BlockedContentContainer::kImpossibleNumberOfPopups = 30; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 bool BlockedContentContainer::ShouldSuppressDialogs() { | 160 bool BlockedContentContainer::ShouldSuppressDialogs() { |
| 160 // Suppress JavaScript dialogs when inside a constrained popup window (because | 161 // Suppress JavaScript dialogs when inside a constrained popup window (because |
| 161 // that activates them and breaks them out of the constrained window jail). | 162 // that activates them and breaks them out of the constrained window jail). |
| 162 return true; | 163 return true; |
| 163 } | 164 } |
| 164 | 165 |
| 165 TabContents* BlockedContentContainer::GetConstrainingTabContents( | 166 TabContents* BlockedContentContainer::GetConstrainingTabContents( |
| 166 TabContents* source) { | 167 TabContents* source) { |
| 167 return owner_; | 168 return owner_; |
| 168 } | 169 } |
| OLD | NEW |