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

Unified Diff: chromecast/public/graphics_types.h

Issue 1104853002: Adds public API and loads Cast OSD plane implementation from shared lib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined small types in one header plus some nits Created 5 years, 8 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: chromecast/public/graphics_types.h
diff --git a/chromecast/public/graphics_types.h b/chromecast/public/graphics_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..541c55a187ade4e11e1c05252db7456fe35995f6
--- /dev/null
+++ b/chromecast/public/graphics_types.h
@@ -0,0 +1,28 @@
+// Copyright (c) 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_TYPES_H_
+#define CHROMECAST_PUBLIC_GRAPHICS_TYPES_H_
+
+namespace chromecast {
+
+struct Rect {
+ Rect(int w, int h) : x(0), y(0), width(w), height(h) {}
+ Rect(int arg_x, int arg_y, int w, int h)
+ : x(arg_x), y(arg_y), width(w), height(h) {}
byungchul 2015/04/27 21:42:14 A blank line here
halliwell 2015/04/27 22:17:33 Done.
+ int x;
+ int y;
+ int width;
+ int height;
+};
+
+struct Size {
+ Size(int w, int h) : width(w), height(h) {}
byungchul 2015/04/27 21:42:14 ditto
halliwell 2015/04/27 22:17:33 Done.
+ int width;
+ int height;
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_PUBLIC_GRAPHICS_TYPES_H_

Powered by Google App Engine
This is Rietveld 408576698