1/*
2 * Copyright (C) 2005 Apple Computer, Inc.
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12 * Library General Public License for more details.
13 *
14 * You should have received a copy of the GNU Library General Public License
15 * along with this library; see the file COPYING.LIB.  If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 *
19 */
20#ifndef MediaFeatureNames_h
21#define MediaFeatureNames_h
22
23#include <wtf/text/AtomicString.h>
24
25namespace WebCore {
26    namespace MediaFeatureNames {
27
28#define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
29    macro(color, "color") \
30    macro(grid, "grid") \
31    macro(monochrome, "monochrome") \
32    macro(height, "height") \
33    macro(width, "width") \
34    macro(orientation, "orientation") \
35    macro(aspect_ratio, "aspect-ratio") \
36    macro(device_aspect_ratio, "device-aspect-ratio") \
37    macro(device_pixel_ratio, "-webkit-device-pixel-ratio") \
38    macro(device_height, "device-height") \
39    macro(device_width, "device-width") \
40    macro(max_color, "max-color") \
41    macro(max_aspect_ratio, "max-aspect-ratio") \
42    macro(max_device_aspect_ratio, "max-device-aspect-ratio") \
43    macro(max_device_pixel_ratio, "-webkit-max-device-pixel-ratio") \
44    macro(max_device_height, "max-device-height") \
45    macro(max_device_width, "max-device-width") \
46    macro(max_height, "max-height") \
47    macro(max_monochrome, "max-monochrome") \
48    macro(max_width, "max-width") \
49    macro(min_color, "min-color") \
50    macro(min_aspect_ratio, "min-aspect-ratio") \
51    macro(min_device_aspect_ratio, "min-device-aspect-ratio") \
52    macro(min_device_pixel_ratio, "-webkit-min-device-pixel-ratio") \
53    macro(min_device_height, "min-device-height") \
54    macro(min_device_width, "min-device-width") \
55    macro(min_height, "min-height") \
56    macro(min_monochrome, "min-monochrome") \
57    macro(min_width, "min-width") \
58    macro(transform_2d, "-webkit-transform-2d") \
59    macro(transform_3d, "-webkit-transform-3d") \
60    macro(transition, "-webkit-transition") \
61    macro(animation, "-webkit-animation") \
62    macro(view_mode, "-webkit-view-mode")
63
64// end of macro
65
66#ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS
67    #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString name##MediaFeature;
68    CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE)
69    #undef CSS_MEDIAQUERY_NAMES_DECLARE
70#endif
71
72        void init();
73
74    } // namespace MediaFeatureNames
75} // namespace WebCore
76
77#endif // MediaFeatureNames_h
78