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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 const OpenURLParams& params); | 85 const OpenURLParams& params); |
86 | 86 |
87 // Called to inform the delegate that the WebContents's navigation state | 87 // Called to inform the delegate that the WebContents's navigation state |
88 // changed. The |changed_flags| indicates the parts of the navigation state | 88 // changed. The |changed_flags| indicates the parts of the navigation state |
89 // that have been updated. | 89 // that have been updated. |
90 virtual void NavigationStateChanged(WebContents* source, | 90 virtual void NavigationStateChanged(WebContents* source, |
91 InvalidateTypes changed_flags) {} | 91 InvalidateTypes changed_flags) {} |
92 | 92 |
93 // Called to inform the delegate that the WebContent's visible SSL state (as | 93 // Called to inform the delegate that the WebContent's visible SSL state (as |
94 // defined by SSLStatus) changed. | 94 // defined by SSLStatus) changed. |
95 virtual void VisibleSSLStateChanged(const WebContents* source) {} | 95 virtual void VisibleSSLStateChanged(WebContents* source) {} |
96 | 96 |
97 // Creates a new tab with the already-created WebContents 'new_contents'. | 97 // Creates a new tab with the already-created WebContents 'new_contents'. |
98 // The window for the added contents should be reparented correctly when this | 98 // The window for the added contents should be reparented correctly when this |
99 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold | 99 // method returns. If |disposition| is NEW_POPUP, |initial_rect| should hold |
100 // the initial position and size. If |was_blocked| is non-nullptr, then | 100 // the initial position and size. If |was_blocked| is non-nullptr, then |
101 // |*was_blocked| will be set to true if the popup gets blocked, and left | 101 // |*was_blocked| will be set to true if the popup gets blocked, and left |
102 // unchanged otherwise. | 102 // unchanged otherwise. |
103 virtual void AddNewContents(WebContents* source, | 103 virtual void AddNewContents(WebContents* source, |
104 WebContents* new_contents, | 104 WebContents* new_contents, |
105 WindowOpenDisposition disposition, | 105 WindowOpenDisposition disposition, |
(...skipping 406 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 |