| 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 #ifndef CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 10 #ifndef CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 void CloseAll(); | 112 void CloseAll(); |
| 113 | 113 |
| 114 // Sets this object up to delete itself. | 114 // Sets this object up to delete itself. |
| 115 void Destroy(); | 115 void Destroy(); |
| 116 | 116 |
| 117 // Message called when a BlockedPopupContainer should move itself to the | 117 // Message called when a BlockedPopupContainer should move itself to the |
| 118 // bottom right corner of our parent view. | 118 // bottom right corner of our parent view. |
| 119 void RepositionBlockedPopupContainer(); | 119 void RepositionBlockedPopupContainer(); |
| 120 | 120 |
| 121 // Returns the TabContents for the blocked popup |index|. | 121 // Returns the TabContents for the blocked popup |index|. |
| 122 TabContents* GetTabContentsAt(size_t index); | 122 TabContents* GetTabContentsAt(size_t index) const; |
| 123 | 123 |
| 124 // Returns the names of hosts showing popups. | 124 // Returns the names of hosts showing popups. |
| 125 std::vector<std::string> GetHosts() const; | 125 std::vector<std::string> GetHosts() const; |
| 126 | 126 |
| 127 // Deletes all local state. | 127 // Deletes all local state. |
| 128 void ClearData(); | 128 void ClearData(); |
| 129 | 129 |
| 130 // Called to force this container to never show itself again. | 130 // Called to force this container to never show itself again. |
| 131 void set_dismissed() { has_been_dismissed_ = true; } | 131 void set_dismissed() { has_been_dismissed_ = true; } |
| 132 | 132 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 264 // Information about all popup hosts. | 264 // Information about all popup hosts. |
| 265 PopupHosts popup_hosts_; | 265 PopupHosts popup_hosts_; |
| 266 | 266 |
| 267 // Our platform specific view. | 267 // Our platform specific view. |
| 268 BlockedPopupContainerView* view_; | 268 BlockedPopupContainerView* view_; |
| 269 | 269 |
| 270 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 270 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 271 }; | 271 }; |
| 272 | 272 |
| 273 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 273 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| OLD | NEW |