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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
66 float m_originalAccessibilityFontScaleFactor; | 66 float m_originalAccessibilityFontScaleFactor; |
67 String m_originalMediaTypeOverride; | 67 String m_originalMediaTypeOverride; |
68 bool m_originalMockScrollbarsEnabled; | 68 bool m_originalMockScrollbarsEnabled; |
69 bool m_originalMockGestureTapHighlightsEnabled; | 69 bool m_originalMockGestureTapHighlightsEnabled; |
70 bool m_langAttributeAwareFormControlUIEnabled; | 70 bool m_langAttributeAwareFormControlUIEnabled; |
71 bool m_imagesEnabled; | 71 bool m_imagesEnabled; |
72 String m_defaultVideoPosterURL; | 72 String m_defaultVideoPosterURL; |
73 bool m_originalLayerSquashingEnabled; | 73 bool m_originalLayerSquashingEnabled; |
74 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ; | 74 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ; |
75 bool m_originalImageColorProfilesEnabled; | 75 bool m_originalImageColorProfilesEnabled; |
76 bool m_originalExperimentalAccessibilityFeaturesEnabled; | |
adamk
2014/12/16 01:54:49
Do you need this bit? I thought experimental featu
aboxhall
2014/12/16 04:15:26
Do you mean I should revert everything in core/tes
adamk
2014/12/16 18:25:14
Yes, sorry, that's what I meant to say. I think yo
| |
76 }; | 77 }; |
77 | 78 |
78 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 79 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) |
79 { | 80 { |
80 return adoptRefWillBeNoop(new InternalSettings(page)); | 81 return adoptRefWillBeNoop(new InternalSettings(page)); |
81 } | 82 } |
82 static InternalSettings* from(Page&); | 83 static InternalSettings* from(Page&); |
83 | 84 |
84 #if !ENABLE(OILPAN) | 85 #if !ENABLE(OILPAN) |
85 void hostDestroyed() { m_page = nullptr; } | 86 void hostDestroyed() { m_page = nullptr; } |
(...skipping 28 matching lines...) Expand all Loading... | |
114 // FIXME: The following are RuntimeEnabledFeatures and likely | 115 // FIXME: The following are RuntimeEnabledFeatures and likely |
115 // cannot be changed after process start. These setters should | 116 // cannot be changed after process start. These setters should |
116 // be removed or moved onto internals.runtimeFlags: | 117 // be removed or moved onto internals.runtimeFlags: |
117 void setAuthorShadowDOMForAnyElementEnabled(bool); | 118 void setAuthorShadowDOMForAnyElementEnabled(bool); |
118 void setLangAttributeAwareFormControlUIEnabled(bool); | 119 void setLangAttributeAwareFormControlUIEnabled(bool); |
119 void setOverlayScrollbarsEnabled(bool); | 120 void setOverlayScrollbarsEnabled(bool); |
120 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 121 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
121 void setLaxMixedContentCheckingEnabled(bool); | 122 void setLaxMixedContentCheckingEnabled(bool); |
122 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); | 123 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); |
123 void setImageColorProfilesEnabled(bool); | 124 void setImageColorProfilesEnabled(bool); |
125 void setExperimentalAccessibilityFeaturesEnabled(bool); | |
124 | 126 |
125 virtual void trace(Visitor*) override; | 127 virtual void trace(Visitor*) override; |
126 | 128 |
127 void setAvailablePointerTypes(const String&, ExceptionState&); | 129 void setAvailablePointerTypes(const String&, ExceptionState&); |
128 void setPrimaryPointerType(const String&, ExceptionState&); | 130 void setPrimaryPointerType(const String&, ExceptionState&); |
129 void setAvailableHoverTypes(const String&, ExceptionState&); | 131 void setAvailableHoverTypes(const String&, ExceptionState&); |
130 void setPrimaryHoverType(const String&, ExceptionState&); | 132 void setPrimaryHoverType(const String&, ExceptionState&); |
131 | 133 |
132 private: | 134 private: |
133 explicit InternalSettings(Page&); | 135 explicit InternalSettings(Page&); |
134 | 136 |
135 Settings* settings() const; | 137 Settings* settings() const; |
136 Page* page() const { return m_page; } | 138 Page* page() const { return m_page; } |
137 static const char* supplementName(); | 139 static const char* supplementName(); |
138 | 140 |
139 RawPtrWillBeWeakMember<Page> m_page; | 141 RawPtrWillBeWeakMember<Page> m_page; |
140 Backup m_backup; | 142 Backup m_backup; |
141 }; | 143 }; |
142 | 144 |
143 } // namespace blink | 145 } // namespace blink |
144 | 146 |
145 #endif // InternalSettings_h | 147 #endif // InternalSettings_h |
OLD | NEW |