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

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

Issue 2238423002: [DevTools] Generate all files in inspector_protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2240663003
Patch Set: Created 4 years, 4 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 "{{output_package}}/{{domain.domain}}.h" 7 #include "{{output_package}}/{{domain.domain}}.h"
8 8
9 #include "platform/inspector_protocol/DispatcherBase.h"
10 #include "platform/inspector_protocol/Parser.h"
11
12 namespace blink { 9 namespace blink {
13 namespace protocol { 10 namespace protocol {
14 namespace {{domain.domain}} { 11 namespace {{domain.domain}} {
15 12
16 // ------------- Enum values from types. 13 // ------------- Enum values from types.
17 14
18 const char Metainfo::domainName[] = "{{domain.domain}}"; 15 const char Metainfo::domainName[] = "{{domain.domain}}";
19 const char Metainfo::commandPrefix[] = "{{domain.domain}}."; 16 const char Metainfo::commandPrefix[] = "{{domain.domain}}.";
20 {% for type in domain.types %} 17 {% for type in domain.types %}
21 {% if "enum" in type %} 18 {% if "enum" in type %}
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 339
343 // static 340 // static
344 void Dispatcher::wire(UberDispatcher* dispatcher, Backend* backend) 341 void Dispatcher::wire(UberDispatcher* dispatcher, Backend* backend)
345 { 342 {
346 dispatcher->registerBackend("{{domain.domain}}", wrapUnique(new DispatcherIm pl(dispatcher->channel(), backend))); 343 dispatcher->registerBackend("{{domain.domain}}", wrapUnique(new DispatcherIm pl(dispatcher->channel(), backend)));
347 } 344 }
348 345
349 } // {{domain.domain}} 346 } // {{domain.domain}}
350 } // namespace protocol 347 } // namespace protocol
351 } // namespace blink 348 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698