OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_GFX_PATH_H_ | 5 #ifndef UI_GFX_PATH_H_ |
6 #define UI_GFX_PATH_H_ | 6 #define UI_GFX_PATH_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "third_party/skia/include/core/SkPath.h" |
10 #include "ui/gfx/native_widget_types.h" | 11 #include "ui/gfx/native_widget_types.h" |
11 | 12 #include "ui/ui_api.h" |
12 #include "third_party/skia/include/core/SkPath.h" | |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 class Path : public SkPath { | 16 class UI_API Path : public SkPath { |
17 public: | 17 public: |
18 // Used by Path(Point,size_t) constructor. | 18 // Used by Path(Point,size_t) constructor. |
19 struct Point { | 19 struct Point { |
20 int x; | 20 int x; |
21 int y; | 21 int y; |
22 }; | 22 }; |
23 | 23 |
24 Path(); | 24 Path(); |
25 | 25 |
26 // Creates a path populated with the specified points. | 26 // Creates a path populated with the specified points. |
(...skipping 21 matching lines...) Expand all Loading... |
48 gfx::NativeRegion r2); | 48 gfx::NativeRegion r2); |
49 #endif | 49 #endif |
50 | 50 |
51 private: | 51 private: |
52 DISALLOW_COPY_AND_ASSIGN(Path); | 52 DISALLOW_COPY_AND_ASSIGN(Path); |
53 }; | 53 }; |
54 | 54 |
55 } | 55 } |
56 | 56 |
57 #endif // UI_GFX_PATH_H_ | 57 #endif // UI_GFX_PATH_H_ |
OLD | NEW |