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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 1662423002: Make CanvasRenderingContext not inherit from ActiveDOMObject (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make the function pure virtual 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) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 bool shouldBeDirectComposited() const; 142 bool shouldBeDirectComposited() const;
143 143
144 void prepareSurfaceForPaintingIfNeeded() const; 144 void prepareSurfaceForPaintingIfNeeded() const;
145 145
146 const AtomicString imageSourceURL() const override; 146 const AtomicString imageSourceURL() const override;
147 147
148 InsertionNotificationRequest insertedInto(ContainerNode*) override; 148 InsertionNotificationRequest insertedInto(ContainerNode*) override;
149 149
150 // DocumentVisibilityObserver implementation 150 // DocumentVisibilityObserver implementation
151 void didChangeVisibilityState(PageVisibilityState) override; 151 void didChangeVisibilityState(PageVisibilityState) override;
152 void willDetachDocument() override;
152 153
153 // CanvasImageSource implementation 154 // CanvasImageSource implementation
154 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt) const override; 155 PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHi nt) const override;
155 bool wouldTaintOrigin(SecurityOrigin*) const override; 156 bool wouldTaintOrigin(SecurityOrigin*) const override;
156 FloatSize elementSize() const override; 157 FloatSize elementSize() const override;
157 bool isCanvasElement() const override { return true; } 158 bool isCanvasElement() const override { return true; }
158 bool isOpaque() const override; 159 bool isOpaque() const override;
159 160
160 // ImageBufferClient implementation 161 // ImageBufferClient implementation
161 void notifySurfaceInvalid() override; 162 void notifySurfaceInvalid() override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 mutable bool m_didFailToCreateImageBuffer; 228 mutable bool m_didFailToCreateImageBuffer;
228 bool m_imageBufferIsClear; 229 bool m_imageBufferIsClear;
229 OwnPtr<ImageBuffer> m_imageBuffer; 230 OwnPtr<ImageBuffer> m_imageBuffer;
230 231
231 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue). 232 mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platfor ms that have to copy the image buffer to render (and for CSSCanvasValue).
232 }; 233 };
233 234
234 } // namespace blink 235 } // namespace blink
235 236
236 #endif // HTMLCanvasElement_h 237 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698