| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 #include "core/editing/EditingBehaviorTypes.h" | 30 #include "core/editing/EditingBehaviorTypes.h" |
| 31 #include "core/page/Page.h" | 31 #include "core/page/Page.h" |
| 32 #include "core/testing/InternalSettingsGenerated.h" | 32 #include "core/testing/InternalSettingsGenerated.h" |
| 33 #include "platform/geometry/IntSize.h" | 33 #include "platform/geometry/IntSize.h" |
| 34 #include "platform/graphics/ImageAnimationPolicy.h" | 34 #include "platform/graphics/ImageAnimationPolicy.h" |
| 35 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
| 36 #include "platform/wtf/Allocator.h" | 36 #include "platform/wtf/Allocator.h" |
| 37 #include "platform/wtf/text/WTFString.h" | 37 #include "platform/wtf/text/WTFString.h" |
| 38 #include "public/platform/WebDisplayMode.h" | 38 #include "public/platform/WebDisplayMode.h" |
| 39 #include "public/web/WebDataSaverFlag.h" |
| 39 | 40 |
| 40 namespace blink { | 41 namespace blink { |
| 41 | 42 |
| 42 class ExceptionState; | 43 class ExceptionState; |
| 43 class Page; | 44 class Page; |
| 44 class Settings; | 45 class Settings; |
| 45 | 46 |
| 46 class InternalSettings final : public InternalSettingsGenerated, | 47 class InternalSettings final : public InternalSettingsGenerated, |
| 47 public Supplement<Page> { | 48 public Supplement<Page> { |
| 48 USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 49 USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 ExceptionState&); | 121 ExceptionState&); |
| 121 void setTextAutosizingWindowSizeOverride(int width, | 122 void setTextAutosizingWindowSizeOverride(int width, |
| 122 int height, | 123 int height, |
| 123 ExceptionState&); | 124 ExceptionState&); |
| 124 void setViewportEnabled(bool, ExceptionState&); | 125 void setViewportEnabled(bool, ExceptionState&); |
| 125 void setViewportMetaEnabled(bool, ExceptionState&); | 126 void setViewportMetaEnabled(bool, ExceptionState&); |
| 126 void setViewportStyle(const String& preference, ExceptionState&); | 127 void setViewportStyle(const String& preference, ExceptionState&); |
| 127 void setCompositorWorkerEnabled(bool, ExceptionState&); | 128 void setCompositorWorkerEnabled(bool, ExceptionState&); |
| 128 void setPresentationReceiver(bool, ExceptionState&); | 129 void setPresentationReceiver(bool, ExceptionState&); |
| 129 void setAutoplayPolicy(const String&, ExceptionState&); | 130 void setAutoplayPolicy(const String&, ExceptionState&); |
| 131 void setDataSaverEnabled(bool, ExceptionState&); |
| 130 | 132 |
| 131 // FIXME: The following are RuntimeEnabledFeatures and likely | 133 // FIXME: The following are RuntimeEnabledFeatures and likely |
| 132 // cannot be changed after process start. These setters should | 134 // cannot be changed after process start. These setters should |
| 133 // be removed or moved onto internals.runtimeFlags: | 135 // be removed or moved onto internals.runtimeFlags: |
| 134 void setCSSStickyPositionEnabled(bool); | 136 void setCSSStickyPositionEnabled(bool); |
| 135 void setLangAttributeAwareFormControlUIEnabled(bool); | 137 void setLangAttributeAwareFormControlUIEnabled(bool); |
| 136 void setOverlayScrollbarsEnabled(bool); | 138 void setOverlayScrollbarsEnabled(bool); |
| 137 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 139 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
| 138 void setImageAnimationPolicy(const String&, ExceptionState&); | 140 void setImageAnimationPolicy(const String&, ExceptionState&); |
| 139 void setScrollTopLeftInteropEnabled(bool); | 141 void setScrollTopLeftInteropEnabled(bool); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 153 Settings* GetSettings() const; | 155 Settings* GetSettings() const; |
| 154 Page* GetPage() const { return GetSupplementable(); } | 156 Page* GetPage() const { return GetSupplementable(); } |
| 155 static const char* SupplementName(); | 157 static const char* SupplementName(); |
| 156 | 158 |
| 157 Backup backup_; | 159 Backup backup_; |
| 158 }; | 160 }; |
| 159 | 161 |
| 160 } // namespace blink | 162 } // namespace blink |
| 161 | 163 |
| 162 #endif // InternalSettings_h | 164 #endif // InternalSettings_h |
| OLD | NEW |