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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 | 282 |
283 // The ratio of the current device's screen DPI to the target device's scree n DPI. | 283 // The ratio of the current device's screen DPI to the target device's scree n DPI. |
284 virtual float deviceScaleFactor() const = 0; | 284 virtual float deviceScaleFactor() const = 0; |
285 | 285 |
286 // Sets the ratio as computed by computePageScaleConstraints. | 286 // Sets the ratio as computed by computePageScaleConstraints. |
287 virtual void setDeviceScaleFactor(float) = 0; | 287 virtual void setDeviceScaleFactor(float) = 0; |
288 | 288 |
289 | 289 |
290 // Fixed Layout -------------------------------------------------------- | 290 // Fixed Layout -------------------------------------------------------- |
291 | 291 |
292 // Forces the main frame's layout size height to be 0. | |
293 virtual void setForceZeroLayoutHeight(bool enable) = 0; | |
abarth-chromium
2014/07/09 17:01:07
This should be a WebSetting instead of being a mem
mkosiba (inactive)
2014/07/09 17:14:23
I wanted to do that but I couldn't find a way to t
| |
294 | |
292 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) | 295 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) |
293 // removes the lock. | 296 // removes the lock. |
294 virtual void setFixedLayoutSize(const WebSize&) = 0; | 297 virtual void setFixedLayoutSize(const WebSize&) = 0; |
295 | 298 |
296 | 299 |
297 // Auto-Resize ----------------------------------------------------------- | 300 // Auto-Resize ----------------------------------------------------------- |
298 | 301 |
299 // 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 |
300 // content within the given bounds. | 303 // content within the given bounds. |
301 virtual void enableAutoResizeMode( | 304 virtual void enableAutoResizeMode( |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
499 | 502 |
500 // Testing functionality for TestRunner --------------------------------- | 503 // Testing functionality for TestRunner --------------------------------- |
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 |