| 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 class Settings; | 44 class Settings; |
| 45 | 45 |
| 46 class InternalSettings : public InternalSettingsGenerated { | 46 class InternalSettings : public InternalSettingsGenerated { |
| 47 public: | 47 public: |
| 48 class Backup { | 48 class Backup { |
| 49 public: | 49 public: |
| 50 explicit Backup(Settings*); | 50 explicit Backup(Settings*); |
| 51 void restoreTo(Settings*); | 51 void restoreTo(Settings*); |
| 52 | 52 |
| 53 bool m_originalCSSExclusionsEnabled; | 53 bool m_originalCSSExclusionsEnabled; |
| 54 bool m_originalCSSVariablesEnabled; | |
| 55 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 54 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 56 bool m_originalExperimentalShadowDOMEnabled; | 55 bool m_originalExperimentalShadowDOMEnabled; |
| 57 bool m_originalExperimentalWebSocketEnabled; | 56 bool m_originalExperimentalWebSocketEnabled; |
| 58 bool m_originalStyleScoped; | 57 bool m_originalStyleScoped; |
| 59 EditingBehaviorType m_originalEditingBehavior; | 58 EditingBehaviorType m_originalEditingBehavior; |
| 60 bool m_originalTextAutosizingEnabled; | 59 bool m_originalTextAutosizingEnabled; |
| 61 IntSize m_originalTextAutosizingWindowSizeOverride; | 60 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 62 float m_originalTextAutosizingFontScaleFactor; | 61 float m_originalTextAutosizingFontScaleFactor; |
| 63 String m_originalMediaTypeOverride; | 62 String m_originalMediaTypeOverride; |
| 64 bool m_originalDialogElementEnabled; | 63 bool m_originalDialogElementEnabled; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 void setMockScrollbarsEnabled(bool, ExceptionCode&); | 97 void setMockScrollbarsEnabled(bool, ExceptionCode&); |
| 99 void setTextAutosizingEnabled(bool, ExceptionCode&); | 98 void setTextAutosizingEnabled(bool, ExceptionCode&); |
| 100 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; | 99 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; |
| 101 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); | 100 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); |
| 102 void setTouchEventEmulationEnabled(bool, ExceptionCode&); | 101 void setTouchEventEmulationEnabled(bool, ExceptionCode&); |
| 103 void setUsesOverlayScrollbars(bool, ExceptionCode&); | 102 void setUsesOverlayScrollbars(bool, ExceptionCode&); |
| 104 | 103 |
| 105 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&); | 104 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&); |
| 106 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); | 105 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); |
| 107 | 106 |
| 108 // cssVariablesEnabled is not backed by RuntimeEnabledFeatures, but should b
e. | |
| 109 bool cssVariablesEnabled(ExceptionCode&); | |
| 110 void setCSSVariablesEnabled(bool, ExceptionCode&); | |
| 111 | |
| 112 // FIXME: The following are RuntimeEnabledFeatures and likely | 107 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 113 // cannot be changed after process start. These setters should | 108 // cannot be changed after process start. These setters should |
| 114 // be removed or moved onto internals.runtimeFlags: | 109 // be removed or moved onto internals.runtimeFlags: |
| 115 void setAuthorShadowDOMForAnyElementEnabled(bool); | 110 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 116 void setCSSExclusionsEnabled(bool); | 111 void setCSSExclusionsEnabled(bool); |
| 117 void setDialogElementEnabled(bool); | 112 void setDialogElementEnabled(bool); |
| 118 void setExperimentalShadowDOMEnabled(bool); | 113 void setExperimentalShadowDOMEnabled(bool); |
| 119 void setExperimentalWebSocketEnabled(bool); | 114 void setExperimentalWebSocketEnabled(bool); |
| 120 void setLangAttributeAwareFormControlUIEnabled(bool); | 115 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 121 void setLazyLayoutEnabled(bool); | 116 void setLazyLayoutEnabled(bool); |
| 122 void setStyleScopedEnabled(bool); | 117 void setStyleScopedEnabled(bool); |
| 123 | 118 |
| 124 private: | 119 private: |
| 125 explicit InternalSettings(Page*); | 120 explicit InternalSettings(Page*); |
| 126 | 121 |
| 127 Settings* settings() const; | 122 Settings* settings() const; |
| 128 Page* page() const { return m_page; } | 123 Page* page() const { return m_page; } |
| 129 static const char* supplementName(); | 124 static const char* supplementName(); |
| 130 | 125 |
| 131 Page* m_page; | 126 Page* m_page; |
| 132 Backup m_backup; | 127 Backup m_backup; |
| 133 }; | 128 }; |
| 134 | 129 |
| 135 } // namespace WebCore | 130 } // namespace WebCore |
| 136 | 131 |
| 137 #endif | 132 #endif |
| OLD | NEW |