Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chromecast / public / graphics_types.h
blob841dc00ac8150a74202d0a7a6ea60e8fe0dec4ff
1 // Copyright (c) 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_PUBLIC_GRAPHICS_TYPES_H_
6 #define CHROMECAST_PUBLIC_GRAPHICS_TYPES_H_
8 namespace chromecast {
10 struct Rect {
11 Rect(int w, int h) : x(0), y(0), width(w), height(h) {}
12 Rect(int arg_x, int arg_y, int w, int h)
13 : x(arg_x), y(arg_y), width(w), height(h) {}
15 int x;
16 int y;
17 int width;
18 int height;
21 struct RectF {
22 RectF(float w, float h) : x(0), y(0), width(w), height(h) {}
23 RectF(float arg_x, float arg_y, float w, float h)
24 : x(arg_x), y(arg_y), width(w), height(h) {}
26 float x;
27 float y;
28 float width;
29 float height;
32 struct Size {
33 Size(int w, int h) : width(w), height(h) {}
35 int width;
36 int height;
39 } // namespace chromecast
41 #endif // CHROMECAST_PUBLIC_GRAPHICS_TYPES_H_