| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 // Note: this has no effect on plugins. | 259 // Note: this has no effect on plugins. |
| 260 virtual float setTextZoomFactor(float) = 0; | 260 virtual float setTextZoomFactor(float) = 0; |
| 261 | 261 |
| 262 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 | 262 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 |
| 263 // is scaled up, < 1.0 is scaled down. | 263 // is scaled up, < 1.0 is scaled down. |
| 264 virtual float pageScaleFactor() const = 0; | 264 virtual float pageScaleFactor() const = 0; |
| 265 | 265 |
| 266 // Scales the page without affecting layout by using the visual viewport. | 266 // Scales the page without affecting layout by using the visual viewport. |
| 267 virtual void setPageScaleFactor(float) = 0; | 267 virtual void setPageScaleFactor(float) = 0; |
| 268 | 268 |
| 269 // Returns the scale factor clamped within the current limits. |
| 270 virtual float clampPageScaleFactorToLimits(float) const = 0; |
| 271 |
| 269 // Sets the offset of the visual viewport within the main frame, in | 272 // Sets the offset of the visual viewport within the main frame, in |
| 270 // partial CSS pixels. The offset will be clamped so the visual viewport | 273 // partial CSS pixels. The offset will be clamped so the visual viewport |
| 271 // stays within the frame's bounds. | 274 // stays within the frame's bounds. |
| 272 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; | 275 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; |
| 273 | 276 |
| 274 // Gets the visual viewport's current offset within the page's main frame, | 277 // Gets the visual viewport's current offset within the page's main frame, |
| 275 // in partial CSS pixels. | 278 // in partial CSS pixels. |
| 276 virtual WebFloatPoint visualViewportOffset() const = 0; | 279 virtual WebFloatPoint visualViewportOffset() const = 0; |
| 277 | 280 |
| 278 // Get the visual viewport's size in CSS pixels. | 281 // Get the visual viewport's size in CSS pixels. |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // completed. | 502 // completed. |
| 500 WebWidget* widget() { return this; } | 503 WebWidget* widget() { return this; } |
| 501 | 504 |
| 502 protected: | 505 protected: |
| 503 ~WebView() {} | 506 ~WebView() {} |
| 504 }; | 507 }; |
| 505 | 508 |
| 506 } // namespace blink | 509 } // namespace blink |
| 507 | 510 |
| 508 #endif | 511 #endif |
| OLD | NEW |