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

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

Issue 1126013003: v8::Isolate* should be the first parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Wrap function Change for v8::Isolate* , as it is no more optional argument Created 5 years, 7 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
« 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 typedef char ValueType; 16 typedef char ValueType;
17 17
18 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength); 18 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength);
19 19
20 const DataView* view() const { return static_cast<const DataView*>(DOMArrayB ufferView::view()); } 20 const DataView* view() const { return static_cast<const DataView*>(DOMArrayB ufferView::view()); }
21 DataView* view() { return static_cast<DataView*>(DOMArrayBufferView::view()) ; } 21 DataView* view() { return static_cast<DataView*>(DOMArrayBufferView::view()) ; }
22 22
23 virtual v8::Local<v8::Object> wrap(v8::Local<v8::Object> creationContext, v8 ::Isolate*) override; 23 virtual v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creat ionContext) override;
24 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp erTypeInfo*, v8::Local<v8::Object> wrapper) override; 24 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp erTypeInfo*, v8::Local<v8::Object> wrapper) override;
25 25
26 private: 26 private:
27 DOMDataView(PassRefPtr<DataView> dataView, PassRefPtr<DOMArrayBuffer> domArr ayBuffer) 27 DOMDataView(PassRefPtr<DataView> dataView, PassRefPtr<DOMArrayBuffer> domArr ayBuffer)
28 : DOMArrayBufferView(dataView, domArrayBuffer) { } 28 : DOMArrayBufferView(dataView, domArrayBuffer) { }
29 }; 29 };
30 30
31 } // namespace blink 31 } // namespace blink
32 32
33 #endif // DOMDataView_h 33 #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