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 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 // Invoked when navigating to a pending entry. When invoked the | 309 // Invoked when navigating to a pending entry. When invoked the |
310 // NavigationController has configured its pending entry, but it has not yet | 310 // NavigationController has configured its pending entry, but it has not yet |
311 // been committed. | 311 // been committed. |
312 virtual void DidNavigateToPendingEntry(WebContents* source) {} | 312 virtual void DidNavigateToPendingEntry(WebContents* source) {} |
313 | 313 |
314 // Returns a pointer to a service to create JavaScript dialogs. May return | 314 // Returns a pointer to a service to create JavaScript dialogs. May return |
315 // NULL in which case dialogs aren't shown. | 315 // NULL in which case dialogs aren't shown. |
316 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator(); | 316 virtual JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
317 | 317 |
318 // Called when color chooser should open. Returns the opened color chooser. | 318 // Called when color chooser should open. Returns the opened color chooser. |
319 // ownership of the returned pointer is transferred to the caller. | |
Peter Beverloo
2012/11/23 17:55:48
nit: Capital O.
Miguel Garcia
2012/11/26 11:35:10
Done.
| |
319 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents, | 320 virtual content::ColorChooser* OpenColorChooser(WebContents* web_contents, |
320 int color_chooser_id, | 321 int color_chooser_id, |
321 SkColor color); | 322 SkColor color); |
322 | 323 |
323 virtual void DidEndColorChooser() {} | 324 virtual void DidEndColorChooser() {} |
324 | 325 |
325 // Called when a file selection is to be done. | 326 // Called when a file selection is to be done. |
326 virtual void RunFileChooser(WebContents* web_contents, | 327 virtual void RunFileChooser(WebContents* web_contents, |
327 const FileChooserParams& params) {} | 328 const FileChooserParams& params) {} |
328 | 329 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
430 // Called when |this| is no longer the WebContentsDelegate for |source|. | 431 // Called when |this| is no longer the WebContentsDelegate for |source|. |
431 void Detach(WebContents* source); | 432 void Detach(WebContents* source); |
432 | 433 |
433 // The WebContents that this is currently a delegate for. | 434 // The WebContents that this is currently a delegate for. |
434 std::set<WebContents*> attached_contents_; | 435 std::set<WebContents*> attached_contents_; |
435 }; | 436 }; |
436 | 437 |
437 } // namespace content | 438 } // namespace content |
438 | 439 |
439 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 440 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |