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 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class Document; | 40 class Document; |
41 class ExceptionState; | 41 class ExceptionState; |
42 class LocalFrame; | 42 class LocalFrame; |
43 class Page; | 43 class Page; |
44 class Settings; | 44 class Settings; |
45 | 45 |
46 #if ENABLE(OILPAN) | 46 #if ENABLE(OILPAN) |
47 class InternalSettings FINAL : public InternalSettingsGenerated, public HeapSupp
lement<Page> { | 47 class InternalSettings final : public InternalSettingsGenerated, public HeapSupp
lement<Page> { |
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); | 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(InternalSettings); |
49 #else | 49 #else |
50 class InternalSettings FINAL : public InternalSettingsGenerated { | 50 class InternalSettings final : public InternalSettingsGenerated { |
51 #endif | 51 #endif |
52 DEFINE_WRAPPERTYPEINFO(); | 52 DEFINE_WRAPPERTYPEINFO(); |
53 public: | 53 public: |
54 class Backup { | 54 class Backup { |
55 public: | 55 public: |
56 explicit Backup(Settings*); | 56 explicit Backup(Settings*); |
57 void restoreTo(Settings*); | 57 void restoreTo(Settings*); |
58 | 58 |
59 bool m_originalAuthorShadowDOMForAnyElementEnabled; | 59 bool m_originalAuthorShadowDOMForAnyElementEnabled; |
60 bool m_originalCSP; | 60 bool m_originalCSP; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // FIXME: The following are RuntimeEnabledFeatures and likely | 113 // FIXME: The following are RuntimeEnabledFeatures and likely |
114 // cannot be changed after process start. These setters should | 114 // cannot be changed after process start. These setters should |
115 // be removed or moved onto internals.runtimeFlags: | 115 // be removed or moved onto internals.runtimeFlags: |
116 void setAuthorShadowDOMForAnyElementEnabled(bool); | 116 void setAuthorShadowDOMForAnyElementEnabled(bool); |
117 void setLangAttributeAwareFormControlUIEnabled(bool); | 117 void setLangAttributeAwareFormControlUIEnabled(bool); |
118 void setOverlayScrollbarsEnabled(bool); | 118 void setOverlayScrollbarsEnabled(bool); |
119 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); | 119 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); |
120 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); | 120 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); |
121 void setLaxMixedContentCheckingEnabled(bool); | 121 void setLaxMixedContentCheckingEnabled(bool); |
122 | 122 |
123 virtual void trace(Visitor*) OVERRIDE; | 123 virtual void trace(Visitor*) override; |
124 | 124 |
125 void setAvailablePointerTypes(const String&, ExceptionState&); | 125 void setAvailablePointerTypes(const String&, ExceptionState&); |
126 void setPrimaryPointerType(const String&, ExceptionState&); | 126 void setPrimaryPointerType(const String&, ExceptionState&); |
127 void setAvailableHoverTypes(const String&, ExceptionState&); | 127 void setAvailableHoverTypes(const String&, ExceptionState&); |
128 void setPrimaryHoverType(const String&, ExceptionState&); | 128 void setPrimaryHoverType(const String&, ExceptionState&); |
129 | 129 |
130 private: | 130 private: |
131 explicit InternalSettings(Page&); | 131 explicit InternalSettings(Page&); |
132 | 132 |
133 Settings* settings() const; | 133 Settings* settings() const; |
134 Page* page() const { return m_page; } | 134 Page* page() const { return m_page; } |
135 static const char* supplementName(); | 135 static const char* supplementName(); |
136 | 136 |
137 RawPtrWillBeWeakMember<Page> m_page; | 137 RawPtrWillBeWeakMember<Page> m_page; |
138 Backup m_backup; | 138 Backup m_backup; |
139 }; | 139 }; |
140 | 140 |
141 } // namespace blink | 141 } // namespace blink |
142 | 142 |
143 #endif // InternalSettings_h | 143 #endif // InternalSettings_h |
OLD | NEW |