| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 public: | 46 public: |
| 47 class Backup { | 47 class Backup { |
| 48 public: | 48 public: |
| 49 explicit Backup(Settings*); | 49 explicit Backup(Settings*); |
| 50 void restoreTo(Settings*); | 50 void restoreTo(Settings*); |
| 51 | 51 |
| 52 bool m_originalCSSExclusionsEnabled; | 52 bool m_originalCSSExclusionsEnabled; |
| 53 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 53 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 54 bool m_originalExperimentalWebSocketEnabled; | 54 bool m_originalExperimentalWebSocketEnabled; |
| 55 bool m_originalStyleScoped; | 55 bool m_originalStyleScoped; |
| 56 bool m_originalCSP; |
| 56 bool m_originalOverlayScrollbarsEnabled; | 57 bool m_originalOverlayScrollbarsEnabled; |
| 57 EditingBehaviorType m_originalEditingBehavior; | 58 EditingBehaviorType m_originalEditingBehavior; |
| 58 bool m_originalTextAutosizingEnabled; | 59 bool m_originalTextAutosizingEnabled; |
| 59 IntSize m_originalTextAutosizingWindowSizeOverride; | 60 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 60 float m_originalAccessibilityFontScaleFactor; | 61 float m_originalAccessibilityFontScaleFactor; |
| 61 String m_originalMediaTypeOverride; | 62 String m_originalMediaTypeOverride; |
| 62 bool m_originalMockScrollbarsEnabled; | 63 bool m_originalMockScrollbarsEnabled; |
| 63 bool m_langAttributeAwareFormControlUIEnabled; | 64 bool m_langAttributeAwareFormControlUIEnabled; |
| 64 bool m_imagesEnabled; | 65 bool m_imagesEnabled; |
| 65 bool m_shouldDisplaySubtitles; | 66 bool m_shouldDisplaySubtitles; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 112 |
| 112 // FIXME: The following are RuntimeEnabledFeatures and likely | 113 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 113 // cannot be changed after process start. These setters should | 114 // cannot be changed after process start. These setters should |
| 114 // be removed or moved onto internals.runtimeFlags: | 115 // be removed or moved onto internals.runtimeFlags: |
| 115 void setAuthorShadowDOMForAnyElementEnabled(bool); | 116 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 116 void setCSSExclusionsEnabled(bool); | 117 void setCSSExclusionsEnabled(bool); |
| 117 void setExperimentalWebSocketEnabled(bool); | 118 void setExperimentalWebSocketEnabled(bool); |
| 118 void setLangAttributeAwareFormControlUIEnabled(bool); | 119 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 119 void setOverlayScrollbarsEnabled(bool); | 120 void setOverlayScrollbarsEnabled(bool); |
| 120 void setStyleScopedEnabled(bool); | 121 void setStyleScopedEnabled(bool); |
| 122 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 121 | 123 |
| 122 private: | 124 private: |
| 123 explicit InternalSettings(Page*); | 125 explicit InternalSettings(Page*); |
| 124 | 126 |
| 125 Settings* settings() const; | 127 Settings* settings() const; |
| 126 Page* page() const { return m_page; } | 128 Page* page() const { return m_page; } |
| 127 static const char* supplementName(); | 129 static const char* supplementName(); |
| 128 | 130 |
| 129 Page* m_page; | 131 Page* m_page; |
| 130 Backup m_backup; | 132 Backup m_backup; |
| 131 }; | 133 }; |
| 132 | 134 |
| 133 } // namespace WebCore | 135 } // namespace WebCore |
| 134 | 136 |
| 135 #endif | 137 #endif |
| OLD | NEW |