| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 // and the minimum height required to display the main document without scro
llbars. | 281 // and the minimum height required to display the main document without scro
llbars. |
| 282 // The returned size has the page zoom factor applied. | 282 // The returned size has the page zoom factor applied. |
| 283 virtual WebSize contentsPreferredMinimumSize() = 0; | 283 virtual WebSize contentsPreferredMinimumSize() = 0; |
| 284 | 284 |
| 285 // The ratio of the current device's screen DPI to the target device's scree
n DPI. | 285 // The ratio of the current device's screen DPI to the target device's scree
n DPI. |
| 286 virtual float deviceScaleFactor() const = 0; | 286 virtual float deviceScaleFactor() const = 0; |
| 287 | 287 |
| 288 // Sets the ratio as computed by computePageScaleConstraints. | 288 // Sets the ratio as computed by computePageScaleConstraints. |
| 289 virtual void setDeviceScaleFactor(float) = 0; | 289 virtual void setDeviceScaleFactor(float) = 0; |
| 290 | 290 |
| 291 // Set and reset the device color profile. |
| 292 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; |
| 293 virtual void resetDeviceColorProfile() = 0; |
| 291 | 294 |
| 292 // Fixed Layout -------------------------------------------------------- | 295 // Fixed Layout -------------------------------------------------------- |
| 293 | 296 |
| 294 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) | 297 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) |
| 295 // removes the lock. | 298 // removes the lock. |
| 296 virtual void setFixedLayoutSize(const WebSize&) = 0; | 299 virtual void setFixedLayoutSize(const WebSize&) = 0; |
| 297 | 300 |
| 298 | 301 |
| 299 // Auto-Resize ----------------------------------------------------------- | 302 // Auto-Resize ----------------------------------------------------------- |
| 300 | 303 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 | 495 |
| 493 // Testing functionality for TestRunner --------------------------------- | 496 // Testing functionality for TestRunner --------------------------------- |
| 494 | 497 |
| 495 protected: | 498 protected: |
| 496 ~WebView() {} | 499 ~WebView() {} |
| 497 }; | 500 }; |
| 498 | 501 |
| 499 } // namespace blink | 502 } // namespace blink |
| 500 | 503 |
| 501 #endif | 504 #endif |
| OLD | NEW |