Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(496)

Unified Diff: Source/core/css/MediaFeatures.h

Issue 171383002: A thread-safe Media Query Parser (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Generate strings with make_names Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/css/MediaFeatures.h
diff --git a/Source/core/css/MediaFeatures.h b/Source/core/css/MediaFeatures.h
new file mode 100644
index 0000000000000000000000000000000000000000..24a717f8af05b5eff776d077c57ca2e860a6be4f
--- /dev/null
+++ b/Source/core/css/MediaFeatures.h
@@ -0,0 +1,68 @@
+/*
+ * Copyright (C) 2005, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2013 Intel Corporation. All rights reserved.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB. If not, write to
+ * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301, USA.
+ *
+ */
+#ifndef MediaFeatures_h
+#define MediaFeatures_h
+
+#define CSS_MEDIAQUERY_NAMES_FOR_EACH_MEDIAFEATURE(macro) \
abarth-chromium 2014/03/03 19:06:19 Why is this needed? It's lame that we have to rep
+ macro(color) \
+ macro(colorIndex) \
+ macro(grid) \
+ macro(monochrome) \
+ macro(height) \
+ macro(hover) \
+ macro(width) \
+ macro(orientation) \
+ macro(aspectRatio) \
+ macro(deviceAspectRatio) \
+ macro(devicePixelRatio) \
+ macro(deviceHeight) \
+ macro(deviceWidth) \
+ macro(maxColor) \
+ macro(maxColorIndex) \
+ macro(maxAspectRatio) \
+ macro(maxDeviceAspectRatio) \
+ macro(maxDevicePixelRatio) \
+ macro(maxDeviceHeight) \
+ macro(maxDeviceWidth) \
+ macro(maxHeight) \
+ macro(maxMonochrome) \
+ macro(maxWidth) \
+ macro(maxResolution) \
+ macro(minColor) \
+ macro(minColorIndex) \
+ macro(minAspectRatio) \
+ macro(minDeviceAspectRatio) \
+ macro(minDevicePixelRatio) \
+ macro(minDeviceHeight) \
+ macro(minDeviceWidth) \
+ macro(minHeight) \
+ macro(minMonochrome) \
+ macro(minWidth) \
+ macro(minResolution) \
+ macro(pointer) \
+ macro(resolution) \
+ macro(transform2d) \
+ macro(transform3d) \
+ macro(scan) \
+ macro(animation) \
+ macro(viewMode)
+
+#endif // MediaFeatureNames_h

Powered by Google App Engine
This is Rietveld 408576698