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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 virtual WebContents* OpenURLFromTab(WebContents* source, | 82 virtual WebContents* OpenURLFromTab(WebContents* source, |
83 const OpenURLParams& params); | 83 const OpenURLParams& params); |
84 | 84 |
85 // Called to inform the delegate that the WebContents's navigation state | 85 // Called to inform the delegate that the WebContents's navigation state |
86 // changed. The |changed_flags| indicates the parts of the navigation state | 86 // changed. The |changed_flags| indicates the parts of the navigation state |
87 // that have been updated, and is any combination of the | 87 // that have been updated, and is any combination of the |
88 // |WebContents::InvalidateTypes| bits. | 88 // |WebContents::InvalidateTypes| bits. |
89 virtual void NavigationStateChanged(const WebContents* source, | 89 virtual void NavigationStateChanged(const WebContents* source, |
90 unsigned changed_flags) {} | 90 unsigned changed_flags) {} |
91 | 91 |
| 92 // Called to inform the delegate that the WebContent's visible SSL state (as |
| 93 // defined by SSLStatus) changed. |
| 94 virtual void VisibleSSLStateChanged(const WebContents* source) {} |
| 95 |
92 // Creates a new tab with the already-created WebContents 'new_contents'. | 96 // Creates a new tab with the already-created WebContents 'new_contents'. |
93 // The window for the added contents should be reparented correctly when this | 97 // The window for the added contents should be reparented correctly when this |
94 // method returns. If |disposition| is NEW_POPUP, |initial_pos| should hold | 98 // method returns. If |disposition| is NEW_POPUP, |initial_pos| should hold |
95 // the initial position. If |was_blocked| is non-NULL, then |*was_blocked| | 99 // the initial position. If |was_blocked| is non-NULL, then |*was_blocked| |
96 // will be set to true if the popup gets blocked, and left unchanged | 100 // will be set to true if the popup gets blocked, and left unchanged |
97 // otherwise. | 101 // otherwise. |
98 virtual void AddNewContents(WebContents* source, | 102 virtual void AddNewContents(WebContents* source, |
99 WebContents* new_contents, | 103 WebContents* new_contents, |
100 WindowOpenDisposition disposition, | 104 WindowOpenDisposition disposition, |
101 const gfx::Rect& initial_pos, | 105 const gfx::Rect& initial_pos, |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 // Called when |this| is no longer the WebContentsDelegate for |source|. | 483 // Called when |this| is no longer the WebContentsDelegate for |source|. |
480 void Detach(WebContents* source); | 484 void Detach(WebContents* source); |
481 | 485 |
482 // The WebContents that this is currently a delegate for. | 486 // The WebContents that this is currently a delegate for. |
483 std::set<WebContents*> attached_contents_; | 487 std::set<WebContents*> attached_contents_; |
484 }; | 488 }; |
485 | 489 |
486 } // namespace content | 490 } // namespace content |
487 | 491 |
488 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 492 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |