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