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