| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 bool m_originalCSSExclusionsEnabled; | 52 bool m_originalCSSExclusionsEnabled; |
| 53 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 53 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 54 bool m_originalExperimentalWebSocketEnabled; | 54 bool m_originalExperimentalWebSocketEnabled; |
| 55 bool m_originalStyleScoped; | 55 bool m_originalStyleScoped; |
| 56 EditingBehaviorType m_originalEditingBehavior; | 56 EditingBehaviorType m_originalEditingBehavior; |
| 57 bool m_originalTextAutosizingEnabled; | 57 bool m_originalTextAutosizingEnabled; |
| 58 IntSize m_originalTextAutosizingWindowSizeOverride; | 58 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 59 float m_originalTextAutosizingFontScaleFactor; | 59 float m_originalTextAutosizingFontScaleFactor; |
| 60 String m_originalMediaTypeOverride; | 60 String m_originalMediaTypeOverride; |
| 61 bool m_originalMockScrollbarsEnabled; | 61 bool m_originalMockScrollbarsEnabled; |
| 62 bool m_originalUsesOverlayScrollbars; | 62 bool m_originalMockScrollbarsUseOverlay; |
| 63 bool m_langAttributeAwareFormControlUIEnabled; | 63 bool m_langAttributeAwareFormControlUIEnabled; |
| 64 bool m_imagesEnabled; | 64 bool m_imagesEnabled; |
| 65 bool m_shouldDisplaySubtitles; | 65 bool m_shouldDisplaySubtitles; |
| 66 bool m_shouldDisplayCaptions; | 66 bool m_shouldDisplayCaptions; |
| 67 bool m_shouldDisplayTextDescriptions; | 67 bool m_shouldDisplayTextDescriptions; |
| 68 String m_defaultVideoPosterURL; | 68 String m_defaultVideoPosterURL; |
| 69 bool m_originalCompositorDrivenAcceleratedScrollEnabled; | 69 bool m_originalCompositorDrivenAcceleratedScrollEnabled; |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 static PassRefPtr<InternalSettings> create(Page* page) | 72 static PassRefPtr<InternalSettings> create(Page* page) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 void setFixedFontFamily(const String& family, const String& script, Exceptio
nState&); | 85 void setFixedFontFamily(const String& family, const String& script, Exceptio
nState&); |
| 86 void setCursiveFontFamily(const String& family, const String& script, Except
ionState&); | 86 void setCursiveFontFamily(const String& family, const String& script, Except
ionState&); |
| 87 void setFantasyFontFamily(const String& family, const String& script, Except
ionState&); | 87 void setFantasyFontFamily(const String& family, const String& script, Except
ionState&); |
| 88 void setPictographFontFamily(const String& family, const String& script, Exc
eptionState&); | 88 void setPictographFontFamily(const String& family, const String& script, Exc
eptionState&); |
| 89 | 89 |
| 90 void setDefaultVideoPosterURL(const String& url, ExceptionState&); | 90 void setDefaultVideoPosterURL(const String& url, ExceptionState&); |
| 91 void setEditingBehavior(const String&, ExceptionState&); | 91 void setEditingBehavior(const String&, ExceptionState&); |
| 92 void setImagesEnabled(bool, ExceptionState&); | 92 void setImagesEnabled(bool, ExceptionState&); |
| 93 void setMediaTypeOverride(const String& mediaType, ExceptionState&); | 93 void setMediaTypeOverride(const String& mediaType, ExceptionState&); |
| 94 void setMockScrollbarsEnabled(bool, ExceptionState&); | 94 void setMockScrollbarsEnabled(bool, ExceptionState&); |
| 95 void setMockScrollbarsUseOverlay(bool, ExceptionState&); |
| 95 void setTextAutosizingEnabled(bool, ExceptionState&); | 96 void setTextAutosizingEnabled(bool, ExceptionState&); |
| 96 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionState&
); | 97 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionState&
); |
| 97 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); | 98 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); |
| 98 void setTouchEventEmulationEnabled(bool, ExceptionState&); | 99 void setTouchEventEmulationEnabled(bool, ExceptionState&); |
| 99 void setUsesOverlayScrollbars(bool, ExceptionState&); | |
| 100 void setViewportEnabled(bool, ExceptionState&); | 100 void setViewportEnabled(bool, ExceptionState&); |
| 101 | 101 |
| 102 // FIXME: This is a temporary flag and should be removed once accelerated | 102 // FIXME: This is a temporary flag and should be removed once accelerated |
| 103 // overflow scroll is ready (crbug.com/254111). | 103 // overflow scroll is ready (crbug.com/254111). |
| 104 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); | 104 void setCompositorDrivenAcceleratedScrollingEnabled(bool, ExceptionState&); |
| 105 | 105 |
| 106 // FIXME: The following are RuntimeEnabledFeatures and likely | 106 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 107 // cannot be changed after process start. These setters should | 107 // cannot be changed after process start. These setters should |
| 108 // be removed or moved onto internals.runtimeFlags: | 108 // be removed or moved onto internals.runtimeFlags: |
| 109 void setAuthorShadowDOMForAnyElementEnabled(bool); | 109 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 110 void setCSSExclusionsEnabled(bool); | 110 void setCSSExclusionsEnabled(bool); |
| 111 void setExperimentalWebSocketEnabled(bool); | 111 void setExperimentalWebSocketEnabled(bool); |
| 112 void setLangAttributeAwareFormControlUIEnabled(bool); | 112 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 113 void setStyleScopedEnabled(bool); | 113 void setStyleScopedEnabled(bool); |
| 114 | 114 |
| 115 private: | 115 private: |
| 116 explicit InternalSettings(Page*); | 116 explicit InternalSettings(Page*); |
| 117 | 117 |
| 118 Settings* settings() const; | 118 Settings* settings() const; |
| 119 Page* page() const { return m_page; } | 119 Page* page() const { return m_page; } |
| 120 static const char* supplementName(); | 120 static const char* supplementName(); |
| 121 | 121 |
| 122 Page* m_page; | 122 Page* m_page; |
| 123 Backup m_backup; | 123 Backup m_backup; |
| 124 }; | 124 }; |
| 125 | 125 |
| 126 } // namespace WebCore | 126 } // namespace WebCore |
| 127 | 127 |
| 128 #endif | 128 #endif |
| OLD | NEW |