| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // Scales the text in the page by a factor of textZoomFactor. | 189 // Scales the text in the page by a factor of textZoomFactor. |
| 190 // Note: this has no effect on plugins. | 190 // Note: this has no effect on plugins. |
| 191 virtual float setTextZoomFactor(float) = 0; | 191 virtual float setTextZoomFactor(float) = 0; |
| 192 | 192 |
| 193 // TODO: Reevaluate if this is needed once all users are converted to using
the | 193 // TODO: Reevaluate if this is needed once all users are converted to using
the |
| 194 // virtual viewport pinch model. | 194 // virtual viewport pinch model. |
| 195 // Temporary to keep old style pinch viewport working while we gradually bri
ng up | 195 // Temporary to keep old style pinch viewport working while we gradually bri
ng up |
| 196 // virtual viewport pinch. | 196 // virtual viewport pinch. |
| 197 virtual void setMainFrameScrollOffset(const WebPoint& origin) = 0; | 197 virtual void setMainFrameScrollOffset(const WebPoint& origin) = 0; |
| 198 | 198 |
| 199 // Sets the offset of the pinch-to-zoom viewport within the main frame, in | |
| 200 // partial CSS pixels. The offset will be clamped so the pinch viewport | |
| 201 // stays within the frame's bounds. | |
| 202 virtual void setPinchViewportOffset(const WebFloatPoint&) = 0; | |
| 203 | |
| 204 // Gets the pinch viewport's current offset within the page's main frame, | |
| 205 // in partial CSS pixels. | |
| 206 virtual WebFloatPoint pinchViewportOffset() const = 0; | |
| 207 | |
| 208 // Reset any saved values for the scroll and scale state. | 199 // Reset any saved values for the scroll and scale state. |
| 209 virtual void resetScrollAndScaleState() = 0; | 200 virtual void resetScrollAndScaleState() = 0; |
| 210 | 201 |
| 211 // Returns the "preferred" contents size, defined as the preferred minimum w
idth of the main document's contents | 202 // Returns the "preferred" contents size, defined as the preferred minimum w
idth of the main document's contents |
| 212 // and the minimum height required to display the main document without scro
llbars. | 203 // and the minimum height required to display the main document without scro
llbars. |
| 213 // The returned size has the page zoom factor applied. | 204 // The returned size has the page zoom factor applied. |
| 214 virtual WebSize contentsPreferredMinimumSize() = 0; | 205 virtual WebSize contentsPreferredMinimumSize() = 0; |
| 215 | 206 |
| 216 // The ratio of the current device's screen DPI to the target device's scree
n DPI. | 207 // The ratio of the current device's screen DPI to the target device's scree
n DPI. |
| 217 virtual float deviceScaleFactor() const = 0; | 208 virtual float deviceScaleFactor() const = 0; |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 | 313 |
| 323 // Testing functionality for TestRunner --------------------------------- | 314 // Testing functionality for TestRunner --------------------------------- |
| 324 | 315 |
| 325 protected: | 316 protected: |
| 326 ~WebView() {} | 317 ~WebView() {} |
| 327 }; | 318 }; |
| 328 | 319 |
| 329 } // namespace blink | 320 } // namespace blink |
| 330 | 321 |
| 331 #endif | 322 #endif |
| OLD | NEW |