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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 WebDisplayMode m_originalDisplayModeOverride; | 69 WebDisplayMode m_originalDisplayModeOverride; |
70 bool m_originalMockScrollbarsEnabled; | 70 bool m_originalMockScrollbarsEnabled; |
71 bool m_originalMockGestureTapHighlightsEnabled; | 71 bool m_originalMockGestureTapHighlightsEnabled; |
72 bool m_langAttributeAwareFormControlUIEnabled; | 72 bool m_langAttributeAwareFormControlUIEnabled; |
73 bool m_imagesEnabled; | 73 bool m_imagesEnabled; |
74 String m_defaultVideoPosterURL; | 74 String m_defaultVideoPosterURL; |
75 bool m_originalLayerSquashingEnabled; | 75 bool m_originalLayerSquashingEnabled; |
76 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled
; | 76 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled
; |
77 bool m_originalImageColorProfilesEnabled; | 77 bool m_originalImageColorProfilesEnabled; |
78 ImageAnimationPolicy m_originalImageAnimationPolicy; | 78 ImageAnimationPolicy m_originalImageAnimationPolicy; |
| 79 bool m_originalScrollTopLeftInteropEnabled; |
79 }; | 80 }; |
80 | 81 |
81 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 82 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) |
82 { | 83 { |
83 return adoptRefWillBeNoop(new InternalSettings(page)); | 84 return adoptRefWillBeNoop(new InternalSettings(page)); |
84 } | 85 } |
85 static InternalSettings* from(Page&); | 86 static InternalSettings* from(Page&); |
86 | 87 |
87 #if !ENABLE(OILPAN) | 88 #if !ENABLE(OILPAN) |
88 void hostDestroyed() { m_page = nullptr; } | 89 void hostDestroyed() { m_page = nullptr; } |
(...skipping 25 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 setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); | 122 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); |
122 void setImageColorProfilesEnabled(bool); | 123 void setImageColorProfilesEnabled(bool); |
123 void setImageAnimationPolicy(const String&, ExceptionState&); | 124 void setImageAnimationPolicy(const String&, ExceptionState&); |
| 125 void setScrollTopLeftInteropEnabled(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 |