| 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // The returned size has the page zoom factor applied. | 296 // The returned size has the page zoom factor applied. |
| 297 virtual WebSize contentsPreferredMinimumSize() = 0; | 297 virtual WebSize contentsPreferredMinimumSize() = 0; |
| 298 | 298 |
| 299 // The ratio of the current device's screen DPI to the target device's scree
n DPI. | 299 // The ratio of the current device's screen DPI to the target device's scree
n DPI. |
| 300 virtual float deviceScaleFactor() const = 0; | 300 virtual float deviceScaleFactor() const = 0; |
| 301 | 301 |
| 302 // Sets the ratio as computed by computePageScaleConstraints. | 302 // Sets the ratio as computed by computePageScaleConstraints. |
| 303 virtual void setDeviceScaleFactor(float) = 0; | 303 virtual void setDeviceScaleFactor(float) = 0; |
| 304 | 304 |
| 305 | 305 |
| 306 // Fixed Layout -------------------------------------------------------- | 306 // Layout size ----------------------------------------------------------- |
| 307 | 307 |
| 308 // In fixed layout mode, the layout of the page is independent of the | 308 // Sets the size Blink uses to layout the page in FrameView |
| 309 // view port size, given by WebWidget::size(). | 309 virtual void setLayoutSize(const WebSize&) = 0; |
| 310 | 310 |
| 311 virtual bool isFixedLayoutModeEnabled() const = 0; | 311 // TODO: Remove once Chrome side changes land |
| 312 virtual void enableFixedLayoutMode(bool enable) = 0; | 312 virtual void enableFixedLayoutMode(bool enable) = 0; |
| 313 | |
| 314 virtual WebSize fixedLayoutSize() const = 0; | |
| 315 virtual void setFixedLayoutSize(const WebSize&) = 0; | 313 virtual void setFixedLayoutSize(const WebSize&) = 0; |
| 316 | 314 |
| 317 | 315 |
| 318 // Auto-Resize ----------------------------------------------------------- | 316 // Auto-Resize ----------------------------------------------------------- |
| 319 | 317 |
| 320 // In auto-resize mode, the view is automatically adjusted to fit the html | 318 // In auto-resize mode, the view is automatically adjusted to fit the html |
| 321 // content within the given bounds. | 319 // content within the given bounds. |
| 322 virtual void enableAutoResizeMode( | 320 virtual void enableAutoResizeMode( |
| 323 const WebSize& minSize, | 321 const WebSize& minSize, |
| 324 const WebSize& maxSize) = 0; | 322 const WebSize& maxSize) = 0; |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 516 |
| 519 // Testing functionality for TestRunner --------------------------------- | 517 // Testing functionality for TestRunner --------------------------------- |
| 520 | 518 |
| 521 protected: | 519 protected: |
| 522 ~WebView() {} | 520 ~WebView() {} |
| 523 }; | 521 }; |
| 524 | 522 |
| 525 } // namespace WebKit | 523 } // namespace WebKit |
| 526 | 524 |
| 527 #endif | 525 #endif |
| OLD | NEW |