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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 | 286 |
287 // Sets the ratio as computed by computePageScaleConstraints. | 287 // Sets the ratio as computed by computePageScaleConstraints. |
288 virtual void setDeviceScaleFactor(float) = 0; | 288 virtual void setDeviceScaleFactor(float) = 0; |
289 | 289 |
290 | 290 |
291 // Fixed Layout -------------------------------------------------------- | 291 // Fixed Layout -------------------------------------------------------- |
292 | 292 |
293 // In fixed layout mode, the layout of the page is independent of the | 293 // In fixed layout mode, the layout of the page is independent of the |
294 // view port size, given by WebWidget::size(). | 294 // view port size, given by WebWidget::size(). |
295 | 295 |
296 virtual bool isFixedLayoutModeEnabled() const = 0; | |
297 virtual void enableFixedLayoutMode(bool enable) = 0; | |
298 | |
299 virtual WebSize fixedLayoutSize() const = 0; | 296 virtual WebSize fixedLayoutSize() const = 0; |
300 virtual void setFixedLayoutSize(const WebSize&) = 0; | 297 virtual void setFixedLayoutSize(const WebSize&) = 0; |
301 | 298 |
302 | 299 |
303 // Auto-Resize ----------------------------------------------------------- | 300 // Auto-Resize ----------------------------------------------------------- |
304 | 301 |
305 // In auto-resize mode, the view is automatically adjusted to fit the html | 302 // In auto-resize mode, the view is automatically adjusted to fit the html |
306 // content within the given bounds. | 303 // content within the given bounds. |
307 virtual void enableAutoResizeMode( | 304 virtual void enableAutoResizeMode( |
308 const WebSize& minSize, | 305 const WebSize& minSize, |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
507 | 504 |
508 // Testing functionality for TestRunner --------------------------------- | 505 // Testing functionality for TestRunner --------------------------------- |
509 | 506 |
510 protected: | 507 protected: |
511 ~WebView() {} | 508 ~WebView() {} |
512 }; | 509 }; |
513 | 510 |
514 } // namespace WebKit | 511 } // namespace WebKit |
515 | 512 |
516 #endif | 513 #endif |
OLD | NEW |