Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: Source/platform/fonts/win/FontPlatformDataWin.h

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Computer, Inc. 2 * Copyright (C) 2006, 2007 Apple Computer, Inc.
3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved. 3 * Copyright (c) 2006, 2007, 2008, 2009, Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 17 matching lines...) Expand all
28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef FontPlatformDataChromiumWin_h 32 #ifndef FontPlatformDataChromiumWin_h
33 #define FontPlatformDataChromiumWin_h 33 #define FontPlatformDataChromiumWin_h
34 34
35 #include "SkPaint.h" 35 #include "SkPaint.h"
36 #include "SkTypeface.h" 36 #include "SkTypeface.h"
37 #include "SkTypeface_win.h" 37 #include "SkTypeface_win.h"
38 #include "core/platform/graphics/opentype/OpenTypeVerticalData.h"
39 #include "platform/SharedBuffer.h" 38 #include "platform/SharedBuffer.h"
40 #include "platform/fonts/FontOrientation.h" 39 #include "platform/fonts/FontOrientation.h"
40 #include "platform/fonts/opentype/OpenTypeVerticalData.h"
41 #include "wtf/Forward.h" 41 #include "wtf/Forward.h"
42 #include "wtf/HashTableDeletedValueType.h" 42 #include "wtf/HashTableDeletedValueType.h"
43 #include "wtf/OwnPtr.h" 43 #include "wtf/OwnPtr.h"
44 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
45 #include "wtf/RefCounted.h" 45 #include "wtf/RefCounted.h"
46 #include "wtf/RefPtr.h" 46 #include "wtf/RefPtr.h"
47 #include "wtf/text/StringImpl.h" 47 #include "wtf/text/StringImpl.h"
48 48
49 #include <usp10.h> 49 #include <usp10.h>
50 50
51 typedef struct HFONT__ *HFONT; 51 typedef struct HFONT__ *HFONT;
52 52
53 namespace WebCore { 53 namespace WebCore {
54 54
55 // Return a typeface associated with the hfont, and return its size and 55 // Return a typeface associated with the hfont, and return its size and
56 // lfQuality from the hfont's LOGFONT. 56 // lfQuality from the hfont's LOGFONT.
57 PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT, int* size, int* paintTextF lags); 57 PassRefPtr<SkTypeface> CreateTypefaceFromHFont(HFONT, int* size, int* paintTextF lags);
58 58
59 class FontDescription; 59 class FontDescription;
60 class GraphicsContext; 60 class GraphicsContext;
61 class HarfBuzzFace; 61 class HarfBuzzFace;
62 62
63 class FontPlatformData { 63 class PLATFORM_EXPORT FontPlatformData {
64 public: 64 public:
65 // Used for deleted values in the font cache's hash tables. The hash table 65 // Used for deleted values in the font cache's hash tables. The hash table
66 // will create us with this structure, and it will compare other values 66 // will create us with this structure, and it will compare other values
67 // to this "Deleted" one. It expects the Deleted one to be differentiable 67 // to this "Deleted" one. It expects the Deleted one to be differentiable
68 // from the NULL one (created with the empty constructor), so we can't just 68 // from the NULL one (created with the empty constructor), so we can't just
69 // set everything to NULL. 69 // set everything to NULL.
70 FontPlatformData(WTF::HashTableDeletedValueType); 70 FontPlatformData(WTF::HashTableDeletedValueType);
71 FontPlatformData(); 71 FontPlatformData();
72 #if ENABLE(GDI_FONTS_ON_WINDOWS) 72 #if ENABLE(GDI_FONTS_ON_WINDOWS)
73 // This constructor takes ownership of the HFONT 73 // This constructor takes ownership of the HFONT
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 mutable OwnPtr<SCRIPT_FONTPROPERTIES> m_scriptFontProperties; 180 mutable OwnPtr<SCRIPT_FONTPROPERTIES> m_scriptFontProperties;
181 #endif 181 #endif
182 182
183 bool m_isHashTableDeletedValue; 183 bool m_isHashTableDeletedValue;
184 bool m_useSubpixelPositioning; 184 bool m_useSubpixelPositioning;
185 }; 185 };
186 186
187 } // WebCore 187 } // WebCore
188 188
189 #endif // FontPlatformDataChromiumWin_h 189 #endif // FontPlatformDataChromiumWin_h
OLDNEW
« no previous file with comments | « Source/platform/fonts/win/FontFallbackWin.cpp ('k') | Source/platform/fonts/win/FontPlatformDataWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698