| 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 // NavigationController has configured its pending entry, but it has not yet | 314 // NavigationController has configured its pending entry, but it has not yet |
| 315 // been committed. | 315 // been committed. |
| 316 virtual void DidNavigateToPendingEntry(WebContents* source) {} | 316 virtual void DidNavigateToPendingEntry(WebContents* source) {} |
| 317 | 317 |
| 318 // Returns a pointer to a service to manage JavaScript dialogs. May return | 318 // Returns a pointer to a service to manage JavaScript dialogs. May return |
| 319 // NULL in which case dialogs aren't shown. | 319 // NULL in which case dialogs aren't shown. |
| 320 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); | 320 virtual JavaScriptDialogManager* GetJavaScriptDialogManager(); |
| 321 | 321 |
| 322 // Called when color chooser should open. Returns the opened color chooser. | 322 // Called when color chooser should open. Returns the opened color chooser. |
| 323 // Ownership of the returned pointer is transferred to the caller. | 323 // Ownership of the returned pointer is transferred to the caller. |
| 324 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents, | 324 virtual ColorChooser* OpenColorChooser(WebContents* web_contents, |
| 325 int color_chooser_id, | 325 SkColor color); |
| 326 SkColor color); | |
| 327 | |
| 328 virtual void DidEndColorChooser() {} | |
| 329 | 326 |
| 330 // Called when a file selection is to be done. | 327 // Called when a file selection is to be done. |
| 331 virtual void RunFileChooser(WebContents* web_contents, | 328 virtual void RunFileChooser(WebContents* web_contents, |
| 332 const FileChooserParams& params) {} | 329 const FileChooserParams& params) {} |
| 333 | 330 |
| 334 // Request to enumerate a directory. This is equivalent to running the file | 331 // Request to enumerate a directory. This is equivalent to running the file |
| 335 // chooser in directory-enumeration mode and having the user select the given | 332 // chooser in directory-enumeration mode and having the user select the given |
| 336 // directory. | 333 // directory. |
| 337 virtual void EnumerateDirectory(WebContents* web_contents, | 334 virtual void EnumerateDirectory(WebContents* web_contents, |
| 338 int request_id, | 335 int request_id, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // Called when |this| is no longer the WebContentsDelegate for |source|. | 427 // Called when |this| is no longer the WebContentsDelegate for |source|. |
| 431 void Detach(WebContents* source); | 428 void Detach(WebContents* source); |
| 432 | 429 |
| 433 // The WebContents that this is currently a delegate for. | 430 // The WebContents that this is currently a delegate for. |
| 434 std::set<WebContents*> attached_contents_; | 431 std::set<WebContents*> attached_contents_; |
| 435 }; | 432 }; |
| 436 | 433 |
| 437 } // namespace content | 434 } // namespace content |
| 438 | 435 |
| 439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 436 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
| OLD | NEW |