| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 // Defines the public interface for the blocked popup notifications. This | 5 // Defines the public interface for the blocked popup notifications. This |
| 6 // interface should only be used by TabContents. Users and subclasses of | 6 // interface should only be used by TabContents. Users and subclasses of |
| 7 // TabContents should use the appropriate methods on TabContents to access | 7 // TabContents should use the appropriate methods on TabContents to access |
| 8 // information about blocked popups. | 8 // information about blocked popups. |
| 9 | 9 |
| 10 // TODO(idanan): Rename class to BlockedContentContainer. | 10 // TODO(idanan): Rename class to BlockedContentContainer. |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 // Ignored; BlockedPopupContainer doesn't display a toolbar. | 190 // Ignored; BlockedPopupContainer doesn't display a toolbar. |
| 191 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } | 191 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating) { } |
| 192 | 192 |
| 193 // Ignored; BlockedPopupContainer doesn't display a bookmarking star. | 193 // Ignored; BlockedPopupContainer doesn't display a bookmarking star. |
| 194 virtual void URLStarredChanged(TabContents* source, bool starred) { } | 194 virtual void URLStarredChanged(TabContents* source, bool starred) { } |
| 195 | 195 |
| 196 // Ignored; BlockedPopupContainer doesn't display a URL bar. | 196 // Ignored; BlockedPopupContainer doesn't display a URL bar. |
| 197 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } | 197 virtual void UpdateTargetURL(TabContents* source, const GURL& url) { } |
| 198 | 198 |
| 199 // Ignored; BlockedPopupContainer doesn't display child windows. |
| 200 virtual void ChildWindowsChanged(TabContents* source) { } |
| 201 |
| 199 // A number larger than the internal popup count on the Renderer; meant for | 202 // A number larger than the internal popup count on the Renderer; meant for |
| 200 // preventing a compromised renderer from exhausting GDI memory by spawning | 203 // preventing a compromised renderer from exhausting GDI memory by spawning |
| 201 // infinite windows. | 204 // infinite windows. |
| 202 static const size_t kImpossibleNumberOfPopups; | 205 static const size_t kImpossibleNumberOfPopups; |
| 203 | 206 |
| 204 protected: | 207 protected: |
| 205 struct BlockedPopup { | 208 struct BlockedPopup { |
| 206 BlockedPopup(TabContents* tab_contents, | 209 BlockedPopup(TabContents* tab_contents, |
| 207 const gfx::Rect& bounds, | 210 const gfx::Rect& bounds, |
| 208 const std::string& host) | 211 const std::string& host) |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 308 // Our platform specific view. | 311 // Our platform specific view. |
| 309 BlockedPopupContainerView* view_; | 312 BlockedPopupContainerView* view_; |
| 310 | 313 |
| 311 // The profile for the browser associated with the container. | 314 // The profile for the browser associated with the container. |
| 312 Profile* profile_; | 315 Profile* profile_; |
| 313 | 316 |
| 314 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 317 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 315 }; | 318 }; |
| 316 | 319 |
| 317 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 320 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| OLD | NEW |