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

Side by Side Diff: third_party/WebKit/Source/platform/inspector_protocol/Frontend_cpp.template

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 // This file is generated 1 // This file is generated
2 2
3 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 3 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style license that can be 4 // Use of this source code is governed by a BSD-style license that can be
5 // found in the LICENSE file. 5 // found in the LICENSE file.
6 6
7 #include "platform/inspector_protocol/{{class_name}}.h" 7 #include "platform/inspector_protocol/{{class_name}}.h"
8 8
9 #include "wtf/text/WTFString.h" 9 #include "platform/inspector_protocol/String16.h"
10 10
11 namespace blink { 11 namespace blink {
12 namespace protocol { 12 namespace protocol {
13 13
14 Frontend::Frontend(FrontendChannel* frontendChannel) 14 Frontend::Frontend(FrontendChannel* frontendChannel)
15 : m_frontendChannel(frontendChannel) 15 : m_frontendChannel(frontendChannel)
16 {% for domain in api.domains %} 16 {% for domain in api.domains %}
17 , m_{{domain.domain | lower}}(frontendChannel) 17 , m_{{domain.domain | lower}}(frontendChannel)
18 {% endfor %} 18 {% endfor %}
19 { 19 {
(...skipping 24 matching lines...) Expand all
44 {% endfor %} 44 {% endfor %}
45 jsonMessage->setObject("params", paramsObject.release()); 45 jsonMessage->setObject("params", paramsObject.release());
46 if (m_frontendChannel) 46 if (m_frontendChannel)
47 m_frontendChannel->sendProtocolNotification(jsonMessage.release()); 47 m_frontendChannel->sendProtocolNotification(jsonMessage.release());
48 } 48 }
49 {% endfor %} 49 {% endfor %}
50 {% endfor %} 50 {% endfor %}
51 51
52 } // namespace protocol 52 } // namespace protocol
53 } // namespace blink 53 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698