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

Side by Side Diff: Source/platform/transforms/IdentityTransformOperation.h

Issue 131003004: Update platform classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 19 matching lines...) Expand all
30 namespace WebCore { 30 namespace WebCore {
31 31
32 class PLATFORM_EXPORT IdentityTransformOperation : public TransformOperation { 32 class PLATFORM_EXPORT IdentityTransformOperation : public TransformOperation {
33 public: 33 public:
34 static PassRefPtr<IdentityTransformOperation> create() 34 static PassRefPtr<IdentityTransformOperation> create()
35 { 35 {
36 return adoptRef(new IdentityTransformOperation()); 36 return adoptRef(new IdentityTransformOperation());
37 } 37 }
38 38
39 private: 39 private:
40 virtual bool isIdentity() const { return true; } 40 virtual bool isIdentity() const OVERRIDE FINAL { return true; }
41 virtual OperationType type() const OVERRIDE { return Identity; } 41 virtual OperationType type() const OVERRIDE { return Identity; }
42 42
43 virtual bool operator==(const TransformOperation& o) const 43 virtual bool operator==(const TransformOperation& o) const
44 { 44 {
45 return isSameType(o); 45 return isSameType(o);
46 } 46 }
47 47
48 virtual void apply(TransformationMatrix&, const FloatSize&) const { } 48 virtual void apply(TransformationMatrix&, const FloatSize&) const OVERRIDE { }
49 49
50 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false) 50 virtual PassRefPtr<TransformOperation> blend(const TransformOperation*, doub le, bool = false) OVERRIDE
51 { 51 {
52 return this; 52 return this;
53 } 53 }
54 54
55 IdentityTransformOperation() 55 IdentityTransformOperation()
56 { 56 {
57 } 57 }
58 58
59 }; 59 };
60 60
61 } // namespace WebCore 61 } // namespace WebCore
62 62
63 #endif // IdentityTransformOperation_h 63 #endif // IdentityTransformOperation_h
OLDNEW
« no previous file with comments | « Source/platform/text/LineEnding.cpp ('k') | Source/platform/transforms/InterpolatedTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698