OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 5 #ifndef SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 6 #define SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "skia/ext/platform_device.h" | 10 #include "skia/ext/platform_device.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
120 | 120 |
121 // Previously selected brush before the current drawing. | 121 // Previously selected brush before the current drawing. |
122 HGDIOBJ previous_brush_; | 122 HGDIOBJ previous_brush_; |
123 | 123 |
124 // Previously selected pen before the current drawing. | 124 // Previously selected pen before the current drawing. |
125 HGDIOBJ previous_pen_; | 125 HGDIOBJ previous_pen_; |
126 | 126 |
127 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf); | 127 DISALLOW_COPY_AND_ASSIGN(VectorPlatformDeviceEmf); |
128 }; | 128 }; |
129 | 129 |
130 typedef void (*SkiaEnsureTypefaceCharactersAccessible) | |
131 (const LOGFONT& font, const wchar_t* text, unsigned int text_length); | |
132 | |
133 void SetSkiaEnsureTypefaceCharactersAccessible( | |
Lei Zhang
2012/11/17 02:33:28
This needs to be exposed with SK_API.
edisonn
2012/11/17 22:16:40
Done.
| |
134 SkiaEnsureTypefaceCharactersAccessible func); | |
135 | |
136 static SkiaEnsureTypefaceCharactersAccessible | |
Lei Zhang
2012/11/17 02:33:28
This can go in the .cc file.
edisonn
2012/11/17 22:16:40
Done.
| |
137 g_skia_ensure_typeface_characters_accessible = NULL; | |
138 | |
139 void SetSkiaEnsureTypefaceCharactersAccessible( | |
Lei Zhang
2012/11/17 02:33:28
You accidentally defined this 2X.
edisonn
2012/11/17 22:16:40
Done.
| |
140 SkiaEnsureTypefaceCharactersAccessible func); | |
141 | |
130 } // namespace skia | 142 } // namespace skia |
131 | 143 |
132 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ | 144 #endif // SKIA_EXT_VECTOR_PLATFORM_DEVICE_EMF_WIN_H_ |
OLD | NEW |