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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 114 // children, to print. Otherwise, the main frame and its children | 114 // children, to print. Otherwise, the main frame and its children |
| 115 // should be printed. | 115 // should be printed. |
| 116 virtual void printPage(WebLocalFrame*) { } | 116 virtual void printPage(WebLocalFrame*) { } |
| 117 | 117 |
| 118 // This method enumerates all the files in the path. It returns immediately | 118 // This method enumerates all the files in the path. It returns immediately |
| 119 // and asynchronously invokes the WebFileChooserCompletion with all the | 119 // and asynchronously invokes the WebFileChooserCompletion with all the |
| 120 // files in the directory. Returns false if the WebFileChooserCompletion | 120 // files in the directory. Returns false if the WebFileChooserCompletion |
| 121 // will never be called. | 121 // will never be called. |
| 122 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } | 122 virtual bool enumerateChosenDirectory(const WebString& path, WebFileChooserC ompletion*) { return false; } |
| 123 | 123 |
| 124 // This method is called in response to WebView's saveImageAt(x, y). | |
| 125 // A data url from <canvas> or <img> is passed to the method's argument. | |
| 126 virtual void saveImageFromDataURL(const WebString&) { } | |
|
jochen (gone - plz use gerrit)
2014/09/16 15:53:32
why not pass a WebURL ?
| |
| 127 | |
| 124 | 128 |
| 125 // Editing ------------------------------------------------------------- | 129 // Editing ------------------------------------------------------------- |
| 126 | 130 |
| 127 // These methods allow the client to intercept and overrule editing | 131 // These methods allow the client to intercept and overrule editing |
| 128 // operations. | 132 // operations. |
| 129 virtual void didCancelCompositionOnSelectionChange() { } | 133 virtual void didCancelCompositionOnSelectionChange() { } |
| 130 virtual void didChangeContents() { } | 134 virtual void didChangeContents() { } |
| 131 | 135 |
| 132 // This method is called in response to WebView's handleInputEvent() | 136 // This method is called in response to WebView's handleInputEvent() |
| 133 // when the default action for the current keyboard event is not | 137 // when the default action for the current keyboard event is not |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 // Informs the browser that the draggable regions have been updated. | 309 // Informs the browser that the draggable regions have been updated. |
| 306 virtual void draggableRegionsChanged() { } | 310 virtual void draggableRegionsChanged() { } |
| 307 | 311 |
| 308 protected: | 312 protected: |
| 309 ~WebViewClient() { } | 313 ~WebViewClient() { } |
| 310 }; | 314 }; |
| 311 | 315 |
| 312 } // namespace blink | 316 } // namespace blink |
| 313 | 317 |
| 314 #endif | 318 #endif |
| OLD | NEW |