Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: third_party/WebKit/public/web/WebFrameClient.h

Issue 2050623005: Move file chooser from RenderView(Host) to RenderFrame(Host). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some cleanup. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // the input field. 432 // the input field.
432 virtual bool runModalPromptDialog( 433 virtual bool runModalPromptDialog(
433 const WebString& message, const WebString& defaultValue, 434 const WebString& message, const WebString& defaultValue,
434 WebString* actualValue) { return false; } 435 WebString* actualValue) { return false; }
435 436
436 // Displays a modal confirmation dialog with OK/Cancel choices, where 'OK' 437 // 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 438 // means that it is okay to proceed with closing the view. Returns true if
438 // the user selects 'OK' or false otherwise. 439 // the user selects 'OK' or false otherwise.
439 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; } 440 virtual bool runModalBeforeUnloadDialog(bool isReload) { return true; }
440 441
442 // This method returns immediately after showing the dialog. When the
443 // dialog is closed, it should call the WebFileChooserCompletion to
444 // pass the results of the dialog. Returns false if
445 // WebFileChooseCompletion will never be called.
446 virtual bool runFileChooser(
447 const blink::WebFileChooserParams& params,
448 WebFileChooserCompletion* chooserCompletion) { return false; }
dcheng 2016/06/10 21:43:35 Technically I think you need to include or forward
nasko 2016/06/10 22:07:50 Done.
441 449
442 // UI ------------------------------------------------------------------ 450 // UI ------------------------------------------------------------------
443 451
444 // Shows a context menu with commands relevant to a specific element on 452 // Shows a context menu with commands relevant to a specific element on
445 // the given frame. Additional context data is supplied. 453 // the given frame. Additional context data is supplied.
446 virtual void showContextMenu(const WebContextMenuData&) { } 454 virtual void showContextMenu(const WebContextMenuData&) { }
447 455
448 // Low-level resource notifications ------------------------------------ 456 // Low-level resource notifications ------------------------------------
449 457
450 // A request is about to be sent out, and the client may modify it. Request 458 // 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
705 // Mojo ---------------------------------------------------------------- 713 // Mojo ----------------------------------------------------------------
706 virtual ServiceRegistry* serviceRegistry() { return nullptr; } 714 virtual ServiceRegistry* serviceRegistry() { return nullptr; }
707 715
708 protected: 716 protected:
709 virtual ~WebFrameClient() { } 717 virtual ~WebFrameClient() { }
710 }; 718 };
711 719
712 } // namespace blink 720 } // namespace blink
713 721
714 #endif 722 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698