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

Side by Side Diff: public/web/WebViewClient.h

Issue 23236002: Prepare for color input datalist support on Android (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "WebPopupType.h" 43 #include "WebPopupType.h"
44 #include "WebTextAffinity.h" 44 #include "WebTextAffinity.h"
45 #include "WebTextDirection.h" 45 #include "WebTextDirection.h"
46 #include "WebWidgetClient.h" 46 #include "WebWidgetClient.h"
47 47
48 namespace blink { 48 namespace blink {
49 49
50 class WebAXObject; 50 class WebAXObject;
51 class WebColorChooser; 51 class WebColorChooser;
52 class WebColorChooserClient; 52 class WebColorChooserClient;
53 class WebColorSuggestion;
53 class WebCompositorOutputSurface; 54 class WebCompositorOutputSurface;
54 class WebDateTimeChooserCompletion; 55 class WebDateTimeChooserCompletion;
55 class WebDragData; 56 class WebDragData;
56 class WebElement; 57 class WebElement;
57 class WebExternalPopupMenu; 58 class WebExternalPopupMenu;
58 class WebExternalPopupMenuClient; 59 class WebExternalPopupMenuClient;
59 class WebFileChooserCompletion; 60 class WebFileChooserCompletion;
60 class WebFrame; 61 class WebFrame;
61 class WebGeolocationClient; 62 class WebGeolocationClient;
62 class WebGeolocationService; 63 class WebGeolocationService;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // 178 //
178 // Returns true if the keyboard event was handled by the embedder, 179 // Returns true if the keyboard event was handled by the embedder,
179 // indicating that the default action should be suppressed. 180 // indicating that the default action should be suppressed.
180 virtual bool handleCurrentKeyboardEvent() { return false; } 181 virtual bool handleCurrentKeyboardEvent() { return false; }
181 182
182 // Dialogs ------------------------------------------------------------- 183 // Dialogs -------------------------------------------------------------
183 184
184 // This method opens the color chooser and returns a new WebColorChooser 185 // This method opens the color chooser and returns a new WebColorChooser
185 // instance. If there is a WebColorChooser already from the last time this 186 // instance. If there is a WebColorChooser already from the last time this
186 // was called, it ends the color chooser by calling endChooser, and replaces 187 // was called, it ends the color chooser by calling endChooser, and replaces
187 // it with the new one. 188 // it with the new one. The given list of suggestions can be used to show a
189 // simple interface with a limited set of choices.
190
191 // FIXME: Should be removed when the chromium side change lands.
188 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, 192 virtual WebColorChooser* createColorChooser(WebColorChooserClient*,
189 const WebColor&) { return 0; } 193 const WebColor&) { return 0; }
190 194
195 virtual WebColorChooser* createColorChooser(
196 WebColorChooserClient*,
197 const WebColor&,
198 const WebVector<WebColorSuggestion>&) { return 0; }
199
191 // This method returns immediately after showing the dialog. When the 200 // This method returns immediately after showing the dialog. When the
192 // dialog is closed, it should call the WebFileChooserCompletion to 201 // dialog is closed, it should call the WebFileChooserCompletion to
193 // pass the results of the dialog. Returns false if 202 // pass the results of the dialog. Returns false if
194 // WebFileChooseCompletion will never be called. 203 // WebFileChooseCompletion will never be called.
195 virtual bool runFileChooser(const WebFileChooserParams&, 204 virtual bool runFileChooser(const WebFileChooserParams&,
196 WebFileChooserCompletion*) { return false; } 205 WebFileChooserCompletion*) { return false; }
197 206
198 // Ask users to choose date/time for the specified parameters. When a user 207 // Ask users to choose date/time for the specified parameters. When a user
199 // chooses a value, an implementation of this function should call 208 // chooses a value, an implementation of this function should call
200 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the 209 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 // Informs the browser that the draggable regions have been updated. 392 // Informs the browser that the draggable regions have been updated.
384 virtual void draggableRegionsChanged() { } 393 virtual void draggableRegionsChanged() { }
385 394
386 protected: 395 protected:
387 ~WebViewClient() { } 396 ~WebViewClient() { }
388 }; 397 };
389 398
390 } // namespace blink 399 } // namespace blink
391 400
392 #endif 401 #endif
OLDNEW
« public/web/WebColorSuggestion.h ('K') | « public/web/WebColorSuggestion.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698