| 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 // 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 virtual void NavigationStateChanged(const TabContents* source, | 53 virtual void NavigationStateChanged(const TabContents* source, |
| 54 unsigned changed_flags) {} | 54 unsigned changed_flags) {} |
| 55 | 55 |
| 56 // Forwards AddNewContents to our |owner_|. | 56 // Forwards AddNewContents to our |owner_|. |
| 57 virtual void AddNewContents(TabContents* source, | 57 virtual void AddNewContents(TabContents* source, |
| 58 TabContents* new_contents, | 58 TabContents* new_contents, |
| 59 WindowOpenDisposition disposition, | 59 WindowOpenDisposition disposition, |
| 60 const gfx::Rect& initial_position, | 60 const gfx::Rect& initial_position, |
| 61 bool user_gesture); | 61 bool user_gesture); |
| 62 | 62 |
| 63 // Ignore activation/deactivation requests from the TabContents we're | 63 // Ignore activation requests from the TabContents we're blocking. |
| 64 // blocking. | |
| 65 virtual void ActivateContents(TabContents* contents) {} | 64 virtual void ActivateContents(TabContents* contents) {} |
| 66 virtual void DeactivateContents(TabContents* contents) {} | |
| 67 | 65 |
| 68 // Ignored; BlockedPopupContainer doesn't display a throbber. | 66 // Ignored; BlockedPopupContainer doesn't display a throbber. |
| 69 virtual void LoadingStateChanged(TabContents* source) {} | 67 virtual void LoadingStateChanged(TabContents* source) {} |
| 70 | 68 |
| 71 // Removes |source| from our internal list of blocked popups. | 69 // Removes |source| from our internal list of blocked popups. |
| 72 virtual void CloseContents(TabContents* source); | 70 virtual void CloseContents(TabContents* source); |
| 73 | 71 |
| 74 // Changes the opening rectangle associated with |source|. | 72 // Changes the opening rectangle associated with |source|. |
| 75 virtual void MoveContents(TabContents* source, const gfx::Rect& new_bounds); | 73 virtual void MoveContents(TabContents* source, const gfx::Rect& new_bounds); |
| 76 | 74 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 102 // The TabContents that owns and constrains this BlockedPopupContainer. | 100 // The TabContents that owns and constrains this BlockedPopupContainer. |
| 103 TabContents* owner_; | 101 TabContents* owner_; |
| 104 | 102 |
| 105 // Information about all blocked popups. | 103 // Information about all blocked popups. |
| 106 BlockedPopups blocked_popups_; | 104 BlockedPopups blocked_popups_; |
| 107 | 105 |
| 108 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); | 106 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockedPopupContainer); |
| 109 }; | 107 }; |
| 110 | 108 |
| 111 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ | 109 #endif // CHROME_BROWSER_BLOCKED_POPUP_CONTAINER_H_ |
| OLD | NEW |