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>&, | |
tkent
2013/08/20 01:09:45
We should add comments about arguments.
keishi
2013/08/23 15:14:22
Done.
| |
210 const WebVector<WebString>&) { return 0; } | |
211 | |
205 // This method returns immediately after showing the dialog. When the | 212 // This method returns immediately after showing the dialog. When the |
206 // dialog is closed, it should call the WebFileChooserCompletion to | 213 // dialog is closed, it should call the WebFileChooserCompletion to |
207 // pass the results of the dialog. Returns false if | 214 // pass the results of the dialog. Returns false if |
208 // WebFileChooseCompletion will never be called. | 215 // WebFileChooseCompletion will never be called. |
209 virtual bool runFileChooser(const WebFileChooserParams&, | 216 virtual bool runFileChooser(const WebFileChooserParams&, |
210 WebFileChooserCompletion*) { return false; } | 217 WebFileChooserCompletion*) { return false; } |
211 | 218 |
212 // Ask users to choose date/time for the specified parameters. When a user | 219 // Ask users to choose date/time for the specified parameters. When a user |
213 // chooses a value, an implementation of this function should call | 220 // chooses a value, an implementation of this function should call |
214 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 221 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
391 // Informs the browser that the draggable regions have been updated. | 398 // Informs the browser that the draggable regions have been updated. |
392 virtual void draggableRegionsChanged() { } | 399 virtual void draggableRegionsChanged() { } |
393 | 400 |
394 protected: | 401 protected: |
395 ~WebViewClient() { } | 402 ~WebViewClient() { } |
396 }; | 403 }; |
397 | 404 |
398 } // namespace WebKit | 405 } // namespace WebKit |
399 | 406 |
400 #endif | 407 #endif |
OLD | NEW |