OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebFrameClient_h | 31 #ifndef WebFrameClient_h |
32 #define WebFrameClient_h | 32 #define WebFrameClient_h |
33 | 33 |
34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
35 #include "WebAXObject.h" | 35 #include "WebAXObject.h" |
36 #include "WebDOMMessageEvent.h" | 36 #include "WebDOMMessageEvent.h" |
37 #include "WebDataSource.h" | 37 #include "WebDataSource.h" |
| 38 #include "WebFileChooserParams.h" |
38 #include "WebFrame.h" | 39 #include "WebFrame.h" |
39 #include "WebFrameOwnerProperties.h" | 40 #include "WebFrameOwnerProperties.h" |
40 #include "WebHistoryCommitType.h" | 41 #include "WebHistoryCommitType.h" |
41 #include "WebHistoryItem.h" | 42 #include "WebHistoryItem.h" |
42 #include "WebIconURL.h" | 43 #include "WebIconURL.h" |
43 #include "WebNavigationPolicy.h" | 44 #include "WebNavigationPolicy.h" |
44 #include "WebNavigationType.h" | 45 #include "WebNavigationType.h" |
45 #include "WebNavigatorContentUtilsClient.h" | 46 #include "WebNavigatorContentUtilsClient.h" |
46 #include "WebSandboxFlags.h" | 47 #include "WebSandboxFlags.h" |
47 #include "WebTextDirection.h" | 48 #include "WebTextDirection.h" |
(...skipping 23 matching lines...) Expand all Loading... |
71 class WebBluetooth; | 72 class WebBluetooth; |
72 class WebColorChooser; | 73 class WebColorChooser; |
73 class WebColorChooserClient; | 74 class WebColorChooserClient; |
74 class WebContentDecryptionModule; | 75 class WebContentDecryptionModule; |
75 class WebCookieJar; | 76 class WebCookieJar; |
76 class WebCString; | 77 class WebCString; |
77 class WebDataSource; | 78 class WebDataSource; |
78 class WebEncryptedMediaClient; | 79 class WebEncryptedMediaClient; |
79 class WebExternalPopupMenu; | 80 class WebExternalPopupMenu; |
80 class WebExternalPopupMenuClient; | 81 class WebExternalPopupMenuClient; |
| 82 class WebFileChooserCompletion; |
81 class WebFormElement; | 83 class WebFormElement; |
82 class WebInstalledAppClient; | 84 class WebInstalledAppClient; |
83 class WebMediaPlayer; | 85 class WebMediaPlayer; |
84 class WebMediaPlayerClient; | 86 class WebMediaPlayerClient; |
85 class WebMediaPlayerEncryptedMediaClient; | 87 class WebMediaPlayerEncryptedMediaClient; |
86 class WebMediaPlayerSource; | 88 class WebMediaPlayerSource; |
87 class WebMediaSession; | 89 class WebMediaSession; |
88 class WebMediaStream; | 90 class WebMediaStream; |
89 class WebMIDIClient; | 91 class WebMIDIClient; |
90 class WebNotificationPermissionCallback; | 92 class WebNotificationPermissionCallback; |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
431 // the input field. | 433 // the input field. |
432 virtual bool runModalPromptDialog( | 434 virtual bool runModalPromptDialog( |
433 const WebString& message, const WebString& defaultValue, | 435 const WebString& message, const WebString& defaultValue, |
434 WebString* actualValue) { return false; } | 436 WebString* actualValue) { return false; } |
435 | 437 |
436 // Displays a modal confirmation dialog with OK/Cancel choices, where 'OK' | 438 // Displays a modal confirmation dialog with OK/Cancel choices, where 'OK' |
437 // means that it is okay to proceed with closing the view. Returns true if | 439 // means that it is okay to proceed with closing the view. Returns true if |
438 // the user selects 'OK' or false otherwise. | 440 // the user selects 'OK' or false otherwise. |
439 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } | 441 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } |
440 | 442 |
| 443 // This method returns immediately after showing the dialog. When the |
| 444 // dialog is closed, it should call the WebFileChooserCompletion to |
| 445 // pass the results of the dialog. Returns false if |
| 446 // WebFileChooseCompletion will never be called. |
| 447 virtual bool runFileChooser( |
| 448 const blink::WebFileChooserParams& params, |
| 449 WebFileChooserCompletion* chooserCompletion) { return false; } |
441 | 450 |
442 // UI ------------------------------------------------------------------ | 451 // UI ------------------------------------------------------------------ |
443 | 452 |
444 // Shows a context menu with commands relevant to a specific element on | 453 // Shows a context menu with commands relevant to a specific element on |
445 // the given frame. Additional context data is supplied. | 454 // the given frame. Additional context data is supplied. |
446 virtual void showContextMenu(const WebContextMenuData&) { } | 455 virtual void showContextMenu(const WebContextMenuData&) { } |
447 | 456 |
448 // Low-level resource notifications ------------------------------------ | 457 // Low-level resource notifications ------------------------------------ |
449 | 458 |
450 // A request is about to be sent out, and the client may modify it. Request | 459 // A request is about to be sent out, and the client may modify it. Request |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 // Mojo ---------------------------------------------------------------- | 714 // Mojo ---------------------------------------------------------------- |
706 virtual ServiceRegistry* serviceRegistry() { return nullptr; } | 715 virtual ServiceRegistry* serviceRegistry() { return nullptr; } |
707 | 716 |
708 protected: | 717 protected: |
709 virtual ~WebFrameClient() { } | 718 virtual ~WebFrameClient() { } |
710 }; | 719 }; |
711 | 720 |
712 } // namespace blink | 721 } // namespace blink |
713 | 722 |
714 #endif | 723 #endif |
OLD | NEW |