OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. | 3 * Copyright (C) 2008-2009 Torch Mobile, Inc. |
4 * Copyright (C) 2013 Google Inc. All rights reserved. | 4 * Copyright (C) 2013 Google Inc. All rights reserved. |
5 * | 5 * |
6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
8 * are met: | 8 * are met: |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
256 const FloatPoint&, | 256 const FloatPoint&, |
257 Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); | 257 Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); |
258 void drawHighlightForText(const Font&, | 258 void drawHighlightForText(const Font&, |
259 const TextRun&, | 259 const TextRun&, |
260 const FloatPoint&, | 260 const FloatPoint&, |
261 int h, | 261 int h, |
262 const Color& backgroundColor, | 262 const Color& backgroundColor, |
263 int from = 0, | 263 int from = 0, |
264 int to = -1); | 264 int to = -1); |
265 | 265 |
266 int getTextIntercepts(const Font&, | |
f(malita)
2016/10/13 18:09:19
Is there much value in exposing this helper on Gra
drott
2016/10/14 15:15:34
No, as mentioned above, I initially thought, I'd n
| |
267 const TextRunPaintInfo&, | |
268 const SkScalar* bounds, | |
269 SkScalar* intervals); | |
270 | |
266 void drawLineForText(const FloatPoint&, float width, bool printing); | 271 void drawLineForText(const FloatPoint&, float width, bool printing); |
267 enum DocumentMarkerLineStyle { | 272 enum DocumentMarkerLineStyle { |
268 DocumentMarkerSpellingLineStyle, | 273 DocumentMarkerSpellingLineStyle, |
269 DocumentMarkerGrammarLineStyle | 274 DocumentMarkerGrammarLineStyle |
270 }; | 275 }; |
271 void drawLineForDocumentMarker(const FloatPoint&, | 276 void drawLineForDocumentMarker(const FloatPoint&, |
272 float width, | 277 float width, |
273 DocumentMarkerLineStyle); | 278 DocumentMarkerLineStyle); |
274 | 279 |
275 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip | 280 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
463 | 468 |
464 float m_deviceScaleFactor; | 469 float m_deviceScaleFactor; |
465 | 470 |
466 unsigned m_printing : 1; | 471 unsigned m_printing : 1; |
467 unsigned m_hasMetaData : 1; | 472 unsigned m_hasMetaData : 1; |
468 }; | 473 }; |
469 | 474 |
470 } // namespace blink | 475 } // namespace blink |
471 | 476 |
472 #endif // GraphicsContext_h | 477 #endif // GraphicsContext_h |
OLD | NEW |