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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 // and the minimum height required to display the main document without scro
llbars. | 279 // and the minimum height required to display the main document without scro
llbars. |
280 // The returned size has the page zoom factor applied. | 280 // The returned size has the page zoom factor applied. |
281 virtual WebSize contentsPreferredMinimumSize() = 0; | 281 virtual WebSize contentsPreferredMinimumSize() = 0; |
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 // Color profile of the display has changed. |
| 290 virtual void deviceColorProfileChanged(const char* profile, size_t) = 0; |
289 | 291 |
290 // Fixed Layout -------------------------------------------------------- | 292 // Fixed Layout -------------------------------------------------------- |
291 | 293 |
292 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) | 294 // Locks main frame's layout size to specified size. Passing WebSize(0, 0) |
293 // removes the lock. | 295 // removes the lock. |
294 virtual void setFixedLayoutSize(const WebSize&) = 0; | 296 virtual void setFixedLayoutSize(const WebSize&) = 0; |
295 | 297 |
296 | 298 |
297 // Auto-Resize ----------------------------------------------------------- | 299 // Auto-Resize ----------------------------------------------------------- |
298 | 300 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 | 501 |
500 // Testing functionality for TestRunner --------------------------------- | 502 // Testing functionality for TestRunner --------------------------------- |
501 | 503 |
502 protected: | 504 protected: |
503 ~WebView() {} | 505 ~WebView() {} |
504 }; | 506 }; |
505 | 507 |
506 } // namespace blink | 508 } // namespace blink |
507 | 509 |
508 #endif | 510 #endif |
OLD | NEW |