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 14 matching lines...) Expand all Loading... |
25 class GURL; | 25 class GURL; |
26 | 26 |
27 namespace base { | 27 namespace base { |
28 class ListValue; | 28 class ListValue; |
29 } | 29 } |
30 | 30 |
31 namespace content { | 31 namespace content { |
32 class BrowserContext; | 32 class BrowserContext; |
33 class ColorChooser; | 33 class ColorChooser; |
34 class DownloadItem; | 34 class DownloadItem; |
35 class JavaScriptDialogCreator; | 35 class JavaScriptDialogManager; |
36 class RenderViewHost; | 36 class RenderViewHost; |
37 class WebContents; | 37 class WebContents; |
38 class WebContentsImpl; | 38 class WebContentsImpl; |
39 class WebIntentsDispatcher; | 39 class WebIntentsDispatcher; |
40 struct ContextMenuParams; | 40 struct ContextMenuParams; |
41 struct FileChooserParams; | 41 struct FileChooserParams; |
42 struct NativeWebKeyboardEvent; | 42 struct NativeWebKeyboardEvent; |
43 struct SSLStatus; | 43 struct SSLStatus; |
44 } | 44 } |
45 | 45 |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
308 virtual void WorkerCrashed(WebContents* source) {} | 308 virtual void WorkerCrashed(WebContents* source) {} |
309 | 309 |
310 // Invoked when a main fram navigation occurs. | 310 // Invoked when a main fram navigation occurs. |
311 virtual void DidNavigateMainFramePostCommit(WebContents* source) {} | 311 virtual void DidNavigateMainFramePostCommit(WebContents* source) {} |
312 | 312 |
313 // Invoked when navigating to a pending entry. When invoked the | 313 // Invoked when navigating to a pending entry. When invoked the |
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 create 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 JavaScriptDialogCreator* GetJavaScriptDialogCreator(); | 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 content::ColorChooser* OpenColorChooser(WebContents* web_contents, |
325 int color_chooser_id, | 325 int color_chooser_id, |
326 SkColor color); | 326 SkColor color); |
327 | 327 |
328 virtual void DidEndColorChooser() {} | 328 virtual void DidEndColorChooser() {} |
329 | 329 |
330 // Called when a file selection is to be done. | 330 // Called when a file selection is to be done. |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 // Called when |this| is no longer the WebContentsDelegate for |source|. | 444 // Called when |this| is no longer the WebContentsDelegate for |source|. |
445 void Detach(WebContents* source); | 445 void Detach(WebContents* source); |
446 | 446 |
447 // The WebContents that this is currently a delegate for. | 447 // The WebContents that this is currently a delegate for. |
448 std::set<WebContents*> attached_contents_; | 448 std::set<WebContents*> attached_contents_; |
449 }; | 449 }; |
450 | 450 |
451 } // namespace content | 451 } // namespace content |
452 | 452 |
453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ | 453 #endif // CONTENT_PUBLIC_BROWSER_WEB_CONTENTS_DELEGATE_H_ |
OLD | NEW |