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

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

Issue 1178273002: Remove dead DataView IDL and C++ code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('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"
10 9
11 namespace blink { 10 namespace blink {
12 11
13 class DOMDataView final : public DOMArrayBufferView { 12 class DOMDataView final : public DOMArrayBufferView {
14 DEFINE_WRAPPERTYPEINFO(); 13 DEFINE_WRAPPERTYPEINFO();
15 public: 14 public:
16 typedef char ValueType; 15 typedef char ValueType;
17 16
18 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength); 17 static PassRefPtr<DOMDataView> create(PassRefPtr<DOMArrayBuffer>, unsigned b yteOffset, unsigned byteLength);
19 18
20 const DataView* view() const { return static_cast<const DataView*>(DOMArrayB ufferView::view()); }
21 DataView* view() { return static_cast<DataView*>(DOMArrayBufferView::view()) ; }
22
23 virtual v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creat ionContext) override; 19 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; 20 virtual v8::Local<v8::Object> associateWithWrapper(v8::Isolate*, const Wrapp erTypeInfo*, v8::Local<v8::Object> wrapper) override;
25 21
26 private: 22 private:
27 DOMDataView(PassRefPtr<DataView> dataView, PassRefPtr<DOMArrayBuffer> domArr ayBuffer) 23 DOMDataView(PassRefPtr<WTF::ArrayBufferView> dataView, PassRefPtr<DOMArrayBu ffer> domArrayBuffer)
28 : DOMArrayBufferView(dataView, domArrayBuffer) { } 24 : DOMArrayBufferView(dataView, domArrayBuffer) { }
29 }; 25 };
30 26
31 } // namespace blink 27 } // namespace blink
32 28
33 #endif // DOMDataView_h 29 #endif // DOMDataView_h
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698