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

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

Issue 1767883002: DevTools: generate string16-based handlers for v8_inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 #ifndef {{class_name}}_h 7 #ifndef {{class_name}}_h
8 #define {{class_name}}_h 8 #define {{class_name}}_h
9 9
10 10
11 #include "platform/inspector_protocol/FrontendChannel.h" 11 #include "platform/inspector_protocol/FrontendChannel.h"
12 #include "platform/inspector_protocol/TypeBuilder.h" 12 #include "platform/inspector_protocol/TypeBuilder.h"
13 13
14 namespace blink { 14 namespace blink {
15 namespace protocol { 15 namespace protocol {
16 16
17 using ErrorString = String;
18
19 class PLATFORM_EXPORT Frontend { 17 class PLATFORM_EXPORT Frontend {
20 public: 18 public:
21 Frontend(FrontendChannel*); 19 Frontend(FrontendChannel*);
22 FrontendChannel* channel() { return m_frontendChannel; } 20 FrontendChannel* channel() { return m_frontendChannel; }
23 21
24 {% for domain in api.domains %} 22 {% for domain in api.domains %}
25 23
26 class PLATFORM_EXPORT {{domain.domain}} { 24 class PLATFORM_EXPORT {{domain.domain}} {
27 public: 25 public:
28 static {{domain.domain}}* from(Frontend* frontend) { return &(frontend-> m_{{domain.domain | lower}}) ;} 26 static {{domain.domain}}* from(Frontend* frontend) { return &(frontend-> m_{{domain.domain | lower}}) ;}
(...skipping 21 matching lines...) Expand all
50 FrontendChannel* m_frontendChannel; 48 FrontendChannel* m_frontendChannel;
51 {% for domain in api.domains %} 49 {% for domain in api.domains %}
52 {{domain.domain}} m_{{domain.domain | lower}}; 50 {{domain.domain}} m_{{domain.domain | lower}};
53 {% endfor %} 51 {% endfor %}
54 }; 52 };
55 53
56 } // namespace protocol 54 } // namespace protocol
57 } // namespace blink 55 } // namespace blink
58 56
59 #endif // !defined({{class_name}}_h) 57 #endif // !defined({{class_name}}_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698