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 14 matching lines...) Expand all Loading... |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebView_h | 31 #ifndef WebView_h |
32 #define WebView_h | 32 #define WebView_h |
33 | 33 |
34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebDisplayMode.h" |
35 #include "../platform/WebPageVisibilityState.h" | 36 #include "../platform/WebPageVisibilityState.h" |
36 #include "../platform/WebString.h" | 37 #include "../platform/WebString.h" |
37 #include "../platform/WebVector.h" | 38 #include "../platform/WebVector.h" |
38 #include "WebDragOperation.h" | 39 #include "WebDragOperation.h" |
39 #include "WebHistoryCommitType.h" | 40 #include "WebHistoryCommitType.h" |
40 #include "WebHistoryItem.h" | 41 #include "WebHistoryItem.h" |
41 #include "WebWidget.h" | 42 #include "WebWidget.h" |
42 | 43 |
43 namespace blink { | 44 namespace blink { |
44 | 45 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 // Prevent the web page from setting min/max scale via the viewport meta | 269 // Prevent the web page from setting min/max scale via the viewport meta |
269 // tag. This is an accessibility feature that lets folks zoom in to web | 270 // tag. This is an accessibility feature that lets folks zoom in to web |
270 // pages even if the web page tries to block scaling. | 271 // pages even if the web page tries to block scaling. |
271 virtual void setIgnoreViewportTagScaleLimits(bool) = 0; | 272 virtual void setIgnoreViewportTagScaleLimits(bool) = 0; |
272 | 273 |
273 // Returns the "preferred" contents size, defined as the preferred minimum w
idth of the main document's contents | 274 // Returns the "preferred" contents size, defined as the preferred minimum w
idth of the main document's contents |
274 // and the minimum height required to display the main document without scro
llbars. | 275 // and the minimum height required to display the main document without scro
llbars. |
275 // The returned size has the page zoom factor applied. | 276 // The returned size has the page zoom factor applied. |
276 virtual WebSize contentsPreferredMinimumSize() = 0; | 277 virtual WebSize contentsPreferredMinimumSize() = 0; |
277 | 278 |
| 279 // Sets the display mode of the web app. |
| 280 virtual void setDisplayMode(WebDisplayMode) = 0; |
| 281 |
278 // The ratio of the current device's screen DPI to the target device's scree
n DPI. | 282 // The ratio of the current device's screen DPI to the target device's scree
n DPI. |
279 virtual float deviceScaleFactor() const = 0; | 283 virtual float deviceScaleFactor() const = 0; |
280 | 284 |
281 // Sets the ratio as computed by computePageScaleConstraints. | 285 // Sets the ratio as computed by computePageScaleConstraints. |
282 virtual void setDeviceScaleFactor(float) = 0; | 286 virtual void setDeviceScaleFactor(float) = 0; |
283 | 287 |
284 // Set and reset the device color profile. | 288 // Set and reset the device color profile. |
285 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; | 289 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; |
286 virtual void resetDeviceColorProfile() = 0; | 290 virtual void resetDeviceColorProfile() = 0; |
287 | 291 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // event gets generated/tested. | 489 // event gets generated/tested. |
486 virtual void forceNextWebGLContextCreationToFail() = 0; | 490 virtual void forceNextWebGLContextCreationToFail() = 0; |
487 | 491 |
488 protected: | 492 protected: |
489 ~WebView() {} | 493 ~WebView() {} |
490 }; | 494 }; |
491 | 495 |
492 } // namespace blink | 496 } // namespace blink |
493 | 497 |
494 #endif | 498 #endif |
OLD | NEW |