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

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

Issue 2911963004: Generate enum/getters/setters/mappings for user-select. (Closed)
Patch Set: Rebase Created 3 years, 6 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 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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 CSSValueIDMappings_h 5 #ifndef CSSValueIDMappings_h
6 #define CSSValueIDMappings_h 6 #define CSSValueIDMappings_h
7 7
8 #include "core/CSSValueIDMappingsGenerated.h" 8 #include "core/CSSValueIDMappingsGenerated.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 76
77 template <> 77 template <>
78 inline EDisplay CssValueIDToPlatformEnum(CSSValueID v) { 78 inline EDisplay CssValueIDToPlatformEnum(CSSValueID v) {
79 if (v == CSSValueWebkitFlex) 79 if (v == CSSValueWebkitFlex)
80 return EDisplay::kFlex; 80 return EDisplay::kFlex;
81 if (v == CSSValueWebkitInlineFlex) 81 if (v == CSSValueWebkitInlineFlex)
82 return EDisplay::kInlineFlex; 82 return EDisplay::kInlineFlex;
83 return detail::cssValueIDToPlatformEnumGenerated<EDisplay>(v); 83 return detail::cssValueIDToPlatformEnumGenerated<EDisplay>(v);
84 } 84 }
85 85
86 template <>
87 inline EUserSelect CssValueIDToPlatformEnum(CSSValueID v) {
88 if (v == CSSValueAuto)
89 return EUserSelect::kText;
90 return detail::cssValueIDToPlatformEnumGenerated<EUserSelect>(v);
91 }
92
86 } // namespace blink 93 } // namespace blink
87 94
88 #endif 95 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698