| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 // Note: this has no effect on plugins. | 266 // Note: this has no effect on plugins. |
| 267 virtual float setTextZoomFactor(float) = 0; | 267 virtual float setTextZoomFactor(float) = 0; |
| 268 | 268 |
| 269 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 | 269 // Gets the scale factor of the page, where 1.0 is the normal size, > 1.0 |
| 270 // is scaled up, < 1.0 is scaled down. | 270 // is scaled up, < 1.0 is scaled down. |
| 271 virtual float pageScaleFactor() const = 0; | 271 virtual float pageScaleFactor() const = 0; |
| 272 | 272 |
| 273 // Scales the page without affecting layout by using the visual viewport. | 273 // Scales the page without affecting layout by using the visual viewport. |
| 274 virtual void setPageScaleFactor(float) = 0; | 274 virtual void setPageScaleFactor(float) = 0; |
| 275 | 275 |
| 276 // Returns the scale factor clamped within the current limits. |
| 277 virtual float clampPageScaleFactorToLimits(float) const = 0; |
| 278 |
| 276 // Sets the offset of the visual viewport within the main frame, in | 279 // Sets the offset of the visual viewport within the main frame, in |
| 277 // partial CSS pixels. The offset will be clamped so the visual viewport | 280 // partial CSS pixels. The offset will be clamped so the visual viewport |
| 278 // stays within the frame's bounds. | 281 // stays within the frame's bounds. |
| 279 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; | 282 virtual void setVisualViewportOffset(const WebFloatPoint&) = 0; |
| 280 | 283 |
| 281 // Gets the visual viewport's current offset within the page's main frame, | 284 // Gets the visual viewport's current offset within the page's main frame, |
| 282 // in partial CSS pixels. | 285 // in partial CSS pixels. |
| 283 virtual WebFloatPoint visualViewportOffset() const = 0; | 286 virtual WebFloatPoint visualViewportOffset() const = 0; |
| 284 | 287 |
| 285 // Get the visual viewport's size in CSS pixels. | 288 // Get the visual viewport's size in CSS pixels. |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 // completed. | 533 // completed. |
| 531 WebWidget* widget() { return this; } | 534 WebWidget* widget() { return this; } |
| 532 | 535 |
| 533 protected: | 536 protected: |
| 534 ~WebView() {} | 537 ~WebView() {} |
| 535 }; | 538 }; |
| 536 | 539 |
| 537 } // namespace blink | 540 } // namespace blink |
| 538 | 541 |
| 539 #endif | 542 #endif |
| OLD | NEW |