| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 30 matching lines...) Expand all Loading... |
| 41 #include <memory> | 41 #include <memory> |
| 42 | 42 |
| 43 struct hb_buffer_t; | 43 struct hb_buffer_t; |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class Font; | 47 class Font; |
| 48 class ShapeResultSpacing; | 48 class ShapeResultSpacing; |
| 49 class SimpleFontData; | 49 class SimpleFontData; |
| 50 class TextRun; | 50 class TextRun; |
| 51 struct GlyphData; | |
| 52 | 51 |
| 53 class PLATFORM_EXPORT ShapeResult : public RefCounted<ShapeResult> { | 52 class PLATFORM_EXPORT ShapeResult : public RefCounted<ShapeResult> { |
| 54 public: | 53 public: |
| 55 static PassRefPtr<ShapeResult> create(const Font* font, | 54 static PassRefPtr<ShapeResult> create(const Font* font, |
| 56 unsigned numCharacters, | 55 unsigned numCharacters, |
| 57 TextDirection direction) { | 56 TextDirection direction) { |
| 58 return adoptRef(new ShapeResult(font, numCharacters, direction)); | 57 return adoptRef(new ShapeResult(font, numCharacters, direction)); |
| 59 } | 58 } |
| 60 static PassRefPtr<ShapeResult> createForTabulationCharacters( | 59 static PassRefPtr<ShapeResult> createForTabulationCharacters( |
| 61 const Font*, | 60 const Font*, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Tracks whether any runs contain glyphs with a y-offset != 0. | 110 // Tracks whether any runs contain glyphs with a y-offset != 0. |
| 112 unsigned m_hasVerticalOffsets : 1; | 111 unsigned m_hasVerticalOffsets : 1; |
| 113 | 112 |
| 114 friend class HarfBuzzShaper; | 113 friend class HarfBuzzShaper; |
| 115 friend class ShapeResultBuffer; | 114 friend class ShapeResultBuffer; |
| 116 }; | 115 }; |
| 117 | 116 |
| 118 } // namespace blink | 117 } // namespace blink |
| 119 | 118 |
| 120 #endif // ShapeResult_h | 119 #endif // ShapeResult_h |
| OLD | NEW |