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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/ValueConversions.cpp

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for landing 2 Created 4 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "platform/inspector_protocol/ValueConversions.h" 5 #include "platform/inspector_protocol/ValueConversions.h"
6 6
7 namespace blink { 7 namespace blink {
8 namespace protocol { 8 namespace protocol {
9 9
10 PassOwnPtr<protocol::Value> toValue(int value) 10 PassOwnPtr<protocol::Value> toValue(int value)
11 { 11 {
12 return FundamentalValue::create(value); 12 return FundamentalValue::create(value);
13 } 13 }
14 14
15 PassOwnPtr<protocol::Value> toValue(double value) 15 PassOwnPtr<protocol::Value> toValue(double value)
16 { 16 {
17 return FundamentalValue::create(value); 17 return FundamentalValue::create(value);
18 } 18 }
19 19
20 PassOwnPtr<protocol::Value> toValue(bool value) 20 PassOwnPtr<protocol::Value> toValue(bool value)
21 { 21 {
22 return FundamentalValue::create(value); 22 return FundamentalValue::create(value);
23 } 23 }
24 24
25 PassOwnPtr<protocol::Value> toValue(const String16& param)
26 {
27 return StringValue::create(param);
28 }
29
25 PassOwnPtr<protocol::Value> toValue(const String& param) 30 PassOwnPtr<protocol::Value> toValue(const String& param)
26 { 31 {
27 return StringValue::create(param); 32 return StringValue::create(param);
28 } 33 }
29 34
30 PassOwnPtr<protocol::Value> toValue(Value* param) 35 PassOwnPtr<protocol::Value> toValue(Value* param)
31 { 36 {
32 return param->clone(); 37 return param->clone();
33 } 38 }
34 39
35 PassOwnPtr<protocol::Value> toValue(DictionaryValue* param) 40 PassOwnPtr<protocol::Value> toValue(DictionaryValue* param)
36 { 41 {
37 return param->clone(); 42 return param->clone();
38 } 43 }
39 44
40 PassOwnPtr<protocol::Value> toValue(ListValue* param) 45 PassOwnPtr<protocol::Value> toValue(ListValue* param)
41 { 46 {
42 return param->clone(); 47 return param->clone();
43 } 48 }
44 49
45 } // namespace protocol 50 } // namespace protocol
46 } // namespace blink 51 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698