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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Take focus away from the WebView by focusing an adjacent UI element | 182 // Take focus away from the WebView by focusing an adjacent UI element |
183 // in the containing window. | 183 // in the containing window. |
184 virtual void focusNext() { } | 184 virtual void focusNext() { } |
185 virtual void focusPrevious() { } | 185 virtual void focusPrevious() { } |
186 | 186 |
187 // Called when a new node gets focused. |fromNode| is the previously focused
node, |toNode| | 187 // Called when a new node gets focused. |fromNode| is the previously focused
node, |toNode| |
188 // is the newly focused node. Either can be null. | 188 // is the newly focused node. Either can be null. |
189 virtual void focusedNodeChanged(const WebNode& fromNode, const WebNode& toNo
de) { } | 189 virtual void focusedNodeChanged(const WebNode& fromNode, const WebNode& toNo
de) { } |
190 | 190 |
| 191 // Called when the focused frame changes. |
| 192 virtual void focusedFrameChanged() { } |
| 193 |
191 // Indicates two things: | 194 // Indicates two things: |
192 // 1) This view may have a new layout now. | 195 // 1) This view may have a new layout now. |
193 // 2) Calling layout() is a no-op. | 196 // 2) Calling layout() is a no-op. |
194 // After calling WebWidget::layout(), expect to get this notification | 197 // After calling WebWidget::layout(), expect to get this notification |
195 // unless the view did not need a layout. | 198 // unless the view did not need a layout. |
196 virtual void didUpdateLayout() { } | 199 virtual void didUpdateLayout() { } |
197 | 200 |
198 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 201 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
199 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const
WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } | 202 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const
WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } |
200 | 203 |
(...skipping 67 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 |