| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 IntSize m_originalTextAutosizingWindowSizeOverride; | 63 IntSize m_originalTextAutosizingWindowSizeOverride; |
| 64 float m_originalAccessibilityFontScaleFactor; | 64 float m_originalAccessibilityFontScaleFactor; |
| 65 String m_originalMediaTypeOverride; | 65 String m_originalMediaTypeOverride; |
| 66 WebDisplayMode m_originalDisplayModeOverride; | 66 WebDisplayMode m_originalDisplayModeOverride; |
| 67 bool m_originalMockScrollbarsEnabled; | 67 bool m_originalMockScrollbarsEnabled; |
| 68 bool m_originalMockGestureTapHighlightsEnabled; | 68 bool m_originalMockGestureTapHighlightsEnabled; |
| 69 bool m_langAttributeAwareFormControlUIEnabled; | 69 bool m_langAttributeAwareFormControlUIEnabled; |
| 70 bool m_imagesEnabled; | 70 bool m_imagesEnabled; |
| 71 String m_defaultVideoPosterURL; | 71 String m_defaultVideoPosterURL; |
| 72 bool m_originalLayerSquashingEnabled; | 72 bool m_originalLayerSquashingEnabled; |
| 73 bool m_originalImageColorProfilesEnabled; | |
| 74 ImageAnimationPolicy m_originalImageAnimationPolicy; | 73 ImageAnimationPolicy m_originalImageAnimationPolicy; |
| 75 bool m_originalScrollTopLeftInteropEnabled; | 74 bool m_originalScrollTopLeftInteropEnabled; |
| 76 bool m_originalCompositorWorkerEnabled; | 75 bool m_originalCompositorWorkerEnabled; |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 static InternalSettings* create(Page& page) | 78 static InternalSettings* create(Page& page) |
| 80 { | 79 { |
| 81 return new InternalSettings(page); | 80 return new InternalSettings(page); |
| 82 } | 81 } |
| 83 static InternalSettings* from(Page&); | 82 static InternalSettings* from(Page&); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 109 void setViewportStyle(const String& preference, ExceptionState&); | 108 void setViewportStyle(const String& preference, ExceptionState&); |
| 110 void setCompositorWorkerEnabled(bool, ExceptionState&); | 109 void setCompositorWorkerEnabled(bool, ExceptionState&); |
| 111 | 110 |
| 112 // FIXME: The following are RuntimeEnabledFeatures and likely | 111 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 113 // cannot be changed after process start. These setters should | 112 // cannot be changed after process start. These setters should |
| 114 // be removed or moved onto internals.runtimeFlags: | 113 // be removed or moved onto internals.runtimeFlags: |
| 115 void setCSSStickyPositionEnabled(bool); | 114 void setCSSStickyPositionEnabled(bool); |
| 116 void setLangAttributeAwareFormControlUIEnabled(bool); | 115 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 117 void setOverlayScrollbarsEnabled(bool); | 116 void setOverlayScrollbarsEnabled(bool); |
| 118 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 117 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 119 void setImageColorProfilesEnabled(bool); | |
| 120 void setImageAnimationPolicy(const String&, ExceptionState&); | 118 void setImageAnimationPolicy(const String&, ExceptionState&); |
| 121 void setScrollTopLeftInteropEnabled(bool); | 119 void setScrollTopLeftInteropEnabled(bool); |
| 122 void setLinkHeaderEnabled(bool); | 120 void setLinkHeaderEnabled(bool); |
| 123 | 121 |
| 124 DECLARE_VIRTUAL_TRACE(); | 122 DECLARE_VIRTUAL_TRACE(); |
| 125 | 123 |
| 126 void setAvailablePointerTypes(const String&, ExceptionState&); | 124 void setAvailablePointerTypes(const String&, ExceptionState&); |
| 127 void setPrimaryPointerType(const String&, ExceptionState&); | 125 void setPrimaryPointerType(const String&, ExceptionState&); |
| 128 void setAvailableHoverTypes(const String&, ExceptionState&); | 126 void setAvailableHoverTypes(const String&, ExceptionState&); |
| 129 void setPrimaryHoverType(const String&, ExceptionState&); | 127 void setPrimaryHoverType(const String&, ExceptionState&); |
| 130 void setDnsPrefetchLogging(bool, ExceptionState&); | 128 void setDnsPrefetchLogging(bool, ExceptionState&); |
| 131 void setPreloadLogging(bool, ExceptionState&); | 129 void setPreloadLogging(bool, ExceptionState&); |
| 132 | 130 |
| 133 private: | 131 private: |
| 134 explicit InternalSettings(Page&); | 132 explicit InternalSettings(Page&); |
| 135 | 133 |
| 136 Settings* settings() const; | 134 Settings* settings() const; |
| 137 Page* page() const { return m_page; } | 135 Page* page() const { return m_page; } |
| 138 static const char* supplementName(); | 136 static const char* supplementName(); |
| 139 | 137 |
| 140 WeakMember<Page> m_page; | 138 WeakMember<Page> m_page; |
| 141 Backup m_backup; | 139 Backup m_backup; |
| 142 }; | 140 }; |
| 143 | 141 |
| 144 } // namespace blink | 142 } // namespace blink |
| 145 | 143 |
| 146 #endif // InternalSettings_h | 144 #endif // InternalSettings_h |
| OLD | NEW |