| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights reserv
ed. |
| 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 void fillText(const String& text, float x, float y); | 196 void fillText(const String& text, float x, float y); |
| 197 void fillText(const String& text, float x, float y, float maxWidth); | 197 void fillText(const String& text, float x, float y, float maxWidth); |
| 198 void strokeText(const String& text, float x, float y); | 198 void strokeText(const String& text, float x, float y); |
| 199 void strokeText(const String& text, float x, float y, float maxWidth); | 199 void strokeText(const String& text, float x, float y, float maxWidth); |
| 200 TextMetrics* measureText(const String& text); | 200 TextMetrics* measureText(const String& text); |
| 201 | 201 |
| 202 bool imageSmoothingEnabled() const; | 202 bool imageSmoothingEnabled() const; |
| 203 void setImageSmoothingEnabled(bool); | 203 void setImageSmoothingEnabled(bool); |
| 204 | 204 |
| 205 String imageSmoothingQuality() const; |
| 206 void setImageSmoothingQuality(String); |
| 207 |
| 205 void getContextAttributes(Canvas2DContextAttributes&) const; | 208 void getContextAttributes(Canvas2DContextAttributes&) const; |
| 206 | 209 |
| 207 void drawFocusIfNeeded(Element*); | 210 void drawFocusIfNeeded(Element*); |
| 208 void drawFocusIfNeeded(Path2D*, Element*); | 211 void drawFocusIfNeeded(Path2D*, Element*); |
| 209 | 212 |
| 210 void addHitRegion(const HitRegionOptions&, ExceptionState&); | 213 void addHitRegion(const HitRegionOptions&, ExceptionState&); |
| 211 void removeHitRegion(const String& id); | 214 void removeHitRegion(const String& id); |
| 212 void clearHitRegions(); | 215 void clearHitRegions(); |
| 213 HitRegion* hitRegionAtPoint(const FloatPoint&); | 216 HitRegion* hitRegionAtPoint(const FloatPoint&); |
| 214 unsigned hitRegionsCount() const override; | 217 unsigned hitRegionsCount() const override; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; | 319 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; |
| 317 bool m_pruneLocalFontCacheScheduled; | 320 bool m_pruneLocalFontCacheScheduled; |
| 318 ListHashSet<String> m_fontLRUList; | 321 ListHashSet<String> m_fontLRUList; |
| 319 }; | 322 }; |
| 320 | 323 |
| 321 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); | 324 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con
text->is2d(), context.is2d()); |
| 322 | 325 |
| 323 } // namespace blink | 326 } // namespace blink |
| 324 | 327 |
| 325 #endif // CanvasRenderingContext2D_h | 328 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |