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

Side by Side Diff: third_party/WebKit/Source/core/testing/SequenceTest.cpp

Issue 2810843002: bindings: Make the sequence conversion code more complaint with WebIDL. (Closed)
Patch Set: Created 3 years, 8 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "SequenceTest.h"
6
7 namespace blink {
8
9 SequenceTest::SequenceTest() {}
10
11 SequenceTest::~SequenceTest() {}
12
13 Vector<Vector<String>> SequenceTest::identityByteStringSequenceSequence(
14 const Vector<Vector<String>>& arg) const {
15 return arg;
16 }
17
18 Vector<double> SequenceTest::identityDoubleSequence(
19 const Vector<double>& arg) const {
20 return arg;
21 }
22
23 Vector<String> SequenceTest::identityFoodEnumSequence(
24 const Vector<String>& arg) const {
25 return arg;
26 }
27
28 Vector<int32_t> SequenceTest::identityLongSequence(
29 const Vector<int32_t>& arg) const {
30 return arg;
31 }
32
33 Nullable<Vector<uint8_t>> SequenceTest::identityOctetSequenceOrNull(
34 const Nullable<Vector<uint8_t>>& arg) const {
35 return arg;
36 }
37
38 HeapVector<Member<Element>> SequenceTest::getElementSequence() const {
39 return m_elementSequence;
40 }
41
42 void SequenceTest::setElementSequence(const HeapVector<Member<Element>>& arg) {
43 m_elementSequence = arg;
44 }
45
46 bool SequenceTest::unionReceivedSequence(const DoubleOrDoubleSequence& arg) {
47 return arg.isDoubleSequence();
48 }
49
50 DEFINE_TRACE(SequenceTest) {
51 visitor->Trace(m_elementSequence);
52 }
53
54 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698