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

Side by Side Diff: Source/core/html/canvas/CanvasPattern.h

Issue 635793002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/html (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
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 20 matching lines...) Expand all
31 #include "platform/graphics/Pattern.h" 31 #include "platform/graphics/Pattern.h"
32 #include "wtf/Forward.h" 32 #include "wtf/Forward.h"
33 #include "wtf/PassRefPtr.h" 33 #include "wtf/PassRefPtr.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 class ExceptionState; 38 class ExceptionState;
39 class Image; 39 class Image;
40 40
41 class CanvasPattern FINAL : public RefCountedWillBeGarbageCollectedFinalized<Can vasPattern>, public ScriptWrappable { 41 class CanvasPattern final : public RefCountedWillBeGarbageCollectedFinalized<Can vasPattern>, public ScriptWrappable {
42 DEFINE_WRAPPERTYPEINFO(); 42 DEFINE_WRAPPERTYPEINFO();
43 public: 43 public:
44 static Pattern::RepeatMode parseRepetitionType(const String&, ExceptionState &); 44 static Pattern::RepeatMode parseRepetitionType(const String&, ExceptionState &);
45 45
46 static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image, 46 static PassRefPtrWillBeRawPtr<CanvasPattern> create(PassRefPtr<Image> image,
47 Pattern::RepeatMode repeat, bool originClean) 47 Pattern::RepeatMode repeat, bool originClean)
48 { 48 {
49 return adoptRefWillBeNoop(new CanvasPattern(image, repeat, originClean)) ; 49 return adoptRefWillBeNoop(new CanvasPattern(image, repeat, originClean)) ;
50 } 50 }
51 51
52 Pattern* pattern() const { return m_pattern.get(); } 52 Pattern* pattern() const { return m_pattern.get(); }
53 53
54 bool originClean() const { return m_originClean; } 54 bool originClean() const { return m_originClean; }
55 55
56 void trace(Visitor*) { } 56 void trace(Visitor*) { }
57 57
58 void setTransform(SVGMatrixTearOff*); 58 void setTransform(SVGMatrixTearOff*);
59 59
60 private: 60 private:
61 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean); 61 CanvasPattern(PassRefPtr<Image>, Pattern::RepeatMode, bool originClean);
62 62
63 RefPtr<Pattern> m_pattern; 63 RefPtr<Pattern> m_pattern;
64 bool m_originClean; 64 bool m_originClean;
65 }; 65 };
66 66
67 } // namespace blink 67 } // namespace blink
68 68
69 #endif // CanvasPattern_h 69 #endif // CanvasPattern_h
OLDNEW
« no previous file with comments | « Source/core/html/canvas/CanvasGradient.h ('k') | Source/core/html/canvas/CanvasRenderingContext2D.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698