summaryrefslogtreecommitdiffstats
path: root/chromecast/public/graphics_properties_shlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromecast/public/graphics_properties_shlib.h')
-rw-r--r--chromecast/public/graphics_properties_shlib.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/chromecast/public/graphics_properties_shlib.h b/chromecast/public/graphics_properties_shlib.h
new file mode 100644
index 0000000..693a7c1c
--- /dev/null
+++ b/chromecast/public/graphics_properties_shlib.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_
+#define CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_
+
+#include <string>
+#include <vector>
+
+#include "chromecast_export.h"
+
+namespace chromecast {
+
+class CHROMECAST_EXPORT GraphicsPropertiesShlib {
+ public:
+ // Optional resolutions that cast_shell queries for. 720p (1280x720) is
+ // assumed to be supported.
+ enum Resolution {
+ k1080p, // 1920x1080
+ kUHDTV // 3840x2160
+ };
+
+ // Returns whether or not the given display resolution is supported.
+ // Called in the browser process; command line args are provided.
+ static bool IsSupported(Resolution resolution,
+ const std::vector<std::string>& argv);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_PUBLIC_GRAPHICS_PROPERTIES_SHLIB_H_