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

Side by Side Diff: Source/wtf/Int16Array.h

Issue 1218293019: Fix virtual/override/final usage in Source/wtf/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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
« no previous file with comments | « Source/wtf/Float64Array.h ('k') | Source/wtf/Int32Array.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 23 matching lines...) Expand all
34 34
35 class Int16Array final : public IntegralTypedArrayBase<short> { 35 class Int16Array final : public IntegralTypedArrayBase<short> {
36 public: 36 public:
37 static inline PassRefPtr<Int16Array> create(unsigned length); 37 static inline PassRefPtr<Int16Array> create(unsigned length);
38 static inline PassRefPtr<Int16Array> create(const short* array, unsigned len gth); 38 static inline PassRefPtr<Int16Array> create(const short* array, unsigned len gth);
39 static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigne d byteOffset, unsigned length); 39 static inline PassRefPtr<Int16Array> create(PassRefPtr<ArrayBuffer>, unsigne d byteOffset, unsigned length);
40 40
41 using TypedArrayBase<short>::set; 41 using TypedArrayBase<short>::set;
42 using IntegralTypedArrayBase<short>::set; 42 using IntegralTypedArrayBase<short>::set;
43 43
44 virtual ViewType type() const override 44 ViewType type() const override
45 { 45 {
46 return TypeInt16; 46 return TypeInt16;
47 } 47 }
48 48
49 private: 49 private:
50 inline Int16Array(PassRefPtr<ArrayBuffer>, 50 inline Int16Array(PassRefPtr<ArrayBuffer>,
51 unsigned byteOffset, 51 unsigned byteOffset,
52 unsigned length); 52 unsigned length);
53 // Make constructor visible to superclass. 53 // Make constructor visible to superclass.
54 friend class TypedArrayBase<short>; 54 friend class TypedArrayBase<short>;
(...skipping 17 matching lines...) Expand all
72 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi gned length) 72 Int16Array::Int16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi gned length)
73 : IntegralTypedArrayBase<short>(buffer, byteOffset, length) 73 : IntegralTypedArrayBase<short>(buffer, byteOffset, length)
74 { 74 {
75 } 75 }
76 76
77 } // namespace WTF 77 } // namespace WTF
78 78
79 using WTF::Int16Array; 79 using WTF::Int16Array;
80 80
81 #endif // Int16Array_h 81 #endif // Int16Array_h
OLDNEW
« no previous file with comments | « Source/wtf/Float64Array.h ('k') | Source/wtf/Int32Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698