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

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

Issue 1436153002: Apply clang-format with Chromium-style without column limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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..3cbd6ec4cf05ae334565eb6ebdfc078348be77f5 100644
--- a/third_party/WebKit/Source/wtf/Uint16Array.h
+++ b/third_party/WebKit/Source/wtf/Uint16Array.h
@@ -34,47 +34,42 @@ 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)
-{
+ : 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