OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/blocked_content_container.h" | 5 #include "chrome/browser/blocked_content_container.h" |
6 | 6 |
7 #include "chrome/browser/tab_contents/tab_contents.h" | 7 #include "chrome/browser/tab_contents/tab_contents.h" |
8 #include "gfx/rect.h" | 8 #include "ui/gfx/rect.h" |
9 | 9 |
10 // static | 10 // static |
11 const size_t BlockedContentContainer::kImpossibleNumberOfPopups = 30; | 11 const size_t BlockedContentContainer::kImpossibleNumberOfPopups = 30; |
12 | 12 |
13 struct BlockedContentContainer::BlockedContent { | 13 struct BlockedContentContainer::BlockedContent { |
14 BlockedContent(TabContents* tab_contents, | 14 BlockedContent(TabContents* tab_contents, |
15 WindowOpenDisposition disposition, | 15 WindowOpenDisposition disposition, |
16 const gfx::Rect& bounds, | 16 const gfx::Rect& bounds, |
17 bool user_gesture) | 17 bool user_gesture) |
18 : tab_contents(tab_contents), | 18 : tab_contents(tab_contents), |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // Assume everything added is a popup. This may turn out to be wrong, but | 147 // Assume everything added is a popup. This may turn out to be wrong, but |
148 // callers don't cache this information so it should be fine if the value ends | 148 // callers don't cache this information so it should be fine if the value ends |
149 // up changing. | 149 // up changing. |
150 return true; | 150 return true; |
151 } | 151 } |
152 | 152 |
153 TabContents* BlockedContentContainer::GetConstrainingContents( | 153 TabContents* BlockedContentContainer::GetConstrainingContents( |
154 TabContents* source) { | 154 TabContents* source) { |
155 return owner_; | 155 return owner_; |
156 } | 156 } |
OLD | NEW |