2 * This file is part of the CSS implementation for KDE.
4 * Copyright (C) 2005 Apple Computer, Inc.
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details.
16 * You should have received a copy of the GNU Library General Public License
17 * along with this library; see the file COPYING.LIB. If not, write to
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 * Boston, MA 02110-1301, USA.
22 #ifndef MediaFeatureNames_h
23 #define MediaFeatureNames_h
25 #include "AtomicString.h"
28 namespace MediaFeatureNames
{
30 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
31 macro(color, "color") \
33 macro(monochrome, "monochrome") \
34 macro(height, "height") \
35 macro(width, "width") \
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_device_aspect_ratio, "max-device-aspect-ratio") \
42 macro(max_device_pixel_ratio, "-webkit-max-device-pixel-ratio") \
43 macro(max_device_height, "max-device-height") \
44 macro(max_device_width, "max-device-width") \
45 macro(max_height, "max-height") \
46 macro(max_monochrome, "max-monochrome") \
47 macro(max_width, "max-width") \
48 macro(min_color, "min-color") \
49 macro(min_device_aspect_ratio, "min-device-aspect-ratio") \
50 macro(min_device_pixel_ratio, "-webkit-min-device-pixel-ratio") \
51 macro(min_device_height, "min-device-height") \
52 macro(min_device_width, "min-device-width") \
53 macro(min_height, "min-height") \
54 macro(min_monochrome, "min-monochrome") \
55 macro(min_width, "min-width") \
56 macro(transform_2d, "-webkit-transform-2d") \
57 macro(transform_3d, "-webkit-transform-3d") \
58 macro(transition, "-webkit-transition") \
59 macro(animation, "-webkit-animation") \
62 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS
63 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString name##MediaFeature;
64 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE
)
65 #undef CSS_MEDIAQUERY_NAMES_DECLARE
70 } // namespace MediaFeatureNames
71 } // namespace WebCore
73 #endif // MediaFeatureNames_h