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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // Called when a new node gets focused. | 197 // Called when a new node gets focused. |
198 virtual void focusedNodeChanged(const WebNode&) { } | 198 virtual void focusedNodeChanged(const WebNode&) { } |
199 | 199 |
200 // Indicates two things: | 200 // Indicates two things: |
201 // 1) This view may have a new layout now. | 201 // 1) This view may have a new layout now. |
202 // 2) Calling layout() is a no-op. | 202 // 2) Calling layout() is a no-op. |
203 // After calling WebWidget::layout(), expect to get this notification | 203 // After calling WebWidget::layout(), expect to get this notification |
204 // unless the view did not need a layout. | 204 // unless the view did not need a layout. |
205 virtual void didUpdateLayout() { } | 205 virtual void didUpdateLayout() { } |
206 | 206 |
207 // FIXME: This is a deprecated method. Remove it after the chromium change | |
208 // that uses the second didTapMultipleTargets() propagates. | |
209 // | |
210 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 207 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
211 virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<W
ebRect>& targetRects) { return false; } | 208 virtual bool didTapMultipleTargets(const WebGestureEvent&, const WebVector<W
ebRect>& targetRects) { return false; } |
212 | 209 |
213 // Return true to swallow the input event if the embedder will start a disam
biguation popup | |
214 virtual bool didTapMultipleTargets(const WebSize& pinchViewportOffset, const
WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } | |
215 | |
216 // Returns comma separated list of accept languages. | 210 // Returns comma separated list of accept languages. |
217 virtual WebString acceptLanguages() { return WebString(); } | 211 virtual WebString acceptLanguages() { return WebString(); } |
218 | 212 |
219 | 213 |
220 // Session history ----------------------------------------------------- | 214 // Session history ----------------------------------------------------- |
221 | 215 |
222 // Tells the embedder to navigate back or forward in session history by | 216 // Tells the embedder to navigate back or forward in session history by |
223 // the given offset (relative to the current position in session | 217 // the given offset (relative to the current position in session |
224 // history). | 218 // history). |
225 virtual void navigateBackForwardSoon(int offset) { } | 219 virtual void navigateBackForwardSoon(int offset) { } |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 // Informs the browser that the draggable regions have been updated. | 307 // Informs the browser that the draggable regions have been updated. |
314 virtual void draggableRegionsChanged() { } | 308 virtual void draggableRegionsChanged() { } |
315 | 309 |
316 protected: | 310 protected: |
317 ~WebViewClient() { } | 311 ~WebViewClient() { } |
318 }; | 312 }; |
319 | 313 |
320 } // namespace blink | 314 } // namespace blink |
321 | 315 |
322 #endif | 316 #endif |
OLD | NEW |