OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright (C) 2005, 2013 Apple Inc. All rights reserved. | |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | |
4 * | |
5 * This library is free software; you can redistribute it and/or | |
6 * modify it under the terms of the GNU Library General Public | |
7 * License as published by the Free Software Foundation; either | |
8 * version 2 of the License, or (at your option) any later version. | |
9 * | |
10 * This library is distributed in the hope that it will be useful, | |
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
13 * Library General Public License for more details. | |
14 * | |
15 * You should have received a copy of the GNU Library General Public License | |
16 * along with this library; see the file COPYING.LIB. If not, write to | |
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | |
18 * Boston, MA 02110-1301, USA. | |
19 * | |
20 */ | |
21 #ifndef MediaFeatureNames_h | |
22 #define MediaFeatureNames_h | |
23 | |
24 #include "wtf/text/AtomicString.h" | |
25 | |
26 namespace WebCore { | |
27 namespace MediaFeatureNames { | |
28 | |
29 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \ | |
30 macro(color, "color") \ | |
31 macro(colorIndex, "color-index") \ | |
32 macro(grid, "grid") \ | |
33 macro(monochrome, "monochrome") \ | |
34 macro(height, "height") \ | |
35 macro(hover, "hover") \ | |
36 macro(width, "width") \ | |
37 macro(orientation, "orientation") \ | |
38 macro(aspectRatio, "aspect-ratio") \ | |
39 macro(deviceAspectRatio, "device-aspect-ratio") \ | |
40 macro(devicePixelRatio, "-webkit-device-pixel-ratio") \ | |
41 macro(deviceHeight, "device-height") \ | |
42 macro(deviceWidth, "device-width") \ | |
43 macro(maxColor, "max-color") \ | |
44 macro(maxColorIndex, "max-color-index") \ | |
45 macro(maxAspectRatio, "max-aspect-ratio") \ | |
46 macro(maxDeviceAspectRatio, "max-device-aspect-ratio") \ | |
47 macro(maxDevicePixelRatio, "-webkit-max-device-pixel-ratio") \ | |
48 macro(maxDeviceHeight, "max-device-height") \ | |
49 macro(maxDeviceWidth, "max-device-width") \ | |
50 macro(maxHeight, "max-height") \ | |
51 macro(maxMonochrome, "max-monochrome") \ | |
52 macro(maxWidth, "max-width") \ | |
53 macro(maxResolution, "max-resolution") \ | |
54 macro(minColor, "min-color") \ | |
55 macro(minColorIndex, "min-color-index") \ | |
56 macro(minAspectRatio, "min-aspect-ratio") \ | |
57 macro(minDeviceAspectRatio, "min-device-aspect-ratio") \ | |
58 macro(minDevicePixelRatio, "-webkit-min-device-pixel-ratio") \ | |
59 macro(minDeviceHeight, "min-device-height") \ | |
60 macro(minDeviceWidth, "min-device-width") \ | |
61 macro(minHeight, "min-height") \ | |
62 macro(minMonochrome, "min-monochrome") \ | |
63 macro(minWidth, "min-width") \ | |
64 macro(minResolution, "min-resolution") \ | |
65 macro(pointer, "pointer") \ | |
66 macro(resolution, "resolution") \ | |
67 macro(transform2d, "-webkit-transform-2d") \ | |
68 macro(transform3d, "-webkit-transform-3d") \ | |
69 macro(scan, "scan") \ | |
70 macro(animation, "-webkit-animation") \ | |
71 macro(viewMode, "-webkit-view-mode") | |
72 | |
73 // end of macro | |
74 | |
75 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS | |
76 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString name##
MediaFeature; | |
77 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE) | |
78 #undef CSS_MEDIAQUERY_NAMES_DECLARE | |
79 #endif | |
80 | |
81 void init(); | |
82 | |
83 } // namespace MediaFeatureNames | |
84 } // namespace WebCore | |
85 | |
86 #endif // MediaFeatureNames_h | |
OLD | NEW |