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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 IntSize m_originalTextAutosizingWindowSizeOverride; | 65 IntSize m_originalTextAutosizingWindowSizeOverride; |
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 }; | 76 }; |
76 | 77 |
77 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 78 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) |
78 { | 79 { |
79 return adoptRefWillBeNoop(new InternalSettings(page)); | 80 return adoptRefWillBeNoop(new InternalSettings(page)); |
80 } | 81 } |
81 static InternalSettings* from(Page&); | 82 static InternalSettings* from(Page&); |
82 | 83 |
83 #if !ENABLE(OILPAN) | 84 #if !ENABLE(OILPAN) |
84 void hostDestroyed() { m_page = nullptr; } | 85 void hostDestroyed() { m_page = nullptr; } |
(...skipping 25 matching lines...) Expand all Loading... |
110 // ready (crbug.com/261605). | 111 // ready (crbug.com/261605). |
111 void setLayerSquashingEnabled(bool, ExceptionState&); | 112 void setLayerSquashingEnabled(bool, ExceptionState&); |
112 | 113 |
113 // FIXME: The following are RuntimeEnabledFeatures and likely | 114 // FIXME: The following are RuntimeEnabledFeatures and likely |
114 // cannot be changed after process start. These setters should | 115 // cannot be changed after process start. These setters should |
115 // be removed or moved onto internals.runtimeFlags: | 116 // be removed or moved onto internals.runtimeFlags: |
116 void setAuthorShadowDOMForAnyElementEnabled(bool); | 117 void setAuthorShadowDOMForAnyElementEnabled(bool); |
117 void setLangAttributeAwareFormControlUIEnabled(bool); | 118 void setLangAttributeAwareFormControlUIEnabled(bool); |
118 void setOverlayScrollbarsEnabled(bool); | 119 void setOverlayScrollbarsEnabled(bool); |
119 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 120 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 121 void setLaxMixedContentCheckingEnabled(bool); |
120 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); | 122 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); |
121 void setLaxMixedContentCheckingEnabled(bool); | 123 void setImageColorProfilesEnabled(bool); |
122 | 124 |
123 virtual void trace(Visitor*) override; | 125 virtual void trace(Visitor*) override; |
124 | 126 |
125 void setAvailablePointerTypes(const String&, ExceptionState&); | 127 void setAvailablePointerTypes(const String&, ExceptionState&); |
126 void setPrimaryPointerType(const String&, ExceptionState&); | 128 void setPrimaryPointerType(const String&, ExceptionState&); |
127 void setAvailableHoverTypes(const String&, ExceptionState&); | 129 void setAvailableHoverTypes(const String&, ExceptionState&); |
128 void setPrimaryHoverType(const String&, ExceptionState&); | 130 void setPrimaryHoverType(const String&, ExceptionState&); |
129 | 131 |
130 private: | 132 private: |
131 explicit InternalSettings(Page&); | 133 explicit InternalSettings(Page&); |
132 | 134 |
133 Settings* settings() const; | 135 Settings* settings() const; |
134 Page* page() const { return m_page; } | 136 Page* page() const { return m_page; } |
135 static const char* supplementName(); | 137 static const char* supplementName(); |
136 | 138 |
137 RawPtrWillBeWeakMember<Page> m_page; | 139 RawPtrWillBeWeakMember<Page> m_page; |
138 Backup m_backup; | 140 Backup m_backup; |
139 }; | 141 }; |
140 | 142 |
141 } // namespace blink | 143 } // namespace blink |
142 | 144 |
143 #endif // InternalSettings_h | 145 #endif // InternalSettings_h |
OLD | NEW |