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

Unified Diff: third_party/WebKit/Source/wtf/Uint8Array.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/Uint32Array.h ('k') | third_party/WebKit/Source/wtf/Uint8ClampedArray.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/Uint8Array.h
diff --git a/third_party/WebKit/Source/wtf/Uint8Array.h b/third_party/WebKit/Source/wtf/Uint8Array.h
index 1c38cc5a0928a8d0e533fc26522ab453297839a8..90cdadfff865e94989d7a8830670dcb94ef116fd 100644
--- a/third_party/WebKit/Source/wtf/Uint8Array.h
+++ b/third_party/WebKit/Source/wtf/Uint8Array.h
@@ -34,47 +34,50 @@ namespace WTF {
class ArrayBuffer;
class Uint8Array : public IntegralTypedArrayBase<unsigned char> {
-public:
- static inline PassRefPtr<Uint8Array> create(unsigned length);
- static inline PassRefPtr<Uint8Array> create(const unsigned char* array, unsigned length);
- static inline PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
+ public:
+ static inline PassRefPtr<Uint8Array> create(unsigned length);
+ static inline PassRefPtr<Uint8Array> create(const unsigned char* array,
+ unsigned length);
+ static inline PassRefPtr<Uint8Array> create(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
- using TypedArrayBase<unsigned char>::set;
- using IntegralTypedArrayBase<unsigned char>::set;
+ using TypedArrayBase<unsigned char>::set;
+ using IntegralTypedArrayBase<unsigned char>::set;
- ViewType type() const override
- {
- return TypeUint8;
- }
+ ViewType type() const override { return TypeUint8; }
-protected:
- inline Uint8Array(PassRefPtr<ArrayBuffer>, unsigned byteOffset, unsigned length);
- // Make constructor visible to superclass.
- friend class TypedArrayBase<unsigned char>;
+ protected:
+ inline Uint8Array(PassRefPtr<ArrayBuffer>,
+ unsigned byteOffset,
+ unsigned length);
+ // Make constructor visible to superclass.
+ friend class TypedArrayBase<unsigned char>;
};
-PassRefPtr<Uint8Array> Uint8Array::create(unsigned length)
-{
- return TypedArrayBase<unsigned char>::create<Uint8Array>(length);
+PassRefPtr<Uint8Array> Uint8Array::create(unsigned length) {
+ return TypedArrayBase<unsigned char>::create<Uint8Array>(length);
}
-PassRefPtr<Uint8Array> Uint8Array::create(const unsigned char* array, unsigned length)
-{
- return TypedArrayBase<unsigned char>::create<Uint8Array>(array, length);
+PassRefPtr<Uint8Array> Uint8Array::create(const unsigned char* array,
+ unsigned length) {
+ return TypedArrayBase<unsigned char>::create<Uint8Array>(array, length);
}
-PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-{
- return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset, length);
+PassRefPtr<Uint8Array> Uint8Array::create(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length) {
+ return TypedArrayBase<unsigned char>::create<Uint8Array>(buffer, byteOffset,
+ length);
}
-Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer, unsigned byteOffset, unsigned length)
-: IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length)
-{
-}
+Uint8Array::Uint8Array(PassRefPtr<ArrayBuffer> buffer,
+ unsigned byteOffset,
+ unsigned length)
+ : IntegralTypedArrayBase<unsigned char>(buffer, byteOffset, length) {}
-} // namespace WTF
+} // namespace WTF
using WTF::Uint8Array;
-#endif // Uint8Array_h
+#endif // Uint8Array_h
« no previous file with comments | « third_party/WebKit/Source/wtf/Uint32Array.h ('k') | third_party/WebKit/Source/wtf/Uint8ClampedArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698