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

Side by Side Diff: third_party/WebKit/public/web/WebViewClient.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: Fixes based on reviews. 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
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef WebViewClient_h 31 #ifndef WebViewClient_h
32 #define WebViewClient_h 32 #define WebViewClient_h
33 33
34 #include "../platform/WebDragOperation.h" 34 #include "../platform/WebDragOperation.h"
35 #include "../platform/WebPageVisibilityState.h" 35 #include "../platform/WebPageVisibilityState.h"
36 #include "../platform/WebString.h" 36 #include "../platform/WebString.h"
37 #include "WebAXEnums.h" 37 #include "WebAXEnums.h"
38 #include "WebContentDetectionResult.h" 38 #include "WebContentDetectionResult.h"
39 #include "WebFileChooserCompletion.h"
40 #include "WebFileChooserParams.h"
41 #include "WebFrame.h" 39 #include "WebFrame.h"
42 #include "WebPopupType.h" 40 #include "WebPopupType.h"
43 #include "WebTextDirection.h" 41 #include "WebTextDirection.h"
44 #include "WebWidgetClient.h" 42 #include "WebWidgetClient.h"
45 43
46 namespace blink { 44 namespace blink {
47 45
48 class WebAXObject; 46 class WebAXObject;
49 class WebDateTimeChooserCompletion; 47 class WebDateTimeChooserCompletion;
50 class WebDragData; 48 class WebDragData;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // when the default action for the current keyboard event is not 125 // when the default action for the current keyboard event is not
128 // suppressed by the page, to give the embedder a chance to handle 126 // suppressed by the page, to give the embedder a chance to handle
129 // the keyboard event specially. 127 // the keyboard event specially.
130 // 128 //
131 // Returns true if the keyboard event was handled by the embedder, 129 // Returns true if the keyboard event was handled by the embedder,
132 // indicating that the default action should be suppressed. 130 // indicating that the default action should be suppressed.
133 virtual bool handleCurrentKeyboardEvent() { return false; } 131 virtual bool handleCurrentKeyboardEvent() { return false; }
134 132
135 // Dialogs ------------------------------------------------------------- 133 // Dialogs -------------------------------------------------------------
136 134
137 // This method returns immediately after showing the dialog. When the
138 // dialog is closed, it should call the WebFileChooserCompletion to
139 // pass the results of the dialog. Returns false if
140 // WebFileChooseCompletion will never be called.
141 virtual bool runFileChooser(const WebFileChooserParams&,
142 WebFileChooserCompletion*) { return false; }
143
144 // Ask users to choose date/time for the specified parameters. When a user 135 // Ask users to choose date/time for the specified parameters. When a user
145 // chooses a value, an implementation of this function should call 136 // chooses a value, an implementation of this function should call
146 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the 137 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the
147 // implementation opened date/time chooser UI successfully, it should return 138 // implementation opened date/time chooser UI successfully, it should return
148 // true. This function is used only if ExternalDateTimeChooser is used. 139 // true. This function is used only if ExternalDateTimeChooser is used.
149 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; } 140 virtual bool openDateTimeChooser(const WebDateTimeChooserParams&, WebDateTim eChooserCompletion*) { return false; }
150 141
151 // Show a notification popup for the specified form validation messages 142 // Show a notification popup for the specified form validation messages
152 // besides the anchor rectangle. An implementation of this function should 143 // besides the anchor rectangle. An implementation of this function should
153 // not hide the popup until hideValidationMessage call. 144 // not hide the popup until hideValidationMessage call.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 WebRect windowRect() override { return WebRect(); } 292 WebRect windowRect() override { return WebRect(); }
302 WebRect windowResizerRect() override { return WebRect(); } 293 WebRect windowResizerRect() override { return WebRect(); }
303 294
304 protected: 295 protected:
305 ~WebViewClient() { } 296 ~WebViewClient() { }
306 }; 297 };
307 298
308 } // namespace blink 299 } // namespace blink
309 300
310 #endif 301 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebFrameClient.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698