153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)/*
253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * Copyright (C) 2012 Google Inc. All rights reserved.
353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *
453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * Redistribution and use in source and binary forms, with or without
553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * modification, are permitted provided that the following conditions
653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * are met:
753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *
853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * 1.  Redistributions of source code must retain the above copyright
953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *     notice, this list of conditions and the following disclaimer.
1053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * 2.  Redistributions in binary form must reproduce the above copyright
1153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *     notice, this list of conditions and the following disclaimer in the
1253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *     documentation and/or other materials provided with the distribution.
1353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) *
1453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
1553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
1653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
1853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
1953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
2153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
2353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles) */
2553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)
2653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)[
2753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)] interface InternalSettings : InternalSettingsGenerated {
2853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    // All methods which access Page::settings() can raise an exception
2953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    // when the page cannot be accessed. (Such as during page tear-down.)
3053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setMockScrollbarsEnabled(boolean enabled);
3153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setTouchEventEmulationEnabled(boolean enabled);
3253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setStandardFontFamily(DOMString family, DOMString script);
3353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setSerifFontFamily(DOMString family, DOMString script);
3453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setSansSerifFontFamily(DOMString family, DOMString script);
3553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setFixedFontFamily(DOMString family, DOMString script);
3653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setCursiveFontFamily(DOMString family, DOMString script);
3753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setFantasyFontFamily(DOMString family, DOMString script);
3853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setPictographFontFamily(DOMString family, DOMString script);
3953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setTextAutosizingEnabled(boolean enabled);
4053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setTextAutosizingWindowSizeOverride(long width, long height);
4153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setTextAutosizingFontScaleFactor(float fontScaleFactor);
4253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setMediaTypeOverride(DOMString mediaTypeOverride);
4353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setEditingBehavior(DOMString behavior);
4453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)
4553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setImagesEnabled(boolean enabled);
4653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    [RaisesException] void setDefaultVideoPosterURL(DOMString poster);
4753e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)
48591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch    // FIXME: This is a temporary flag and should be removed once accelerated
49591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch    // overflow scroll is ready (crbug.com/254111).
50591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch    [RaisesException] void setCompositorDrivenAcceleratedScrollingEnabled(boolean enabled);
51591b958dee2cf159d33a0b931e6231072eaf38d5Ben Murdoch
5253e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    // FIXME: The following are RuntimeEnabledFeatures and likely
5353e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    // cannot be changed after process start.  These setters should
5453e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    // be removed or moved onto internals.runtimeFlags:
5553e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    void setAuthorShadowDOMForAnyElementEnabled(boolean enabled);
5653e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    void setCSSExclusionsEnabled(boolean enabled);
57e52495584422c5edb5b2944981473a2e208da323Torne (Richard Coles)    void setExperimentalWebSocketEnabled(boolean enabled);
5853e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    void setLangAttributeAwareFormControlUIEnabled(boolean enabled);
5953e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    void setLazyLayoutEnabled(boolean enabled);
6053e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)    void setStyleScopedEnabled(boolean enabled);
6153e740f4a82e17f3ae59772501622dc354e42336Torne (Richard Coles)};
62