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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 WebDisplayMode m_originalDisplayModeOverride; | 73 WebDisplayMode m_originalDisplayModeOverride; |
74 bool m_originalMockScrollbarsEnabled; | 74 bool m_originalMockScrollbarsEnabled; |
75 bool m_originalMockGestureTapHighlightsEnabled; | 75 bool m_originalMockGestureTapHighlightsEnabled; |
76 bool m_langAttributeAwareFormControlUIEnabled; | 76 bool m_langAttributeAwareFormControlUIEnabled; |
77 bool m_imagesEnabled; | 77 bool m_imagesEnabled; |
78 String m_defaultVideoPosterURL; | 78 String m_defaultVideoPosterURL; |
79 bool m_originalLayerSquashingEnabled; | 79 bool m_originalLayerSquashingEnabled; |
80 bool m_originalImageColorProfilesEnabled; | 80 bool m_originalImageColorProfilesEnabled; |
81 ImageAnimationPolicy m_originalImageAnimationPolicy; | 81 ImageAnimationPolicy m_originalImageAnimationPolicy; |
82 bool m_originalScrollTopLeftInteropEnabled; | 82 bool m_originalScrollTopLeftInteropEnabled; |
| 83 bool m_originalCompositorWorkerEnabled; |
83 }; | 84 }; |
84 | 85 |
85 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) | 86 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) |
86 { | 87 { |
87 return adoptRefWillBeNoop(new InternalSettings(page)); | 88 return adoptRefWillBeNoop(new InternalSettings(page)); |
88 } | 89 } |
89 static InternalSettings* from(Page&); | 90 static InternalSettings* from(Page&); |
90 | 91 |
91 #if !ENABLE(OILPAN) | 92 #if !ENABLE(OILPAN) |
92 void hostDestroyed() { m_page = nullptr; } | 93 void hostDestroyed() { m_page = nullptr; } |
(...skipping 16 matching lines...) Expand all Loading... |
109 void setMediaTypeOverride(const String& mediaType, ExceptionState&); | 110 void setMediaTypeOverride(const String& mediaType, ExceptionState&); |
110 void setDisplayModeOverride(const String& displayMode, ExceptionState&); | 111 void setDisplayModeOverride(const String& displayMode, ExceptionState&); |
111 void setMockScrollbarsEnabled(bool, ExceptionState&); | 112 void setMockScrollbarsEnabled(bool, ExceptionState&); |
112 void setMockGestureTapHighlightsEnabled(bool, ExceptionState&); | 113 void setMockGestureTapHighlightsEnabled(bool, ExceptionState&); |
113 void setTextAutosizingEnabled(bool, ExceptionState&); | 114 void setTextAutosizingEnabled(bool, ExceptionState&); |
114 void setTextTrackKindUserPreference(const String& preference, ExceptionState
&); | 115 void setTextTrackKindUserPreference(const String& preference, ExceptionState
&); |
115 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; | 116 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; |
116 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); | 117 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); |
117 void setViewportEnabled(bool, ExceptionState&); | 118 void setViewportEnabled(bool, ExceptionState&); |
118 void setViewportMetaEnabled(bool, ExceptionState&); | 119 void setViewportMetaEnabled(bool, ExceptionState&); |
| 120 void setCompositorWorkerEnabled(bool, ExceptionState&); |
119 | 121 |
120 // FIXME: The following are RuntimeEnabledFeatures and likely | 122 // FIXME: The following are RuntimeEnabledFeatures and likely |
121 // cannot be changed after process start. These setters should | 123 // cannot be changed after process start. These setters should |
122 // be removed or moved onto internals.runtimeFlags: | 124 // be removed or moved onto internals.runtimeFlags: |
123 void setAuthorShadowDOMForAnyElementEnabled(bool); | 125 void setAuthorShadowDOMForAnyElementEnabled(bool); |
124 void setCSSStickyPositionEnabled(bool); | 126 void setCSSStickyPositionEnabled(bool); |
125 void setLangAttributeAwareFormControlUIEnabled(bool); | 127 void setLangAttributeAwareFormControlUIEnabled(bool); |
126 void setOverlayScrollbarsEnabled(bool); | 128 void setOverlayScrollbarsEnabled(bool); |
127 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 129 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
128 void setImageColorProfilesEnabled(bool); | 130 void setImageColorProfilesEnabled(bool); |
(...skipping 17 matching lines...) Expand all Loading... |
146 Page* page() const { return m_page; } | 148 Page* page() const { return m_page; } |
147 static const char* supplementName(); | 149 static const char* supplementName(); |
148 | 150 |
149 RawPtrWillBeWeakMember<Page> m_page; | 151 RawPtrWillBeWeakMember<Page> m_page; |
150 Backup m_backup; | 152 Backup m_backup; |
151 }; | 153 }; |
152 | 154 |
153 } // namespace blink | 155 } // namespace blink |
154 | 156 |
155 #endif // InternalSettings_h | 157 #endif // InternalSettings_h |
OLD | NEW |