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

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

Issue 1882003002: include RefCounted.h where needed, only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile fix Created 4 years, 8 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, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
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 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #ifndef CanvasGradient_h 27 #ifndef CanvasGradient_h
28 #define CanvasGradient_h 28 #define CanvasGradient_h
29 29
30 #include "bindings/core/v8/ScriptWrappable.h" 30 #include "bindings/core/v8/ScriptWrappable.h"
31 #include "modules/ModulesExport.h" 31 #include "modules/ModulesExport.h"
32 #include "platform/graphics/Gradient.h" 32 #include "platform/graphics/Gradient.h"
33 #include "platform/heap/Handle.h" 33 #include "platform/heap/Handle.h"
34 #include "wtf/Forward.h" 34 #include "wtf/Forward.h"
35 #include "wtf/PassRefPtr.h"
36 #include "wtf/RefCounted.h"
37 35
38 namespace blink { 36 namespace blink {
39 37
40 class ExceptionState; 38 class ExceptionState;
41 39
42 class MODULES_EXPORT CanvasGradient final : public GarbageCollectedFinalized<Can vasGradient>, public ScriptWrappable { 40 class MODULES_EXPORT CanvasGradient final : public GarbageCollectedFinalized<Can vasGradient>, public ScriptWrappable {
43 DEFINE_WRAPPERTYPEINFO(); 41 DEFINE_WRAPPERTYPEINFO();
44 public: 42 public:
45 static CanvasGradient* create(const FloatPoint& p0, const FloatPoint& p1) 43 static CanvasGradient* create(const FloatPoint& p0, const FloatPoint& p1)
46 { 44 {
(...skipping 13 matching lines...) Expand all
60 private: 58 private:
61 CanvasGradient(const FloatPoint& p0, const FloatPoint& p1); 59 CanvasGradient(const FloatPoint& p0, const FloatPoint& p1);
62 CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r 1); 60 CanvasGradient(const FloatPoint& p0, float r0, const FloatPoint& p1, float r 1);
63 61
64 RefPtr<Gradient> m_gradient; 62 RefPtr<Gradient> m_gradient;
65 }; 63 };
66 64
67 } // namespace blink 65 } // namespace blink
68 66
69 #endif // CanvasGradient_h 67 #endif // CanvasGradient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698