OLD | NEW |
1 | |
2 /* | 1 /* |
3 * Copyright 2012 Google Inc. | 2 * Copyright 2012 Google Inc. |
4 * | 3 * |
5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
7 */ | 6 */ |
8 | 7 |
9 #ifndef SkAnnotation_DEFINED | 8 #ifndef SkAnnotation_DEFINED |
10 #define SkAnnotation_DEFINED | 9 #define SkAnnotation_DEFINED |
11 | 10 |
12 #include "SkTypes.h" | 11 #include "SkTypes.h" |
13 | 12 |
14 // for chrome in PrintContextTest.cpp | |
15 #define SK_SUPPORT_NEW_ANNOTATION_CANVAS_VIRTUAL | |
16 | |
17 class SkData; | 13 class SkData; |
18 struct SkPoint; | 14 struct SkPoint; |
19 struct SkRect; | 15 struct SkRect; |
20 class SkCanvas; | 16 class SkCanvas; |
21 | 17 |
22 /** | 18 /** |
23 * Annotate the canvas by associating the specified URL with the | 19 * Annotate the canvas by associating the specified URL with the |
24 * specified rectangle (in local coordinates, just like drawRect). | 20 * specified rectangle (in local coordinates, just like drawRect). |
25 * | 21 * |
26 * If the backend of this canvas does not support annotations, this call is | 22 * If the backend of this canvas does not support annotations, this call is |
(...skipping 18 matching lines...) Expand all Loading... |
45 * destination. | 41 * destination. |
46 * | 42 * |
47 * If the backend of this canvas does not support annotations, this call is | 43 * If the backend of this canvas does not support annotations, this call is |
48 * safely ignored. | 44 * safely ignored. |
49 * | 45 * |
50 * The caller is responsible for managing its ownership of the SkData. | 46 * The caller is responsible for managing its ownership of the SkData. |
51 */ | 47 */ |
52 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); | 48 SK_API void SkAnnotateLinkToDestination(SkCanvas*, const SkRect&, SkData*); |
53 | 49 |
54 #endif | 50 #endif |
OLD | NEW |