| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "WebPopupType.h" | 44 #include "WebPopupType.h" |
| 45 #include "WebTextAffinity.h" | 45 #include "WebTextAffinity.h" |
| 46 #include "WebTextDirection.h" | 46 #include "WebTextDirection.h" |
| 47 #include "WebWidgetClient.h" | 47 #include "WebWidgetClient.h" |
| 48 | 48 |
| 49 namespace WebKit { | 49 namespace WebKit { |
| 50 | 50 |
| 51 class WebAccessibilityObject; | 51 class WebAccessibilityObject; |
| 52 class WebColorChooser; | 52 class WebColorChooser; |
| 53 class WebColorChooserClient; | 53 class WebColorChooserClient; |
| 54 class WebColorSuggestion; |
| 54 class WebCompositorOutputSurface; | 55 class WebCompositorOutputSurface; |
| 55 class WebDateTimeChooserCompletion; | 56 class WebDateTimeChooserCompletion; |
| 56 class WebDeviceOrientationClient; | 57 class WebDeviceOrientationClient; |
| 57 class WebDragData; | 58 class WebDragData; |
| 58 class WebElement; | 59 class WebElement; |
| 59 class WebExternalPopupMenu; | 60 class WebExternalPopupMenu; |
| 60 class WebExternalPopupMenuClient; | 61 class WebExternalPopupMenuClient; |
| 61 class WebFileChooserCompletion; | 62 class WebFileChooserCompletion; |
| 62 class WebFrame; | 63 class WebFrame; |
| 63 class WebGeolocationClient; | 64 class WebGeolocationClient; |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // | 192 // |
| 192 // Returns true if the keyboard event was handled by the embedder, | 193 // Returns true if the keyboard event was handled by the embedder, |
| 193 // indicating that the default action should be suppressed. | 194 // indicating that the default action should be suppressed. |
| 194 virtual bool handleCurrentKeyboardEvent() { return false; } | 195 virtual bool handleCurrentKeyboardEvent() { return false; } |
| 195 | 196 |
| 196 // Dialogs ------------------------------------------------------------- | 197 // Dialogs ------------------------------------------------------------- |
| 197 | 198 |
| 198 // This method opens the color chooser and returns a new WebColorChooser | 199 // This method opens the color chooser and returns a new WebColorChooser |
| 199 // instance. If there is a WebColorChooser already from the last time this | 200 // 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 | 201 // was called, it ends the color chooser by calling endChooser, and replaces |
| 201 // it with the new one. | 202 // it with the new one. The given list of suggestions can be used to show a |
| 203 // simple interface with a limited set of choices. |
| 204 |
| 205 // FIXME: Should be removed when the chromium side change lands. |
| 202 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, | 206 virtual WebColorChooser* createColorChooser(WebColorChooserClient*, |
| 203 const WebColor&) { return 0; } | 207 const WebColor&) { return 0; } |
| 204 | 208 |
| 209 virtual WebColorChooser* createColorChooser( |
| 210 WebColorChooserClient*, |
| 211 const WebColor&, |
| 212 const WebVector<WebColorSuggestion>&) { return 0; } |
| 213 |
| 205 // This method returns immediately after showing the dialog. When the | 214 // This method returns immediately after showing the dialog. When the |
| 206 // dialog is closed, it should call the WebFileChooserCompletion to | 215 // dialog is closed, it should call the WebFileChooserCompletion to |
| 207 // pass the results of the dialog. Returns false if | 216 // pass the results of the dialog. Returns false if |
| 208 // WebFileChooseCompletion will never be called. | 217 // WebFileChooseCompletion will never be called. |
| 209 virtual bool runFileChooser(const WebFileChooserParams&, | 218 virtual bool runFileChooser(const WebFileChooserParams&, |
| 210 WebFileChooserCompletion*) { return false; } | 219 WebFileChooserCompletion*) { return false; } |
| 211 | 220 |
| 212 // Ask users to choose date/time for the specified parameters. When a user | 221 // Ask users to choose date/time for the specified parameters. When a user |
| 213 // chooses a value, an implementation of this function should call | 222 // chooses a value, an implementation of this function should call |
| 214 // WebDateTimeChooserCompletion::didChooseValue or didCancelChooser. If the | 223 // 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. | 400 // Informs the browser that the draggable regions have been updated. |
| 392 virtual void draggableRegionsChanged() { } | 401 virtual void draggableRegionsChanged() { } |
| 393 | 402 |
| 394 protected: | 403 protected: |
| 395 ~WebViewClient() { } | 404 ~WebViewClient() { } |
| 396 }; | 405 }; |
| 397 | 406 |
| 398 } // namespace WebKit | 407 } // namespace WebKit |
| 399 | 408 |
| 400 #endif | 409 #endif |
| OLD | NEW |