| 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 | 120 |
| 123 DECLARE_VIRTUAL_TRACE(); | 121 DECLARE_VIRTUAL_TRACE(); |
| 124 | 122 |
| 125 void setAvailablePointerTypes(const String&, ExceptionState&); | 123 void setAvailablePointerTypes(const String&, ExceptionState&); |
| 126 void setPrimaryPointerType(const String&, ExceptionState&); | 124 void setPrimaryPointerType(const String&, ExceptionState&); |
| 127 void setAvailableHoverTypes(const String&, ExceptionState&); | 125 void setAvailableHoverTypes(const String&, ExceptionState&); |
| 128 void setPrimaryHoverType(const String&, ExceptionState&); | 126 void setPrimaryHoverType(const String&, ExceptionState&); |
| 129 void setDnsPrefetchLogging(bool, ExceptionState&); | 127 void setDnsPrefetchLogging(bool, ExceptionState&); |
| 130 void setPreloadLogging(bool, ExceptionState&); | 128 void setPreloadLogging(bool, ExceptionState&); |
| 131 | 129 |
| 132 private: | 130 private: |
| 133 explicit InternalSettings(Page&); | 131 explicit InternalSettings(Page&); |
| 134 | 132 |
| 135 Settings* settings() const; | 133 Settings* settings() const; |
| 136 Page* page() const { return m_page; } | 134 Page* page() const { return m_page; } |
| 137 static const char* supplementName(); | 135 static const char* supplementName(); |
| 138 | 136 |
| 139 WeakMember<Page> m_page; | 137 WeakMember<Page> m_page; |
| 140 Backup m_backup; | 138 Backup m_backup; |
| 141 }; | 139 }; |
| 142 | 140 |
| 143 } // namespace blink | 141 } // namespace blink |
| 144 | 142 |
| 145 #endif // InternalSettings_h | 143 #endif // InternalSettings_h |
| OLD | NEW |