| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PropertyRegistration_h | 5 #ifndef PropertyRegistration_h |
| 6 #define PropertyRegistration_h | 6 #define PropertyRegistration_h |
| 7 | 7 |
| 8 #include "core/animation/CSSInterpolationType.h" | 8 #include "core/animation/CSSInterpolationType.h" |
| 9 #include "core/animation/InterpolationTypesMap.h" | 9 #include "core/animation/InterpolationTypesMap.h" |
| 10 #include "core/css/CSSSyntaxDescriptor.h" | 10 #include "core/css/CSSSyntaxDescriptor.h" |
| 11 #include "core/css/CSSValue.h" | 11 #include "core/css/CSSValue.h" |
| 12 #include "core/css/CSSVariableData.h" | 12 #include "core/css/CSSVariableData.h" |
| 13 #include "wtf/Allocator.h" | 13 #include "wtf/Allocator.h" |
| 14 #include "wtf/RefPtr.h" | 14 #include "wtf/RefPtr.h" |
| 15 #include "wtf/text/WTFString.h" | 15 #include "wtf/text/WTFString.h" |
| 16 | 16 |
| 17 namespace blink { | 17 namespace blink { |
| 18 | 18 |
| 19 class ExceptionState; | 19 class ExceptionState; |
| 20 class ExecutionContext; |
| 20 class PropertyDescriptor; | 21 class PropertyDescriptor; |
| 21 class ScriptState; | |
| 22 | 22 |
| 23 using CSSInterpolationTypes = Vector<std::unique_ptr<CSSInterpolationType>>; | 23 using CSSInterpolationTypes = Vector<std::unique_ptr<CSSInterpolationType>>; |
| 24 | 24 |
| 25 class PropertyRegistration | 25 class CORE_EXPORT PropertyRegistration |
| 26 : public GarbageCollectedFinalized<PropertyRegistration> { | 26 : public GarbageCollectedFinalized<PropertyRegistration> { |
| 27 public: | 27 public: |
| 28 static void registerProperty(ScriptState*, | 28 static void registerProperty(ExecutionContext*, |
| 29 const PropertyDescriptor&, | 29 const PropertyDescriptor&, |
| 30 ExceptionState&); | 30 ExceptionState&); |
| 31 | 31 |
| 32 PropertyRegistration(const CSSSyntaxDescriptor&, | 32 PropertyRegistration(const CSSSyntaxDescriptor&, |
| 33 bool inherits, | 33 bool inherits, |
| 34 const CSSValue* initial, | 34 const CSSValue* initial, |
| 35 PassRefPtr<CSSVariableData> initialVariableData, | 35 PassRefPtr<CSSVariableData> initialVariableData, |
| 36 CSSInterpolationTypes); | 36 CSSInterpolationTypes); |
| 37 | 37 |
| 38 const CSSSyntaxDescriptor& syntax() const { return m_syntax; } | 38 const CSSSyntaxDescriptor& syntax() const { return m_syntax; } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 51 const CSSSyntaxDescriptor m_syntax; | 51 const CSSSyntaxDescriptor m_syntax; |
| 52 const bool m_inherits; | 52 const bool m_inherits; |
| 53 const Member<const CSSValue> m_initial; | 53 const Member<const CSSValue> m_initial; |
| 54 const RefPtr<CSSVariableData> m_initialVariableData; | 54 const RefPtr<CSSVariableData> m_initialVariableData; |
| 55 const InterpolationTypes m_interpolationTypes; | 55 const InterpolationTypes m_interpolationTypes; |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace blink | 58 } // namespace blink |
| 59 | 59 |
| 60 #endif // PropertyRegistration_h | 60 #endif // PropertyRegistration_h |
| OLD | NEW |