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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 class WebRange; | 72 class WebRange; |
73 class WebSpeechInputController; | 73 class WebSpeechInputController; |
74 class WebSpeechInputListener; | 74 class WebSpeechInputListener; |
75 class WebSpeechRecognizer; | 75 class WebSpeechRecognizer; |
76 class WebStorageNamespace; | 76 class WebStorageNamespace; |
77 class WebURL; | 77 class WebURL; |
78 class WebURLRequest; | 78 class WebURLRequest; |
79 class WebUserMediaClient; | 79 class WebUserMediaClient; |
80 class WebView; | 80 class WebView; |
81 class WebWidget; | 81 class WebWidget; |
| 82 struct WebColorSuggestion; |
82 struct WebConsoleMessage; | 83 struct WebConsoleMessage; |
83 struct WebContextMenuData; | 84 struct WebContextMenuData; |
84 struct WebDateTimeChooserParams; | 85 struct WebDateTimeChooserParams; |
85 struct WebPoint; | 86 struct WebPoint; |
86 struct WebPopupMenuInfo; | 87 struct WebPopupMenuInfo; |
87 struct WebRect; | 88 struct WebRect; |
88 struct WebSize; | 89 struct WebSize; |
89 struct WebWindowFeatures; | 90 struct WebWindowFeatures; |
90 | 91 |
91 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. | 92 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |