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_originalStyleScoped; | 56 bool m_originalStyleScoped; |
58 EditingBehaviorType m_originalEditingBehavior; | 57 EditingBehaviorType m_originalEditingBehavior; |
59 bool m_originalTextAutosizingEnabled; | 58 bool m_originalTextAutosizingEnabled; |
60 IntSize m_originalTextAutosizingWindowSizeOverride; | 59 IntSize m_originalTextAutosizingWindowSizeOverride; |
61 float m_originalTextAutosizingFontScaleFactor; | 60 float m_originalTextAutosizingFontScaleFactor; |
62 IntSize m_originalResolutionOverride; | 61 IntSize m_originalResolutionOverride; |
63 String m_originalMediaTypeOverride; | 62 String m_originalMediaTypeOverride; |
64 bool m_originalDialogElementEnabled; | 63 bool m_originalDialogElementEnabled; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void setResolutionOverride(int dotsPerCSSInchHorizontally, int dotsPerCSSInc
hVertically, ExceptionCode&); | 98 void setResolutionOverride(int dotsPerCSSInchHorizontally, int dotsPerCSSInc
hVertically, ExceptionCode&); |
100 void setTextAutosizingEnabled(bool, ExceptionCode&); | 99 void setTextAutosizingEnabled(bool, ExceptionCode&); |
101 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; | 100 void setTextAutosizingFontScaleFactor(float fontScaleFactor, ExceptionCode&)
; |
102 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); | 101 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionCod
e&); |
103 void setTouchEventEmulationEnabled(bool, ExceptionCode&); | 102 void setTouchEventEmulationEnabled(bool, ExceptionCode&); |
104 void setUsesOverlayScrollbars(bool, ExceptionCode&); | 103 void setUsesOverlayScrollbars(bool, ExceptionCode&); |
105 | 104 |
106 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&); | 105 void setShouldDisplayTrackKind(const String& kind, bool, ExceptionCode&); |
107 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); | 106 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); |
108 | 107 |
109 // cssVariablesEnabled is not backed by RuntimeEnabledFeatures, but should b
e. | |
110 bool cssVariablesEnabled(ExceptionCode&); | |
111 void setCSSVariablesEnabled(bool, ExceptionCode&); | |
112 | |
113 // FIXME: The following are RuntimeEnabledFeatures and likely | 108 // FIXME: The following are RuntimeEnabledFeatures and likely |
114 // cannot be changed after process start. These setters should | 109 // cannot be changed after process start. These setters should |
115 // be removed or moved onto internals.runtimeFlags: | 110 // be removed or moved onto internals.runtimeFlags: |
116 void setAuthorShadowDOMForAnyElementEnabled(bool); | 111 void setAuthorShadowDOMForAnyElementEnabled(bool); |
117 void setCSSExclusionsEnabled(bool); | 112 void setCSSExclusionsEnabled(bool); |
118 void setDialogElementEnabled(bool); | 113 void setDialogElementEnabled(bool); |
119 void setExperimentalShadowDOMEnabled(bool); | 114 void setExperimentalShadowDOMEnabled(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 |