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

Side by Side Diff: Source/core/dom/DOMDataView.h

Issue 698023005: Move the v8::Isolate* parameter to the first parameter of various binding methods in third_party/We… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/DOMArrayBufferView.h ('k') | Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DOMDataView_h 5 #ifndef DOMDataView_h
6 #define DOMDataView_h 6 #define DOMDataView_h
7 7
8 #include "core/dom/DOMArrayBufferView.h" 8 #include "core/dom/DOMArrayBufferView.h"
9 #include "core/html/canvas/DataView.h" 9 #include "core/html/canvas/DataView.h"
10 10
11 namespace blink { 11 namespace blink {
12 12
13 class DOMDataView final : public DOMArrayBufferView { 13 class DOMDataView final : public DOMArrayBufferView {
14 DEFINE_WRAPPERTYPEINFO(); 14 DEFINE_WRAPPERTYPEINFO();
15 public: 15 public:
16 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength); 16 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength);
17 17
18 const DataView* view() const { return static_cast<const DataView*>(DOMArrayB ufferView::view()); } 18 const DataView* view() const { return static_cast<const DataView*>(DOMArrayB ufferView::view()); }
19 DataView* view() { return static_cast<DataView*>(DOMArrayBufferView::view()) ; } 19 DataView* view() { return static_cast<DataView*>(DOMArrayBufferView::view()) ; }
20 20
21 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override; 21 virtual v8::Handle<v8::Object> wrap(v8::Handle<v8::Object> creationContext, v8::Isolate*) override;
22 virtual v8::Handle<v8::Object> associateWithWrapper(const WrapperTypeInfo*, v8::Handle<v8::Object> wrapper, v8::Isolate*) override; 22 virtual v8::Handle<v8::Object> associateWithWrapper(v8::Isolate*, const Wrap perTypeInfo*, v8::Handle<v8::Object> wrapper) override;
23 23
24 private: 24 private:
25 DOMDataView(PassRefPtr<DataView> dataView, PassRefPtr<DOMArrayBuffer> domArr ayBuffer) 25 DOMDataView(PassRefPtr<DataView> dataView, PassRefPtr<DOMArrayBuffer> domArr ayBuffer)
26 : DOMArrayBufferView(dataView, domArrayBuffer) { } 26 : DOMArrayBufferView(dataView, domArrayBuffer) { }
27 }; 27 };
28 28
29 } // namespace blink 29 } // namespace blink
30 30
31 #endif // DOMDataView_h 31 #endif // DOMDataView_h
OLDNEW
« no previous file with comments | « Source/core/dom/DOMArrayBufferView.h ('k') | Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698