| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // After calling WebWidget::layout(), expect to get this notification | 193 // After calling WebWidget::layout(), expect to get this notification |
| 194 // unless the view did not need a layout. | 194 // unless the view did not need a layout. |
| 195 virtual void didUpdateLayout() { } | 195 virtual void didUpdateLayout() { } |
| 196 | 196 |
| 197 // Return true to swallow the input event if the embedder will start a disam
biguation popup | 197 // Return true to swallow the input event if the embedder will start a disam
biguation popup |
| 198 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons
t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } | 198 virtual bool didTapMultipleTargets(const WebSize& visualViewportOffset, cons
t WebRect& touchRect, const WebVector<WebRect>& targetRects) { return false; } |
| 199 | 199 |
| 200 // Returns comma separated list of accept languages. | 200 // Returns comma separated list of accept languages. |
| 201 virtual WebString acceptLanguages() { return WebString(); } | 201 virtual WebString acceptLanguages() { return WebString(); } |
| 202 | 202 |
| 203 // Returns the acutal scale factor of the device even when emulated. Used fo
r drag drop |
| 204 // images that should use the real device scale factor even in dev tools. |
| 205 virtual float nonEmulatedDeviceScaleFactor() { return 1.0f; } |
| 203 | 206 |
| 204 // Session history ----------------------------------------------------- | 207 // Session history ----------------------------------------------------- |
| 205 | 208 |
| 206 // Tells the embedder to navigate back or forward in session history by | 209 // Tells the embedder to navigate back or forward in session history by |
| 207 // the given offset (relative to the current position in session | 210 // the given offset (relative to the current position in session |
| 208 // history). | 211 // history). |
| 209 virtual void navigateBackForwardSoon(int offset) { } | 212 virtual void navigateBackForwardSoon(int offset) { } |
| 210 | 213 |
| 211 // Returns the number of history items before/after the current | 214 // Returns the number of history items before/after the current |
| 212 // history item. | 215 // history item. |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 WebRect windowRect() override { return WebRect(); } | 307 WebRect windowRect() override { return WebRect(); } |
| 305 WebRect windowResizerRect() override { return WebRect(); } | 308 WebRect windowResizerRect() override { return WebRect(); } |
| 306 | 309 |
| 307 protected: | 310 protected: |
| 308 ~WebViewClient() { } | 311 ~WebViewClient() { } |
| 309 }; | 312 }; |
| 310 | 313 |
| 311 } // namespace blink | 314 } // namespace blink |
| 312 | 315 |
| 313 #endif | 316 #endif |
| OLD | NEW |