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

Unified Diff: third_party/WebKit/Source/wtf/Uint16Array.h

Issue 1611343002: wtf reformat test Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pydent Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/TypedArrayBase.h ('k') | third_party/WebKit/Source/wtf/Uint32Array.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Uint16Array.h
diff --git a/third_party/WebKit/Source/wtf/Uint16Array.h b/third_party/WebKit/Source/wtf/Uint16Array.h
index 26645fe0f51068363c21108422b8884c0acbe743..f6de9e158102f2ab780695afa7a4861492b627c4 100644
--- a/third_party/WebKit/Source/wtf/Uint16Array.h
+++ b/third_party/WebKit/Source/wtf/Uint16Array.h
@@ -34,47 +34,50 @@ namespace WTF {
class ArrayBuffer;
class Uint16Array final : public IntegralTypedArrayBase<unsigned short> {
-public:
- static inline PassRefPtr<Uint16Array> create(unsigned length);
- static inline PassRefPtr<Uint16Array> create(const unsigned short* array, unsigned length);
- static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
+ public:
+ static inline PassRefPtr<Uint16Array> create(unsigned length);
+ static inline PassRefPtr<Uint16Array> create(const unsigned short* array,
+ unsigned length);
+ static inline PassRefPtr<Uint16Array> create(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
- using TypedArrayBase<unsigned short>::set;
- using IntegralTypedArrayBase<unsigned short>::set;
+ using TypedArrayBase<unsigned short>::set;
+ using IntegralTypedArrayBase<unsigned short>::set;
- ViewType type() const override
- {
- return TypeUint16;
- }
+ ViewType type() const override { return TypeUint16; }
-private:
- inline Uint16Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
- // Make constructor visible to superclass.
- friend class TypedArrayBase<unsigned short>;
+ private:
+ inline Uint16Array(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
+ // Make constructor visible to superclass.
+ friend class TypedArrayBase<unsigned short>;
};
-PassRefPtr<Uint16Array> Uint16Array::create(unsigned length)
-{
- return TypedArrayBase<unsigned short>::create<Uint16Array>(length);
+PassRefPtr<Uint16Array> Uint16Array::create(unsigned length) {
+ return TypedArrayBase<unsigned short>::create<Uint16Array>(length);
}
-PassRefPtr<Uint16Array> Uint16Array::create(const unsigned short* array, unsigned length)
-{
- return TypedArrayBase<unsigned short>::create<Uint16Array>(array, length);
+PassRefPtr<Uint16Array> Uint16Array::create(const unsigned short* array,
+ unsigned length) {
+ return TypedArrayBase<unsigned short>::create<Uint16Array>(array, length);
}
-PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-{
- return TypedArrayBase<unsigned short>::create<Uint16Array>(buffer, byteOffset, length);
+PassRefPtr<Uint16Array> Uint16Array::create(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length) {
+ return TypedArrayBase<unsigned short>::create<Uint16Array>(buffer, byteOffset,
+ length);
}
-Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
- : IntegralTypedArrayBase<unsigned short>(buffer, byteOffset, length)
-{
-}
+Uint16Array::Uint16Array(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length)
+ : IntegralTypedArrayBase<unsigned short>(buffer, byteOffset, length) {}
-} // namespace WTF
+} // namespace WTF
using WTF::Uint16Array;
-#endif // Uint16Array_h
+#endif // Uint16Array_h
« no previous file with comments | « third_party/WebKit/Source/wtf/TypedArrayBase.h ('k') | third_party/WebKit/Source/wtf/Uint32Array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698