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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 | 329 |
330 // Notification that the tab is no longer hung. | 330 // Notification that the tab is no longer hung. |
331 virtual void RendererResponsive(WebContents* source) {} | 331 virtual void RendererResponsive(WebContents* source) {} |
332 | 332 |
333 // Notification that a worker associated with this tab has crashed. | 333 // Notification that a worker associated with this tab has crashed. |
334 virtual void WorkerCrashed(WebContents* source) {} | 334 virtual void WorkerCrashed(WebContents* source) {} |
335 | 335 |
336 // Invoked when a main fram navigation occurs. | 336 // Invoked when a main fram navigation occurs. |
337 virtual void DidNavigateMainFramePostCommit(WebContents* source) {} | 337 virtual void DidNavigateMainFramePostCommit(WebContents* source) {} |
338 | 338 |
339 // Invoked when navigating to a pending entry. When invoked the | |
340 // NavigationController has configured its pending entry, but it has not yet | |
341 // been committed. | |
342 virtual void DidNavigateToPendingEntry(WebContents* source) {} | |
343 | |
344 // Returns a pointer to a service to manage JavaScript dialogs. May return | 339 // Returns a pointer to a service to manage JavaScript dialogs. May return |
345 // nullptr in which case dialogs aren't shown. | 340 // nullptr in which case dialogs aren't shown. |
346 virtual JavaScriptDialogManager* GetJavaScriptDialogManager( | 341 virtual JavaScriptDialogManager* GetJavaScriptDialogManager( |
347 WebContents* source); | 342 WebContents* source); |
348 | 343 |
349 // Called when color chooser should open. Returns the opened color chooser. | 344 // Called when color chooser should open. Returns the opened color chooser. |
350 // Returns nullptr if we failed to open the color chooser (e.g. when there is | 345 // Returns nullptr if we failed to open the color chooser (e.g. when there is |
351 // a ColorChooserDialog already open on Windows). Ownership of the returned | 346 // a ColorChooserDialog already open on Windows). Ownership of the returned |
352 // pointer is transferred to the caller. | 347 // pointer is transferred to the caller. |
353 virtual ColorChooser* OpenColorChooser( | 348 virtual ColorChooser* OpenColorChooser( |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 // Called when |this| is no longer the WebContentsDelegate for |source|. | 507 // Called when |this| is no longer the WebContentsDelegate for |source|. |
513 void Detach(WebContents* source); | 508 void Detach(WebContents* source); |
514 | 509 |
515 // The WebContents that this is currently a delegate for. | 510 // The WebContents that this is currently a delegate for. |
516 std::set<WebContents*> attached_contents_; | 511 std::set<WebContents*> attached_contents_; |
517 }; | 512 }; |
518 | 513 |
519 } // namespace content | 514 } // namespace content |
520 | 515 |
521 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 516 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |