Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(233)

Side by Side Diff: Source/core/testing/InternalSettings.h

Issue 802143002: AnimationPolicy setting is applied to SVG animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 12 matching lines...) Expand all
23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 */ 25 */
26 26
27 #ifndef InternalSettings_h 27 #ifndef InternalSettings_h
28 #define InternalSettings_h 28 #define InternalSettings_h
29 29
30 #include "core/InternalSettingsGenerated.h" 30 #include "core/InternalSettingsGenerated.h"
31 #include "core/editing/EditingBehaviorTypes.h" 31 #include "core/editing/EditingBehaviorTypes.h"
32 #include "platform/geometry/IntSize.h" 32 #include "platform/geometry/IntSize.h"
33 #include "platform/graphics/ImageAnimationPolicy.h"
33 #include "platform/heap/Handle.h" 34 #include "platform/heap/Handle.h"
34 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
35 #include "wtf/RefCounted.h" 36 #include "wtf/RefCounted.h"
36 #include "wtf/text/WTFString.h" 37 #include "wtf/text/WTFString.h"
37 38
38 namespace blink { 39 namespace blink {
39 40
40 class Document; 41 class Document;
41 class ExceptionState; 42 class ExceptionState;
42 class LocalFrame; 43 class LocalFrame;
(...skipping 23 matching lines...) Expand all
66 float m_originalAccessibilityFontScaleFactor; 67 float m_originalAccessibilityFontScaleFactor;
67 String m_originalMediaTypeOverride; 68 String m_originalMediaTypeOverride;
68 bool m_originalMockScrollbarsEnabled; 69 bool m_originalMockScrollbarsEnabled;
69 bool m_originalMockGestureTapHighlightsEnabled; 70 bool m_originalMockGestureTapHighlightsEnabled;
70 bool m_langAttributeAwareFormControlUIEnabled; 71 bool m_langAttributeAwareFormControlUIEnabled;
71 bool m_imagesEnabled; 72 bool m_imagesEnabled;
72 String m_defaultVideoPosterURL; 73 String m_defaultVideoPosterURL;
73 bool m_originalLayerSquashingEnabled; 74 bool m_originalLayerSquashingEnabled;
74 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ; 75 bool m_originalPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled ;
75 bool m_originalImageColorProfilesEnabled; 76 bool m_originalImageColorProfilesEnabled;
77 ImageAnimationPolicy m_originalImageAnimationPolicy;
76 }; 78 };
77 79
78 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page) 80 static PassRefPtrWillBeRawPtr<InternalSettings> create(Page& page)
79 { 81 {
80 return adoptRefWillBeNoop(new InternalSettings(page)); 82 return adoptRefWillBeNoop(new InternalSettings(page));
81 } 83 }
82 static InternalSettings* from(Page&); 84 static InternalSettings* from(Page&);
83 85
84 #if !ENABLE(OILPAN) 86 #if !ENABLE(OILPAN)
85 void hostDestroyed() { m_page = nullptr; } 87 void hostDestroyed() { m_page = nullptr; }
(...skipping 24 matching lines...) Expand all
110 // FIXME: The following are RuntimeEnabledFeatures and likely 112 // FIXME: The following are RuntimeEnabledFeatures and likely
111 // cannot be changed after process start. These setters should 113 // cannot be changed after process start. These setters should
112 // be removed or moved onto internals.runtimeFlags: 114 // be removed or moved onto internals.runtimeFlags:
113 void setAuthorShadowDOMForAnyElementEnabled(bool); 115 void setAuthorShadowDOMForAnyElementEnabled(bool);
114 void setLangAttributeAwareFormControlUIEnabled(bool); 116 void setLangAttributeAwareFormControlUIEnabled(bool);
115 void setOverlayScrollbarsEnabled(bool); 117 void setOverlayScrollbarsEnabled(bool);
116 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool); 118 void setExperimentalContentSecurityPolicyFeaturesEnabled(bool);
117 void setLaxMixedContentCheckingEnabled(bool); 119 void setLaxMixedContentCheckingEnabled(bool);
118 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool); 120 void setPseudoClassesInMatchingCriteriaInAuthorShadowTreesEnabled(bool);
119 void setImageColorProfilesEnabled(bool); 121 void setImageColorProfilesEnabled(bool);
122 void setImageAnimationPolicy(const String&, ExceptionState&);
120 123
121 virtual void trace(Visitor*) override; 124 virtual void trace(Visitor*) override;
122 125
123 void setAvailablePointerTypes(const String&, ExceptionState&); 126 void setAvailablePointerTypes(const String&, ExceptionState&);
124 void setPrimaryPointerType(const String&, ExceptionState&); 127 void setPrimaryPointerType(const String&, ExceptionState&);
125 void setAvailableHoverTypes(const String&, ExceptionState&); 128 void setAvailableHoverTypes(const String&, ExceptionState&);
126 void setPrimaryHoverType(const String&, ExceptionState&); 129 void setPrimaryHoverType(const String&, ExceptionState&);
127 130
128 private: 131 private:
129 explicit InternalSettings(Page&); 132 explicit InternalSettings(Page&);
130 133
131 Settings* settings() const; 134 Settings* settings() const;
132 Page* page() const { return m_page; } 135 Page* page() const { return m_page; }
133 static const char* supplementName(); 136 static const char* supplementName();
134 137
135 RawPtrWillBeWeakMember<Page> m_page; 138 RawPtrWillBeWeakMember<Page> m_page;
136 Backup m_backup; 139 Backup m_backup;
137 }; 140 };
138 141
139 } // namespace blink 142 } // namespace blink
140 143
141 #endif // InternalSettings_h 144 #endif // InternalSettings_h
OLDNEW
« no previous file with comments | « Source/core/svg/animation/SMILTimeContainer.cpp ('k') | Source/core/testing/InternalSettings.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698