| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); | 104 virtual bool ShouldTransferNavigation(bool is_main_frame_navigation); |
| 105 | 105 |
| 106 // Called to inform the delegate that the WebContents's navigation state | 106 // Called to inform the delegate that the WebContents's navigation state |
| 107 // changed. The |changed_flags| indicates the parts of the navigation state | 107 // changed. The |changed_flags| indicates the parts of the navigation state |
| 108 // that have been updated. | 108 // that have been updated. |
| 109 virtual void NavigationStateChanged(WebContents* source, | 109 virtual void NavigationStateChanged(WebContents* source, |
| 110 InvalidateTypes changed_flags) {} | 110 InvalidateTypes changed_flags) {} |
| 111 | 111 |
| 112 // Called to inform the delegate that the WebContent's visible SSL state (as | 112 // Called to inform the delegate that the WebContent's visible SSL state (as |
| 113 // defined by SSLStatus) changed. | 113 // defined by SSLStatus) changed. |
| 114 virtual void VisibleSSLStateChanged(const WebContents* source) {} | 114 virtual void VisibleSSLStateChanged(WebContents* source) {} |
| 115 | 115 |
| 116 // Creates a new tab with the already-created WebContents 'new_contents'. | 116 // Creates a new tab with the already-created WebContents 'new_contents'. |
| 117 // The window for the added contents should be reparented correctly when this | 117 // The window for the added contents should be reparented correctly when this |
| 118 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold | 118 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold |
| 119 // the initial position and size. If |was_blocked| is non-nullptr, then | 119 // the initial position and size. If |was_blocked| is non-nullptr, then |
| 120 // |*was_blocked| will be set to true if the popup gets blocked, and left | 120 // |*was_blocked| will be set to true if the popup gets blocked, and left |
| 121 // unchanged otherwise. | 121 // unchanged otherwise. |
| 122 virtual void AddNewContents(WebContents* source, | 122 virtual void AddNewContents(WebContents* source, |
| 123 WebContents* new_contents, | 123 WebContents* new_contents, |
| 124 WindowOpenDisposition disposition, | 124 WindowOpenDisposition disposition, |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 // Called when |this| is no longer the WebContentsDelegate for |source|. | 551 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 552 void Detach(WebContents* source); | 552 void Detach(WebContents* source); |
| 553 | 553 |
| 554 // The WebContents that this is currently a delegate for. | 554 // The WebContents that this is currently a delegate for. |
| 555 std::set<WebContents*> attached_contents_; | 555 std::set<WebContents*> attached_contents_; |
| 556 }; | 556 }; |
| 557 | 557 |
| 558 } // namespace content | 558 } // namespace content |
| 559 | 559 |
| 560 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 560 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |