| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); |
| 49 #else | 49 #else |
| 50 class InternalSettings FINAL : public InternalSettingsGenerated { | 50 class InternalSettings FINAL : public InternalSettingsGenerated { |
| 51 #endif | 51 #endif |
| 52 public: | 52 public: |
| 53 class Backup { | 53 class Backup { |
| 54 public: | 54 public: |
| 55 explicit Backup(Settings*); | 55 explicit Backup(Settings*); |
| 56 void restoreTo(Settings*); | 56 void restoreTo(Settings*); |
| 57 | 57 |
| 58 bool m_originalCSSExclusionsEnabled; | |
| 59 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 58 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 60 bool m_originalCSP; | 59 bool m_originalCSP; |
| 61 bool m_originalLaxMixedContentCheckingEnabled; | 60 bool m_originalLaxMixedContentCheckingEnabled; |
| 62 bool m_originalOverlayScrollbarsEnabled; | 61 bool m_originalOverlayScrollbarsEnabled; |
| 63 EditingBehaviorType m_originalEditingBehavior; | 62 EditingBehaviorType m_originalEditingBehavior; |
| 64 bool m_originalTextAutosizingEnabled; | 63 bool m_originalTextAutosizingEnabled; |
| 65 IntSize m_originalTextAutosizingWindowSizeOverride; | 64 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 66 float m_originalAccessibilityFontScaleFactor; | 65 float m_originalAccessibilityFontScaleFactor; |
| 67 String m_originalMediaTypeOverride; | 66 String m_originalMediaTypeOverride; |
| 68 bool m_originalMockScrollbarsEnabled; | 67 bool m_originalMockScrollbarsEnabled; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 void setViewportEnabled(bool, ExceptionState&); | 104 void setViewportEnabled(bool, ExceptionState&); |
| 106 | 105 |
| 107 // FIXME: This is a temporary flag and should be removed once squashing is | 106 // FIXME: This is a temporary flag and should be removed once squashing is |
| 108 // ready (crbug.com/261605). | 107 // ready (crbug.com/261605). |
| 109 void setLayerSquashingEnabled(bool, ExceptionState&); | 108 void setLayerSquashingEnabled(bool, ExceptionState&); |
| 110 | 109 |
| 111 // FIXME: The following are RuntimeEnabledFeatures and likely | 110 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 112 // cannot be changed after process start. These setters should | 111 // cannot be changed after process start. These setters should |
| 113 // be removed or moved onto internals.runtimeFlags: | 112 // be removed or moved onto internals.runtimeFlags: |
| 114 void setAuthorShadowDOMForAnyElementEnabled(bool); | 113 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 115 void setCSSExclusionsEnabled(bool); | |
| 116 void setLangAttributeAwareFormControlUIEnabled(bool); | 114 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 117 void setOverlayScrollbarsEnabled(bool); | 115 void setOverlayScrollbarsEnabled(bool); |
| 118 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 116 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 119 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); | 117 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); |
| 120 void setLaxMixedContentCheckingEnabled(bool); | 118 void setLaxMixedContentCheckingEnabled(bool); |
| 121 | 119 |
| 122 virtual void trace(Visitor*) OVERRIDE; | 120 virtual void trace(Visitor*) OVERRIDE; |
| 123 | 121 |
| 124 private: | 122 private: |
| 125 explicit InternalSettings(Page&); | 123 explicit InternalSettings(Page&); |
| 126 | 124 |
| 127 Settings* settings() const; | 125 Settings* settings() const; |
| 128 Page* page() const { return m_page; } | 126 Page* page() const { return m_page; } |
| 129 static const char* supplementName(); | 127 static const char* supplementName(); |
| 130 | 128 |
| 131 RawPtrWillBeWeakMember<Page> m_page; | 129 RawPtrWillBeWeakMember<Page> m_page; |
| 132 Backup m_backup; | 130 Backup m_backup; |
| 133 }; | 131 }; |
| 134 | 132 |
| 135 } // namespace WebCore | 133 } // namespace WebCore |
| 136 | 134 |
| 137 #endif | 135 #endif |
| OLD | NEW |