Home | History | Annotate | Download | only in css
      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(deprecatedTransition, "-webkit-transition") \
     31     macro(color, "color") \
     32     macro(colorIndex, "color-index") \
     33     macro(grid, "grid") \
     34     macro(monochrome, "monochrome") \
     35     macro(height, "height") \
     36     macro(hover, "hover") \
     37     macro(width, "width") \
     38     macro(orientation, "orientation") \
     39     macro(aspectRatio, "aspect-ratio") \
     40     macro(deviceAspectRatio, "device-aspect-ratio") \
     41     macro(devicePixelRatio, "-webkit-device-pixel-ratio") \
     42     macro(deviceHeight, "device-height") \
     43     macro(deviceWidth, "device-width") \
     44     macro(maxColor, "max-color") \
     45     macro(maxColorIndex, "max-color-index") \
     46     macro(maxAspectRatio, "max-aspect-ratio") \
     47     macro(maxDeviceAspectRatio, "max-device-aspect-ratio") \
     48     macro(maxDevicePixelRatio, "-webkit-max-device-pixel-ratio") \
     49     macro(maxDeviceHeight, "max-device-height") \
     50     macro(maxDeviceWidth, "max-device-width") \
     51     macro(maxHeight, "max-height") \
     52     macro(maxMonochrome, "max-monochrome") \
     53     macro(maxWidth, "max-width") \
     54     macro(maxResolution, "max-resolution") \
     55     macro(minColor, "min-color") \
     56     macro(minColorIndex, "min-color-index") \
     57     macro(minAspectRatio, "min-aspect-ratio") \
     58     macro(minDeviceAspectRatio, "min-device-aspect-ratio") \
     59     macro(minDevicePixelRatio, "-webkit-min-device-pixel-ratio") \
     60     macro(minDeviceHeight, "min-device-height") \
     61     macro(minDeviceWidth, "min-device-width") \
     62     macro(minHeight, "min-height") \
     63     macro(minMonochrome, "min-monochrome") \
     64     macro(minWidth, "min-width") \
     65     macro(minResolution, "min-resolution") \
     66     macro(pointer, "pointer") \
     67     macro(resolution, "resolution") \
     68     macro(transform2d, "-webkit-transform-2d") \
     69     macro(transform3d, "-webkit-transform-3d") \
     70     macro(scan, "scan") \
     71     macro(animation, "-webkit-animation") \
     72     macro(viewMode, "-webkit-view-mode")
     73 
     74 // end of macro
     75 
     76 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS
     77 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString name##MediaFeature;
     78 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE)
     79 #undef CSS_MEDIAQUERY_NAMES_DECLARE
     80 #endif
     81 
     82     void init();
     83 
     84 } // namespace MediaFeatureNames
     85 } // namespace WebCore
     86 
     87 #endif // MediaFeatureNames_h
     88