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

Side by Side Diff: third_party/WebKit/Source/core/css/properties/CSSPropertyAPI.h

Issue 2533673002: Added CSSPropertyAPI and CSS padding properties which implement this API (Closed)
Patch Set: Fixed some formatting Created 4 years 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
(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 /*
16 An API for CSS properties which allows you to call functions on properties
17 from within the parser. To enusre that all functions are implemented, provide
18 implementations for all functions with a default implementation or
19 NOTREACHED().
20 */
21 class CSSPropertyAPI {
22 public:
23 // Parses the CSS property and returns a CSS Value.
24 static const CSSValue* parseSingleValue(CSSParserTokenRange&,
25 const CSSParserContext&) {
26 NOTREACHED();
27 return nullptr;
28 }
29
30 // Returns the CSSPropertyID of the property
31 static inline CSSPropertyID getID() {
32 NOTREACHED();
33 return CSSPropertyInvalid;
34 }
35 };
36 }
alancutter (OOO until 2018) 2016/11/29 06:51:49 I don't think this class is necessary. Without it
aazzam 2016/11/30 23:32:53 I think we should keep the class since it's a way
37
38 #endif // CSSPropertyAPI_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698