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

Side by Side Diff: Source/WebCore/platform/graphics/harfbuzz/FontPlatformDataHarfBuzz.h

Issue 11348334: Merge 134871 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2006, 2007, 2008, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 15 matching lines...) Expand all
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef FontPlatformDataHarfBuzz_h 31 #ifndef FontPlatformDataHarfBuzz_h
32 #define FontPlatformDataHarfBuzz_h 32 #define FontPlatformDataHarfBuzz_h
33 33
34 #include "FontOrientation.h" 34 #include "FontOrientation.h"
35 #include "FontRenderStyle.h" 35 #include "FontRenderStyle.h"
36 #include "OpenTypeVerticalData.h"
36 #include "SharedBuffer.h" 37 #include "SharedBuffer.h"
37 #include "SkPaint.h" 38 #include "SkPaint.h"
38 #include "TextOrientation.h" 39 #include "TextOrientation.h"
39 #include <wtf/Forward.h> 40 #include <wtf/Forward.h>
40 #include <wtf/RefPtr.h> 41 #include <wtf/RefPtr.h>
41 #include <wtf/text/CString.h> 42 #include <wtf/text/CString.h>
42 #include <wtf/text/StringImpl.h> 43 #include <wtf/text/StringImpl.h>
43 44
44 class SkTypeface; 45 class SkTypeface;
45 typedef uint32_t SkFontID; 46 typedef uint32_t SkFontID;
46 47
47 namespace WebCore { 48 namespace WebCore {
48 49
49 class FontDescription; 50 class FontDescription;
50 class OpenTypeVerticalData;
51 51
52 #if USE(HARFBUZZ_NG) 52 #if USE(HARFBUZZ_NG)
53 class HarfBuzzNGFace; 53 class HarfBuzzNGFace;
54 #else 54 #else
55 class HarfbuzzFace; 55 class HarfbuzzFace;
56 #endif 56 #endif
57 57
58 // ----------------------------------------------------------------------------- 58 // -----------------------------------------------------------------------------
59 // FontPlatformData is the handle which WebKit has on a specific face. A face 59 // FontPlatformData is the handle which WebKit has on a specific face. A face
60 // is the tuple of (font, size, ...etc). Here we are just wrapping a Skia 60 // is the tuple of (font, size, ...etc). Here we are just wrapping a Skia
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 FontOrientation orientation() const { return m_orientation; } 99 FontOrientation orientation() const { return m_orientation; }
100 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; } 100 void setOrientation(FontOrientation orientation) { m_orientation = orientati on; }
101 void setFakeBold(bool fakeBold) { m_fakeBold = fakeBold; } 101 void setFakeBold(bool fakeBold) { m_fakeBold = fakeBold; }
102 void setFakeItalic(bool fakeItalic) { m_fakeItalic = fakeItalic; } 102 void setFakeItalic(bool fakeItalic) { m_fakeItalic = fakeItalic; }
103 bool operator==(const FontPlatformData&) const; 103 bool operator==(const FontPlatformData&) const;
104 FontPlatformData& operator=(const FontPlatformData&); 104 FontPlatformData& operator=(const FontPlatformData&);
105 bool isHashTableDeletedValue() const { return m_typeface == hashTableDeleted FontValue(); } 105 bool isHashTableDeletedValue() const { return m_typeface == hashTableDeleted FontValue(); }
106 106
107 #if ENABLE(OPENTYPE_VERTICAL) 107 #if ENABLE(OPENTYPE_VERTICAL)
108 const OpenTypeVerticalData* verticalData() const; 108 PassRefPtr<OpenTypeVerticalData> verticalData() const;
109 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const; 109 PassRefPtr<SharedBuffer> openTypeTable(uint32_t table) const;
110 #endif 110 #endif
111 111
112 #ifndef NDEBUG 112 #ifndef NDEBUG
113 String description() const; 113 String description() const;
114 #endif 114 #endif
115 115
116 #if USE(HARFBUZZ_NG) 116 #if USE(HARFBUZZ_NG)
117 HarfBuzzNGFace* harfbuzzFace() const; 117 HarfBuzzNGFace* harfbuzzFace() const;
118 #else 118 #else
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 #else 151 #else
152 mutable RefPtr<HarfbuzzFace> m_harfbuzzFace; 152 mutable RefPtr<HarfbuzzFace> m_harfbuzzFace;
153 #endif 153 #endif
154 154
155 SkTypeface* hashTableDeletedFontValue() const { return reinterpret_cast<SkTy peface*>(-1); } 155 SkTypeface* hashTableDeletedFontValue() const { return reinterpret_cast<SkTy peface*>(-1); }
156 }; 156 };
157 157
158 } // namespace WebCore 158 } // namespace WebCore
159 159
160 #endif // ifdef FontPlatformDataHarfBuzz_h 160 #endif // ifdef FontPlatformDataHarfBuzz_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698