| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 #endif | 54 #endif |
| 55 DEFINE_WRAPPERTYPEINFO(); | 55 DEFINE_WRAPPERTYPEINFO(); |
| 56 public: | 56 public: |
| 57 class Backup { | 57 class Backup { |
| 58 public: | 58 public: |
| 59 explicit Backup(Settings*); | 59 explicit Backup(Settings*); |
| 60 void restoreTo(Settings*); | 60 void restoreTo(Settings*); |
| 61 | 61 |
| 62 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 62 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
| 63 bool m_originalCSP; | 63 bool m_originalCSP; |
| 64 bool m_originalCSSStickyPositionEnabled; |
| 64 bool m_originalOverlayScrollbarsEnabled; | 65 bool m_originalOverlayScrollbarsEnabled; |
| 65 EditingBehaviorType m_originalEditingBehavior; | 66 EditingBehaviorType m_originalEditingBehavior; |
| 66 bool m_originalTextAutosizingEnabled; | 67 bool m_originalTextAutosizingEnabled; |
| 67 IntSize m_originalTextAutosizingWindowSizeOverride; | 68 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 68 float m_originalAccessibilityFontScaleFactor; | 69 float m_originalAccessibilityFontScaleFactor; |
| 69 String m_originalMediaTypeOverride; | 70 String m_originalMediaTypeOverride; |
| 70 WebDisplayMode m_originalDisplayModeOverride; | 71 WebDisplayMode m_originalDisplayModeOverride; |
| 71 bool m_originalMockScrollbarsEnabled; | 72 bool m_originalMockScrollbarsEnabled; |
| 72 bool m_originalMockGestureTapHighlightsEnabled; | 73 bool m_originalMockGestureTapHighlightsEnabled; |
| 73 bool m_langAttributeAwareFormControlUIEnabled; | 74 bool m_langAttributeAwareFormControlUIEnabled; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 void setTextTrackKindUserPreference(const String& preference, ExceptionState
&); | 112 void setTextTrackKindUserPreference(const String& preference, ExceptionState
&); |
| 112 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; | 113 void setAccessibilityFontScaleFactor(float fontScaleFactor, ExceptionState&)
; |
| 113 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); | 114 void setTextAutosizingWindowSizeOverride(int width, int height, ExceptionSta
te&); |
| 114 void setViewportEnabled(bool, ExceptionState&); | 115 void setViewportEnabled(bool, ExceptionState&); |
| 115 void setViewportMetaEnabled(bool, ExceptionState&); | 116 void setViewportMetaEnabled(bool, ExceptionState&); |
| 116 | 117 |
| 117 // FIXME: The following are RuntimeEnabledFeatures and likely | 118 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 118 // cannot be changed after process start. These setters should | 119 // cannot be changed after process start. These setters should |
| 119 // be removed or moved onto internals.runtimeFlags: | 120 // be removed or moved onto internals.runtimeFlags: |
| 120 void setAuthorShadowDOMForAnyElementEnabled(bool); | 121 void setAuthorShadowDOMForAnyElementEnabled(bool); |
| 122 void setCSSStickyPositionEnabled(bool); |
| 121 void setLangAttributeAwareFormControlUIEnabled(bool); | 123 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 122 void setOverlayScrollbarsEnabled(bool); | 124 void setOverlayScrollbarsEnabled(bool); |
| 123 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 125 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 124 void setImageColorProfilesEnabled(bool); | 126 void setImageColorProfilesEnabled(bool); |
| 125 void setImageAnimationPolicy(const String&, ExceptionState&); | 127 void setImageAnimationPolicy(const String&, ExceptionState&); |
| 126 void setScrollTopLeftInteropEnabled(bool); | 128 void setScrollTopLeftInteropEnabled(bool); |
| 127 void setLinkHeaderEnabled(bool); | 129 void setLinkHeaderEnabled(bool); |
| 128 | 130 |
| 129 DECLARE_VIRTUAL_TRACE(); | 131 DECLARE_VIRTUAL_TRACE(); |
| 130 | 132 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 142 Page* page() const { return m_page; } | 144 Page* page() const { return m_page; } |
| 143 static const char* supplementName(); | 145 static const char* supplementName(); |
| 144 | 146 |
| 145 RawPtrWillBeWeakMember<Page> m_page; | 147 RawPtrWillBeWeakMember<Page> m_page; |
| 146 Backup m_backup; | 148 Backup m_backup; |
| 147 }; | 149 }; |
| 148 | 150 |
| 149 } // namespace blink | 151 } // namespace blink |
| 150 | 152 |
| 151 #endif // InternalSettings_h | 153 #endif // InternalSettings_h |
| OLD | NEW |