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