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 | |
119 // Editing ------------------------------------------------------------- | 118 // Editing ------------------------------------------------------------- |
120 | 119 |
121 // These methods allow the client to intercept and overrule editing | 120 // These methods allow the client to intercept and overrule editing |
122 // operations. | 121 // operations. |
123 virtual void didCancelCompositionOnSelectionChange() { } | 122 virtual void didCancelCompositionOnSelectionChange() { } |
124 virtual void didChangeContents() { } | 123 virtual void didChangeContents() { } |
125 | 124 |
126 // This method is called in response to WebView's handleInputEvent() | 125 // This method is called in response to WebView's handleInputEvent() |
127 // when the default action for the current keyboard event is not | 126 // when the default action for the current keyboard event is not |
128 // suppressed by the page, to give the embedder a chance to handle | 127 // suppressed by the page, to give the embedder a chance to handle |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // Informs the browser that the draggable regions have been updated. | 272 // Informs the browser that the draggable regions have been updated. |
274 virtual void draggableRegionsChanged() { } | 273 virtual void draggableRegionsChanged() { } |
275 | 274 |
276 protected: | 275 protected: |
277 ~WebViewClient() { } | 276 ~WebViewClient() { } |
278 }; | 277 }; |
279 | 278 |
280 } // namespace blink | 279 } // namespace blink |
281 | 280 |
282 #endif | 281 #endif |
OLD | NEW |