OLD | NEW |
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 Loading... |
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 |
OLD | NEW |