[Android] Implement 3-way sensor fallback for Device Orientation.
[chromium-blink-merge.git] / ui / gfx / path.h
blob9ccdc0c948f2fa598ff101afbefa45db6f3144cc
1 // Copyright (c) 2012 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 UI_GFX_PATH_H_
6 #define UI_GFX_PATH_H_
8 #include "base/basictypes.h"
9 #include "third_party/skia/include/core/SkPath.h"
10 #include "ui/gfx/gfx_export.h"
11 #include "ui/gfx/native_widget_types.h"
13 namespace gfx {
15 class GFX_EXPORT Path : public SkPath {
16 public:
17 // Used by Path(Point,size_t) constructor.
18 struct Point {
19 int x;
20 int y;
22 struct PointF {
23 float x;
24 float y;
27 Path();
29 // Creates a path populated with the specified points.
30 Path(const Point* points, size_t count);
31 Path(const PointF* points, size_t count);
33 ~Path();
35 private:
36 DISALLOW_COPY_AND_ASSIGN(Path);
41 #endif // UI_GFX_PATH_H_