Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2013 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 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 | 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, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 #ifndef MediaFeatureNames_h | 21 #ifndef MediaFeatureNames_h |
| 22 #define MediaFeatureNames_h | 22 #define MediaFeatureNames_h |
| 23 | 23 |
| 24 #include "wtf/text/AtomicString.h" | 24 #include "wtf/text/WTFString.h" |
| 25 | 25 |
| 26 namespace WebCore { | 26 namespace WebCore { |
| 27 namespace MediaFeatureNames { | 27 namespace MediaFeatureNames { |
| 28 | 28 |
| 29 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \ | 29 #define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \ |
| 30 macro(color, "color") \ | 30 macro(color, "color") \ |
| 31 macro(colorIndex, "color-index") \ | 31 macro(colorIndex, "color-index") \ |
| 32 macro(grid, "grid") \ | 32 macro(grid, "grid") \ |
| 33 macro(monochrome, "monochrome") \ | 33 macro(monochrome, "monochrome") \ |
| 34 macro(height, "height") \ | 34 macro(height, "height") \ |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 macro(resolution, "resolution") \ | 66 macro(resolution, "resolution") \ |
| 67 macro(transform2d, "-webkit-transform-2d") \ | 67 macro(transform2d, "-webkit-transform-2d") \ |
| 68 macro(transform3d, "-webkit-transform-3d") \ | 68 macro(transform3d, "-webkit-transform-3d") \ |
| 69 macro(scan, "scan") \ | 69 macro(scan, "scan") \ |
| 70 macro(animation, "-webkit-animation") \ | 70 macro(animation, "-webkit-animation") \ |
| 71 macro(viewMode, "-webkit-view-mode") | 71 macro(viewMode, "-webkit-view-mode") |
| 72 | 72 |
| 73 // end of macro | 73 // end of macro |
| 74 | 74 |
| 75 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS | 75 #ifndef CSS_MEDIAQUERY_NAMES_HIDE_GLOBALS |
| 76 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const AtomicString name## MediaFeature; | 76 #define CSS_MEDIAQUERY_NAMES_DECLARE(name, str) extern const String name##MediaF eature; |
|
abarth-chromium
2014/03/01 07:28:25
Can you change this to be MediaFeatureNames.in and
| |
| 77 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE) | 77 CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(CSS_MEDIAQUERY_NAMES_DECLARE) |
| 78 #undef CSS_MEDIAQUERY_NAMES_DECLARE | 78 #undef CSS_MEDIAQUERY_NAMES_DECLARE |
| 79 #endif | 79 #endif |
| 80 | 80 |
| 81 void init(); | 81 void init(); |
| 82 | 82 |
| 83 } // namespace MediaFeatureNames | 83 } // namespace MediaFeatureNames |
| 84 } // namespace WebCore | 84 } // namespace WebCore |
| 85 | 85 |
| 86 #endif // MediaFeatureNames_h | 86 #endif // MediaFeatureNames_h |
| OLD | NEW |