| 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // that have been updated. | 87 // that have been updated. |
| 88 virtual void NavigationStateChanged(WebContents* source, | 88 virtual void NavigationStateChanged(WebContents* source, |
| 89 InvalidateTypes changed_flags) {} | 89 InvalidateTypes changed_flags) {} |
| 90 | 90 |
| 91 // Called to inform the delegate that the WebContent's visible SSL state (as | 91 // Called to inform the delegate that the WebContent's visible SSL state (as |
| 92 // defined by SSLStatus) changed. | 92 // defined by SSLStatus) changed. |
| 93 virtual void VisibleSSLStateChanged(const WebContents* source) {} | 93 virtual void VisibleSSLStateChanged(const WebContents* source) {} |
| 94 | 94 |
| 95 // Creates a new tab with the already-created WebContents 'new_contents'. | 95 // Creates a new tab with the already-created WebContents 'new_contents'. |
| 96 // The window for the added contents should be reparented correctly when this | 96 // The window for the added contents should be reparented correctly when this |
| 97 // method returns. If |disposition| is NEW_POPUP, |initial_pos| should hold | 97 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold |
| 98 // the initial position. If |was_blocked| is non-nullptr, then |*was_blocked| | 98 // the initial position and size. If |was_blocked| is non-nullptr, then |
| 99 // will be set to true if the popup gets blocked, and left unchanged | 99 // |*was_blocked| will be set to true if the popup gets blocked, and left |
| 100 // otherwise. | 100 // unchanged otherwise. |
| 101 virtual void AddNewContents(WebContents* source, | 101 virtual void AddNewContents(WebContents* source, |
| 102 WebContents* new_contents, | 102 WebContents* new_contents, |
| 103 WindowOpenDisposition disposition, | 103 WindowOpenDisposition disposition, |
| 104 const gfx::Rect& initial_pos, | 104 const gfx::Rect& initial_rect, |
| 105 bool user_gesture, | 105 bool user_gesture, |
| 106 bool* was_blocked) {} | 106 bool* was_blocked) {} |
| 107 | 107 |
| 108 // Selects the specified contents, bringing its container to the front. | 108 // Selects the specified contents, bringing its container to the front. |
| 109 virtual void ActivateContents(WebContents* contents) {} | 109 virtual void ActivateContents(WebContents* contents) {} |
| 110 | 110 |
| 111 // Deactivates the specified contents by deactivating its container and | 111 // Deactivates the specified contents by deactivating its container and |
| 112 // potentialy moving it to the back of the Z order. | 112 // potentialy moving it to the back of the Z order. |
| 113 virtual void DeactivateContents(WebContents* contents) {} | 113 virtual void DeactivateContents(WebContents* contents) {} |
| 114 | 114 |
| (...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 512 // Called when |this| is no longer the WebContentsDelegate for |source|. | 512 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 513 void Detach(WebContents* source); | 513 void Detach(WebContents* source); |
| 514 | 514 |
| 515 // The WebContents that this is currently a delegate for. | 515 // The WebContents that this is currently a delegate for. |
| 516 std::set<WebContents*> attached_contents_; | 516 std::set<WebContents*> attached_contents_; |
| 517 }; | 517 }; |
| 518 | 518 |
| 519 } // namespace content | 519 } // namespace content |
| 520 | 520 |
| 521 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 521 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |