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

Side by Side Diff: Source/wtf/Int32Array.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/Int16Array.h ('k') | Source/wtf/Int8Array.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 * Copyright (C) 2009 Google Inc. All rights reserved. 3 * Copyright (C) 2009 Google Inc. All rights reserved.
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 22 matching lines...) Expand all
33 33
34 class Int32Array final : public IntegralTypedArrayBase<int> { 34 class Int32Array final : public IntegralTypedArrayBase<int> {
35 public: 35 public:
36 static inline PassRefPtr<Int32Array> create(unsigned length); 36 static inline PassRefPtr<Int32Array> create(unsigned length);
37 static inline PassRefPtr<Int32Array> create(const int* array, unsigned lengt h); 37 static inline PassRefPtr<Int32Array> create(const int* array, unsigned lengt h);
38 static inline PassRefPtr<Int32Array> create(PassRefPtr<ArrayBuffer>, unsigne d byteOffset, unsigned length); 38 static inline PassRefPtr<Int32Array> create(PassRefPtr<ArrayBuffer>, unsigne d byteOffset, unsigned length);
39 39
40 using TypedArrayBase<int>::set; 40 using TypedArrayBase<int>::set;
41 using IntegralTypedArrayBase<int>::set; 41 using IntegralTypedArrayBase<int>::set;
42 42
43 virtual ViewType type() const override 43 ViewType type() const override
44 { 44 {
45 return TypeInt32; 45 return TypeInt32;
46 } 46 }
47 47
48 private: 48 private:
49 inline Int32Array(PassRefPtr<ArrayBuffer>, 49 inline Int32Array(PassRefPtr<ArrayBuffer>,
50 unsigned byteOffset, 50 unsigned byteOffset,
51 unsigned length); 51 unsigned length);
52 // Make constructor visible to superclass. 52 // Make constructor visible to superclass.
53 friend class TypedArrayBase<int>; 53 friend class TypedArrayBase<int>;
(...skipping 17 matching lines...) Expand all
71 Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi gned length) 71 Int32Array::Int32Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsi gned length)
72 : IntegralTypedArrayBase<int>(buffer, byteOffset, length) 72 : IntegralTypedArrayBase<int>(buffer, byteOffset, length)
73 { 73 {
74 } 74 }
75 75
76 } // namespace WTF 76 } // namespace WTF
77 77
78 using WTF::Int32Array; 78 using WTF::Int32Array;
79 79
80 #endif // Int32Array_h 80 #endif // Int32Array_h
OLDNEW
« no previous file with comments | « Source/wtf/Int16Array.h ('k') | Source/wtf/Int8Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698