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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 // Called to determine if drag-n-drop operations may initiate a page | 180 // Called to determine if drag-n-drop operations may initiate a page |
181 // navigation. | 181 // navigation. |
182 virtual bool acceptsLoadDrops() { return true; } | 182 virtual bool acceptsLoadDrops() { return true; } |
183 | 183 |
184 // Take focus away from the WebView by focusing an adjacent UI element | 184 // Take focus away from the WebView by focusing an adjacent UI element |
185 // in the containing window. | 185 // in the containing window. |
186 virtual void focusNext() { } | 186 virtual void focusNext() { } |
187 virtual void focusPrevious() { } | 187 virtual void focusPrevious() { } |
188 | 188 |
189 // Called when a new node gets focused. | 189 // FIXME: remove this function. |
190 virtual void focusedNodeChanged(const WebNode&) { } | 190 virtual void focusedNodeChanged(const WebNode&) { } |
| 191 // Called when a new node gets focused. |fromNode| is the previously focused
node, |toNode| |
| 192 // is the newly focused node. Either can be null. |
| 193 virtual void focusedNodeChanged(const WebNode& fromNode, const WebNode& toNo
de) { } |
191 | 194 |
192 // Indicates two things: | 195 // Indicates two things: |
193 // 1) This view may have a new layout now. | 196 // 1) This view may have a new layout now. |
194 // 2) Calling layout() is a no-op. | 197 // 2) Calling layout() is a no-op. |
195 // After calling WebWidget::layout(), expect to get this notification | 198 // After calling WebWidget::layout(), expect to get this notification |
196 // unless the view did not need a layout. | 199 // unless the view did not need a layout. |
197 virtual void didUpdateLayout() { } | 200 virtual void didUpdateLayout() { } |
198 | 201 |
199 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 202 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
200 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const
WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } | 203 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const
WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Informs the browser that the draggable regions have been updated. | 296 // Informs the browser that the draggable regions have been updated. |
294 virtual void draggableRegionsChanged() { } | 297 virtual void draggableRegionsChanged() { } |
295 | 298 |
296 protected: | 299 protected: |
297 ~WebViewClient() { } | 300 ~WebViewClient() { } |
298 }; | 301 }; |
299 | 302 |
300 } // namespace blink | 303 } // namespace blink |
301 | 304 |
302 #endif | 305 #endif |
OLD | NEW |