| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 Document& document) override { | 84 Document& document) override { |
| 85 return new CanvasRenderingContext2D(canvas, attrs, document); | 85 return new CanvasRenderingContext2D(canvas, attrs, document); |
| 86 } | 86 } |
| 87 CanvasRenderingContext::ContextType GetContextType() const override { | 87 CanvasRenderingContext::ContextType GetContextType() const override { |
| 88 return CanvasRenderingContext::kContext2d; | 88 return CanvasRenderingContext::kContext2d; |
| 89 } | 89 } |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 ~CanvasRenderingContext2D() override; | 92 ~CanvasRenderingContext2D() override; |
| 93 | 93 |
| 94 void SetCanvasGetContextResult(RenderingContext&) final; | 94 void SetCanvasGetContextResult(blink::RenderingContext&) final; |
| 95 | 95 |
| 96 bool isContextLost() const override; | 96 bool isContextLost() const override; |
| 97 | 97 |
| 98 bool ShouldAntialias() const override; | 98 bool ShouldAntialias() const override; |
| 99 void SetShouldAntialias(bool) override; | 99 void SetShouldAntialias(bool) override; |
| 100 | 100 |
| 101 void scrollPathIntoView(); | 101 void scrollPathIntoView(); |
| 102 void scrollPathIntoView(Path2D*); | 102 void scrollPathIntoView(Path2D*); |
| 103 | 103 |
| 104 void clearRect(double x, double y, double width, double height) override; | 104 void clearRect(double x, double y, double width, double height) override; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 float GetFontBaseline(const FontMetrics&) const; | 230 float GetFontBaseline(const FontMetrics&) const; |
| 231 | 231 |
| 232 void DrawFocusIfNeededInternal(const Path&, Element*); | 232 void DrawFocusIfNeededInternal(const Path&, Element*); |
| 233 bool FocusRingCallIsValid(const Path&, Element*); | 233 bool FocusRingCallIsValid(const Path&, Element*); |
| 234 void DrawFocusRing(const Path&); | 234 void DrawFocusRing(const Path&); |
| 235 void UpdateElementAccessibility(const Path&, Element*); | 235 void UpdateElementAccessibility(const Path&, Element*); |
| 236 | 236 |
| 237 CanvasRenderingContext::ContextType GetContextType() const override { | 237 CanvasRenderingContext::ContextType GetContextType() const override { |
| 238 return CanvasRenderingContext::kContext2d; | 238 return CanvasRenderingContext::kContext2d; |
| 239 } | 239 } |
| 240 |
| 241 CanvasColorSpace ColorSpace() const override; |
| 242 String ColorSpaceAsString() const override; |
| 243 CanvasPixelFormat PixelFormat() const override; |
| 244 |
| 240 bool Is2d() const override { return true; } | 245 bool Is2d() const override { return true; } |
| 241 bool IsComposited() const override; | 246 bool IsComposited() const override; |
| 242 bool IsAccelerated() const override; | 247 bool IsAccelerated() const override; |
| 243 bool HasAlpha() const override { return CreationAttributes().alpha(); } | 248 bool HasAlpha() const override { return CreationAttributes().alpha(); } |
| 244 void SetIsHidden(bool) override; | 249 void SetIsHidden(bool) override; |
| 245 void Stop() final; | 250 void Stop() final; |
| 246 DECLARE_VIRTUAL_TRACE(); | 251 DECLARE_VIRTUAL_TRACE(); |
| 247 | 252 |
| 248 virtual bool IsTransformInvertible() const; | 253 virtual bool IsTransformInvertible() const; |
| 249 | 254 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 266 | 271 |
| 267 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 272 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
| 268 CanvasRenderingContext, | 273 CanvasRenderingContext, |
| 269 context, | 274 context, |
| 270 context->Is2d() && context->canvas(), | 275 context->Is2d() && context->canvas(), |
| 271 context.Is2d() && context.canvas()); | 276 context.Is2d() && context.canvas()); |
| 272 | 277 |
| 273 } // namespace blink | 278 } // namespace blink |
| 274 | 279 |
| 275 #endif // CanvasRenderingContext2D_h | 280 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |