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 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 const FloatPoint&, | 254 const FloatPoint&, |
255 Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); | 255 Font::CustomFontNotReadyAction = Font::DoNotPaintIfFontNotReady); |
256 void drawHighlightForText(const Font&, | 256 void drawHighlightForText(const Font&, |
257 const TextRun&, | 257 const TextRun&, |
258 const FloatPoint&, | 258 const FloatPoint&, |
259 int h, | 259 int h, |
260 const Color& backgroundColor, | 260 const Color& backgroundColor, |
261 int from = 0, | 261 int from = 0, |
262 int to = -1); | 262 int to = -1); |
263 | 263 |
264 void drawLineForText(const FloatPoint&, float width, bool printing); | 264 void drawLineForText(const FloatPoint&, float width); |
265 enum DocumentMarkerLineStyle { | 265 enum DocumentMarkerLineStyle { |
266 DocumentMarkerSpellingLineStyle, | 266 DocumentMarkerSpellingLineStyle, |
267 DocumentMarkerGrammarLineStyle | 267 DocumentMarkerGrammarLineStyle |
268 }; | 268 }; |
269 void drawLineForDocumentMarker(const FloatPoint&, | 269 void drawLineForDocumentMarker(const FloatPoint&, |
270 float width, | 270 float width, |
271 DocumentMarkerLineStyle); | 271 DocumentMarkerLineStyle); |
272 | 272 |
273 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip | 273 // beginLayer()/endLayer() behave like save()/restore() for CTM and clip |
274 // states. Apply SkBlendMode when the layer is composited on the backdrop | 274 // states. Apply SkBlendMode when the layer is composited on the backdrop |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 458 |
459 float m_deviceScaleFactor; | 459 float m_deviceScaleFactor; |
460 | 460 |
461 unsigned m_printing : 1; | 461 unsigned m_printing : 1; |
462 unsigned m_hasMetaData : 1; | 462 unsigned m_hasMetaData : 1; |
463 }; | 463 }; |
464 | 464 |
465 } // namespace blink | 465 } // namespace blink |
466 | 466 |
467 #endif // GraphicsContext_h | 467 #endif // GraphicsContext_h |
OLD | NEW |