| 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 float GetFontBaseline(const FontMetrics&) const; | 232 float GetFontBaseline(const FontMetrics&) const; |
| 233 | 233 |
| 234 void DrawFocusIfNeededInternal(const Path&, Element*); | 234 void DrawFocusIfNeededInternal(const Path&, Element*); |
| 235 bool FocusRingCallIsValid(const Path&, Element*); | 235 bool FocusRingCallIsValid(const Path&, Element*); |
| 236 void DrawFocusRing(const Path&); | 236 void DrawFocusRing(const Path&); |
| 237 void UpdateElementAccessibility(const Path&, Element*); | 237 void UpdateElementAccessibility(const Path&, Element*); |
| 238 | 238 |
| 239 CanvasRenderingContext::ContextType GetContextType() const override { | 239 CanvasRenderingContext::ContextType GetContextType() const override { |
| 240 return CanvasRenderingContext::kContext2d; | 240 return CanvasRenderingContext::kContext2d; |
| 241 } | 241 } |
| 242 |
| 243 CanvasColorSpace ColorSpace() const override; |
| 244 String ColorSpaceAsString() const override; |
| 245 CanvasPixelFormat PixelFormat() const override; |
| 246 |
| 242 bool Is2d() const override { return true; } | 247 bool Is2d() const override { return true; } |
| 243 bool IsComposited() const override; | 248 bool IsComposited() const override; |
| 244 bool IsAccelerated() const override; | 249 bool IsAccelerated() const override; |
| 245 bool HasAlpha() const override { return CreationAttributes().alpha(); } | 250 bool HasAlpha() const override { return CreationAttributes().alpha(); } |
| 246 void SetIsHidden(bool) override; | 251 void SetIsHidden(bool) override; |
| 247 void Stop() final; | 252 void Stop() final; |
| 248 DECLARE_VIRTUAL_TRACE(); | 253 DECLARE_VIRTUAL_TRACE(); |
| 249 | 254 |
| 250 virtual bool IsTransformInvertible() const; | 255 virtual bool IsTransformInvertible() const; |
| 251 | 256 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 268 | 273 |
| 269 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, | 274 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, |
| 270 CanvasRenderingContext, | 275 CanvasRenderingContext, |
| 271 context, | 276 context, |
| 272 context->Is2d() && context->canvas(), | 277 context->Is2d() && context->canvas(), |
| 273 context.Is2d() && context.canvas()); | 278 context.Is2d() && context.canvas()); |
| 274 | 279 |
| 275 } // namespace blink | 280 } // namespace blink |
| 276 | 281 |
| 277 #endif // CanvasRenderingContext2D_h | 282 #endif // CanvasRenderingContext2D_h |
| OLD | NEW |