OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CSSPropertyAPI_h | |
6 #define CSSPropertyAPI_h | |
7 | |
8 #include "core/CSSPropertyNames.h" | |
9 #include "core/css/CSSValue.h" | |
10 #include "core/css/parser/CSSParserMode.h" | |
11 #include "core/css/parser/CSSParserTokenRange.h" | |
12 | |
13 namespace blink { | |
14 | |
15 // An API for CSS properties which allows you to call functions on properties | |
alancutter (OOO until 2018)
2016/11/30 23:46:54
"Allows you to call property specific functions"
aazzam
2016/12/01 04:17:53
done
| |
16 // from within the parser. If the function doesn't have to be implemented by all | |
17 // properties, provide a default implementation below. | |
alancutter (OOO until 2018)
2016/11/30 23:46:54
The last sentence is questionable. It would be imp
aazzam
2016/12/01 04:17:53
done
| |
18 | |
sashab
2016/11/30 23:48:39
Remove newline below
Try reword to express that w
aazzam
2016/12/01 04:17:53
done
| |
19 class CSSPropertyAPI { | |
20 public: | |
21 static const CSSPropertyID id; | |
sashab
2016/11/30 23:48:39
// A unique ID for the property.
// TODO(aazzam):
aazzam
2016/12/01 04:17:53
done
| |
22 | |
23 // Parses the CSS property and returns a CSS Value. | |
sashab
2016/11/30 23:48:39
or null if it could not be parsed.
aazzam
2016/12/01 04:17:53
done
| |
24 static const CSSValue* parseSingleValue(CSSParserTokenRange&, | |
25 const CSSParserContext&); | |
26 }; | |
27 | |
28 } // namespace blink | |
29 | |
30 #endif // CSSPropertyAPI_h | |
OLD | NEW |