Chromium Code Reviews| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 108 // This method enumerates all the files in the path. It returns immediately | 108 // This method enumerates all the files in the path. It returns immediately |
| 109 // and asynchronously invokes the WebFileChooserCompletion with all the | 109 // and asynchronously invokes the WebFileChooserCompletion with all the |
| 110 // files in the directory. Returns false if the WebFileChooserCompletion | 110 // files in the directory. Returns false if the WebFileChooserCompletion |
| 111 // will never be called. | 111 // will never be called. |
| 112 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } | 112 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } |
| 113 | 113 |
| 114 // This method is called in response to WebView's saveImageAt(x, y). | 114 // This method is called in response to WebView's saveImageAt(x, y). |
| 115 // A data url from <canvas> or <img> is passed to the method's argument. | 115 // A data url from <canvas> or <img> is passed to the method's argument. |
| 116 virtual void saveImageFromDataURL(const WebString&) { } | 116 virtual void saveImageFromDataURL(const WebString&) { } |
| 117 | 117 |
| 118 // Used by unit tests so that all parsing will be main thread for controling | |
|
dcheng
2015/08/27 23:10:22
Nit: controlling
esprehn
2015/08/28 08:31:43
Done.
| |
| 119 // parsing and chunking precisely. | |
| 120 virtual bool disableThreadedParsingForUnitTests() const { return false; } | |
|
dcheng
2015/08/27 23:10:22
This feels a bit out of place on WebViewClient. On
esprehn
2015/08/28 08:31:44
Internals is for layout tests, you cannot access i
| |
| 121 | |
| 118 | 122 |
| 119 // Editing ------------------------------------------------------------- | 123 // Editing ------------------------------------------------------------- |
| 120 | 124 |
| 121 // These methods allow the client to intercept and overrule editing | 125 // These methods allow the client to intercept and overrule editing |
| 122 // operations. | 126 // operations. |
| 123 virtual void didCancelCompositionOnSelectionChange() { } | 127 virtual void didCancelCompositionOnSelectionChange() { } |
| 124 virtual void didChangeContents() { } | 128 virtual void didChangeContents() { } |
| 125 | 129 |
| 126 // This method is called in response to WebView's handleInputEvent() | 130 // This method is called in response to WebView's handleInputEvent() |
| 127 // when the default action for the current keyboard event is not | 131 // when the default action for the current keyboard event is not |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 273 // Informs the browser that the draggable regions have been updated. | 277 // Informs the browser that the draggable regions have been updated. |
| 274 virtual void draggableRegionsChanged() { } | 278 virtual void draggableRegionsChanged() { } |
| 275 | 279 |
| 276 protected: | 280 protected: |
| 277 ~WebViewClient() { } | 281 ~WebViewClient() { } |
| 278 }; | 282 }; |
| 279 | 283 |
| 280 } // namespace blink | 284 } // namespace blink |
| 281 | 285 |
| 282 #endif | 286 #endif |
| OLD | NEW |