OLD | NEW |
---|---|
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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
192 // Returns true if the keyboard event was handled by the embedder, | 192 // Returns true if the keyboard event was handled by the embedder, |
193 // indicating that the default action should be suppressed. | 193 // indicating that the default action should be suppressed. |
194 virtual bool handleCurrentKeyboardEvent() { return false; } | 194 virtual bool handleCurrentKeyboardEvent() { return false; } |
195 | 195 |
196 // Dialogs ------------------------------------------------------------- | 196 // Dialogs ------------------------------------------------------------- |
197 | 197 |
198 // This method opens the color chooser and returns a new WebColorChooser | 198 // This method opens the color chooser and returns a new WebColorChooser |
199 // instance. If there is a WebColorChooser already from the last time this | 199 // instance. If there is a WebColorChooser already from the last time this |
200 // was called, it ends the color chooser by calling endChooser, and replaces | 200 // was called, it ends the color chooser by calling endChooser, and replaces |
201 // it with the new one. | 201 // it with the new one. |
202 | |
203 // FIXME: Should be removed when the chromium side change lands. | |
202 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, | 204 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, |
203 const WebColor&) { return 0; } | 205 const WebColor&) { return 0; } |
204 | 206 |
207 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, | |
208 const WebColor&, | |
209 const WebVector<WebColor>&) { return 0; } | |
tkent
2013/08/16 02:21:03
Don't we pass suggestion labels in addition to sug
keishi
2013/08/19 13:48:18
We probably won't use it for the first version(bec
| |
210 | |
205 // This method returns immediately after showing the dialog. When the | 211 // This method returns immediately after showing the dialog. When the |
206 // dialog is closed, it should call the WebFileChooserCompletion to | 212 // dialog is closed, it should call the WebFileChooserCompletion to |
207 // pass the results of the dialog. Returns false if | 213 // pass the results of the dialog. Returns false if |
208 // WebFileChooseCompletion will never be called. | 214 // WebFileChooseCompletion will never be called. |
209 virtual bool runFileChooser(const WebFileChooserParams&, | 215 virtual bool runFileChooser(const WebFileChooserParams&, |
210 WebFileChooserCompletion*) { return false; } | 216 WebFileChooserCompletion*) { return false; } |
211 | 217 |
212 // Ask users to choose date/time for the specified parameters. When a user | 218 // Ask users to choose date/time for the specified parameters. When a user |
213 // chooses a value, an implementation of this function should call | 219 // chooses a value, an implementation of this function should call |
214 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 220 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
395 // Informs the browser that the draggable regions have been updated. | 401 // Informs the browser that the draggable regions have been updated. |
396 virtual void draggableRegionsChanged() { } | 402 virtual void draggableRegionsChanged() { } |
397 | 403 |
398 protected: | 404 protected: |
399 ~WebViewClient() { } | 405 ~WebViewClient() { } |
400 }; | 406 }; |
401 | 407 |
402 } // namespace WebKit | 408 } // namespace WebKit |
403 | 409 |
404 #endif | 410 #endif |
OLD | NEW |