Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2D.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont ext, public CanvasPathMethods, public WebThread::TaskObserver { 64 class MODULES_EXPORT CanvasRenderingContext2D final : public CanvasRenderingCont ext, public CanvasPathMethods, public WebThread::TaskObserver {
65 DEFINE_WRAPPERTYPEINFO(); 65 DEFINE_WRAPPERTYPEINFO();
66 public: 66 public:
67 class Factory : public CanvasRenderingContextFactory { 67 class Factory : public CanvasRenderingContextFactory {
68 WTF_MAKE_NONCOPYABLE(Factory); 68 WTF_MAKE_NONCOPYABLE(Factory);
69 public: 69 public:
70 Factory() {} 70 Factory() {}
71 ~Factory() override {} 71 ~Factory() override {}
72 72
73 PassOwnPtrWillBeRawPtr<CanvasRenderingContext> create(HTMLCanvasElement* canvas, const CanvasContextCreationAttributes& attrs, Document& document) overr ide 73 RawPtr<CanvasRenderingContext> create(HTMLCanvasElement* canvas, const C anvasContextCreationAttributes& attrs, Document& document) override
74 { 74 {
75 return adoptPtrWillBeNoop(new CanvasRenderingContext2D(canvas, attrs , document)); 75 return (new CanvasRenderingContext2D(canvas, attrs, document));
76 } 76 }
77 CanvasRenderingContext::ContextType contextType() const override { retur n CanvasRenderingContext::Context2d; } 77 CanvasRenderingContext::ContextType contextType() const override { retur n CanvasRenderingContext::Context2d; }
78 void onError(HTMLCanvasElement*, const String& error) override { } 78 void onError(HTMLCanvasElement*, const String& error) override { }
79 }; 79 };
80 80
81 ~CanvasRenderingContext2D() override; 81 ~CanvasRenderingContext2D() override;
82 82
83 void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const; 83 void strokeStyle(StringOrCanvasGradientOrCanvasPattern&) const;
84 void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&); 84 void setStrokeStyle(const StringOrCanvasGradientOrCanvasPattern&);
85 85
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 String globalCompositeOperation() const; 127 String globalCompositeOperation() const;
128 void setGlobalCompositeOperation(const String&); 128 void setGlobalCompositeOperation(const String&);
129 129
130 String filter() const; 130 String filter() const;
131 void setFilter(const String&); 131 void setFilter(const String&);
132 132
133 void save(); 133 void save();
134 void restore(); 134 void restore();
135 135
136 PassRefPtrWillBeRawPtr<SVGMatrixTearOff> currentTransform() const; 136 RawPtr<SVGMatrixTearOff> currentTransform() const;
137 void setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMatrixTearOff>); 137 void setCurrentTransform(RawPtr<SVGMatrixTearOff>);
138 138
139 void scale(double sx, double sy); 139 void scale(double sx, double sy);
140 void rotate(double angleInRadians); 140 void rotate(double angleInRadians);
141 void translate(double tx, double ty); 141 void translate(double tx, double ty);
142 void transform(double m11, double m12, double m21, double m22, double dx, do uble dy); 142 void transform(double m11, double m12, double m21, double m22, double dx, do uble dy);
143 void setTransform(double m11, double m12, double m21, double m22, double dx, double dy); 143 void setTransform(double m11, double m12, double m21, double m22, double dx, double dy);
144 void resetTransform(); 144 void resetTransform();
145 145
146 void beginPath(); 146 void beginPath();
147 147
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 bool isAccelerated() const override; 297 bool isAccelerated() const override;
298 bool hasAlpha() const override { return m_hasAlpha; } 298 bool hasAlpha() const override { return m_hasAlpha; }
299 void setIsHidden(bool) override; 299 void setIsHidden(bool) override;
300 void stop() final; 300 void stop() final;
301 DECLARE_VIRTUAL_TRACE(); 301 DECLARE_VIRTUAL_TRACE();
302 302
303 virtual bool isTransformInvertible() const; 303 virtual bool isTransformInvertible() const;
304 304
305 WebLayer* platformLayer() const override; 305 WebLayer* platformLayer() const override;
306 306
307 WillBeHeapVector<OwnPtrWillBeMember<CanvasRenderingContext2DState>> m_stateS tack; 307 HeapVector<Member<CanvasRenderingContext2DState>> m_stateStack;
308 PersistentWillBeMember<HitRegionManager> m_hitRegionManager; 308 Member<HitRegionManager> m_hitRegionManager;
309 AntiAliasingMode m_clipAntialiasing; 309 AntiAliasingMode m_clipAntialiasing;
310 bool m_hasAlpha; 310 bool m_hasAlpha;
311 LostContextMode m_contextLostMode; 311 LostContextMode m_contextLostMode;
312 bool m_contextRestorable; 312 bool m_contextRestorable;
313 unsigned m_tryRestoreContextAttemptCount; 313 unsigned m_tryRestoreContextAttemptCount;
314 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer; 314 Timer<CanvasRenderingContext2D> m_dispatchContextLostEventTimer;
315 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer; 315 Timer<CanvasRenderingContext2D> m_dispatchContextRestoredEventTimer;
316 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer; 316 Timer<CanvasRenderingContext2D> m_tryRestoreContextEventTimer;
317 317
318 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle; 318 HashMap<String, Font> m_fontsResolvedUsingCurrentStyle;
319 bool m_pruneLocalFontCacheScheduled; 319 bool m_pruneLocalFontCacheScheduled;
320 ListHashSet<String> m_fontLRUList; 320 ListHashSet<String> m_fontLRUList;
321 }; 321 };
322 322
323 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d()); 323 DEFINE_TYPE_CASTS(CanvasRenderingContext2D, CanvasRenderingContext, context, con text->is2d(), context.is2d());
324 324
325 } // namespace blink 325 } // namespace blink
326 326
327 #endif // CanvasRenderingContext2D_h 327 #endif // CanvasRenderingContext2D_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698