Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 #ifndef CSSStyleVariableReferenceValue_h | |
| 2 #define CSSStyleVariableReferenceValue_h | |
| 3 | |
| 4 #include "bindings/core/v8/ScriptWrappable.h" | |
| 5 #include "core/CSSPropertyNames.h" | |
| 6 #include "core/CoreExport.h" | |
| 7 #include "core/css/CSSValue.h" | |
| 8 | |
| 9 namespace blink { | |
| 10 | |
| 11 // TODO: change the data type of fallback as in the draft | |
|
meade_UTC10
2016/07/06 05:40:11
You don't need to have two TODO's, just the second
anthonyhkf
2016/07/08 00:17:17
Done.
| |
| 12 | |
| 13 class CORE_EXPORT CSSStyleVariableReferenceValue : public GarbageCollectedFinali zed<CSSStyleVariableReferenceValue>, public ScriptWrappable { | |
|
meade_UTC10
2016/07/06 05:40:11
Please make this class final.
| |
| 14 DEFINE_WRAPPERTYPEINFO(); | |
|
meade_UTC10
2016/07/06 05:40:12
This class shouldn't be copyable. Please add the m
| |
| 15 public: | |
| 16 virtual ~CSSStyleVariableReferenceValue() { } | |
| 17 | |
| 18 static CSSStyleVariableReferenceValue* create() | |
| 19 { | |
| 20 return new CSSStyleVariableReferenceValue(); | |
| 21 } | |
| 22 | |
| 23 // TODO: add fallback: create(variable, fallback) | |
|
meade_UTC10
2016/07/06 05:40:12
Make this
// TODO(anthonyhkf): Add fallback: crea
| |
| 24 static CSSStyleVariableReferenceValue* create(const String& variable) | |
| 25 { | |
| 26 return new CSSStyleVariableReferenceValue(variable); | |
| 27 } | |
| 28 | |
| 29 DEFINE_INLINE_TRACE() { } | |
| 30 | |
| 31 void setVariable(String variable) { m_variable = variable; } | |
|
meade_UTC10
2016/07/06 05:40:11
StyleValues should be read-only - please remove th
| |
| 32 | |
| 33 String variable() const { return m_variable; } | |
| 34 | |
| 35 protected: | |
| 36 CSSStyleVariableReferenceValue() { } | |
| 37 | |
| 38 CSSStyleVariableReferenceValue(String variable) | |
| 39 { | |
| 40 m_variable = variable; | |
| 41 } | |
| 42 | |
| 43 String m_variable; | |
| 44 | |
| 45 }; | |
| 46 | |
| 47 } | |
| 48 | |
| 49 #endif | |
| OLD | NEW |