| OLD | NEW |
| 1 # Copyright (c) 2013 Google Inc. All rights reserved. | 1 # Copyright (c) 2013 Google Inc. All rights reserved. |
| 2 # | 2 # |
| 3 # Redistribution and use in source and binary forms, with or without | 3 # Redistribution and use in source and binary forms, with or without |
| 4 # modification, are permitted provided that the following conditions are | 4 # modification, are permitted provided that the following conditions are |
| 5 # met: | 5 # met: |
| 6 # | 6 # |
| 7 # * Redistributions of source code must retain the above copyright | 7 # * Redistributions of source code must retain the above copyright |
| 8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
| 9 # * Redistributions in binary form must reproduce the above | 9 # * Redistributions in binary form must reproduce the above |
| 10 # copyright notice, this list of conditions and the following disclaimer | 10 # copyright notice, this list of conditions and the following disclaimer |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 } | 89 } |
| 90 sendIfActive(nullptr, error, errorDataValue.release()); | 90 sendIfActive(nullptr, error, errorDataValue.release()); |
| 91 } | 91 } |
| 92 """) | 92 """) |
| 93 | 93 |
| 94 | 94 |
| 95 frontend_h = ( | 95 frontend_h = ( |
| 96 """#ifndef InspectorFrontend_h | 96 """#ifndef InspectorFrontend_h |
| 97 #define InspectorFrontend_h | 97 #define InspectorFrontend_h |
| 98 | 98 |
| 99 #include "InspectorTypeBuilder.h" | 99 #include "gen/v8_inspector/InspectorTypeBuilder.h" |
| 100 #include "core/inspector/InspectorFrontendChannel.h" | 100 #include "sky/engine/platform/JSONValues.h" |
| 101 #include "platform/JSONValues.h" | 101 #include "sky/engine/wtf/PassRefPtr.h" |
| 102 #include "wtf/PassRefPtr.h" | 102 #include "sky/engine/wtf/text/WTFString.h" |
| 103 #include "wtf/text/WTFString.h" | 103 #include "sky/engine/v8_inspector/InspectorFrontendChannel.h" |
| 104 | 104 |
| 105 namespace blink { | 105 namespace blink { |
| 106 | 106 |
| 107 typedef String ErrorString; | 107 typedef String ErrorString; |
| 108 | 108 |
| 109 class InspectorFrontend { | 109 class InspectorFrontend { |
| 110 public: | 110 public: |
| 111 InspectorFrontend(InspectorFrontendChannel*); | 111 InspectorFrontend(InspectorFrontendChannel*); |
| 112 InspectorFrontendChannel* channel() { return m_inspectorFrontendChannel; } | 112 InspectorFrontendChannel* channel() { return m_inspectorFrontendChannel; } |
| 113 | 113 |
| 114 $domainClassList | 114 $domainClassList |
| 115 private: | 115 private: |
| 116 InspectorFrontendChannel* m_inspectorFrontendChannel; | 116 InspectorFrontendChannel* m_inspectorFrontendChannel; |
| 117 ${fieldDeclarations}}; | 117 ${fieldDeclarations}}; |
| 118 | 118 |
| 119 } // namespace blink | 119 } // namespace blink |
| 120 #endif // !defined(InspectorFrontend_h) | 120 #endif // !defined(InspectorFrontend_h) |
| 121 """) | 121 """) |
| 122 | 122 |
| 123 backend_h = ( | 123 backend_h = ( |
| 124 """#ifndef InspectorBackendDispatcher_h | 124 """#ifndef InspectorBackendDispatcher_h |
| 125 #define InspectorBackendDispatcher_h | 125 #define InspectorBackendDispatcher_h |
| 126 | 126 |
| 127 #include "InspectorTypeBuilder.h" | 127 #include "gen/v8_inspector/InspectorTypeBuilder.h" |
| 128 | 128 |
| 129 #include "platform/heap/Handle.h" | 129 #include "sky/engine/wtf/PassRefPtr.h" |
| 130 #include "wtf/PassRefPtr.h" | 130 #include "sky/engine/wtf/RefCounted.h" |
| 131 #include "wtf/RefCounted.h" | 131 #include "sky/engine/wtf/text/WTFString.h" |
| 132 #include "wtf/text/WTFString.h" | |
| 133 | 132 |
| 134 namespace blink { | 133 namespace blink { |
| 135 | 134 |
| 136 class JSONObject; | 135 class JSONObject; |
| 137 class JSONArray; | 136 class JSONArray; |
| 138 class InspectorFrontendChannel; | 137 class InspectorFrontendChannel; |
| 139 | 138 |
| 140 typedef String ErrorString; | 139 typedef String ErrorString; |
| 141 | 140 |
| 142 class InspectorBackendDispatcherImpl; | 141 class InspectorBackendDispatcherImpl; |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 | 200 |
| 202 } // namespace blink | 201 } // namespace blink |
| 203 #endif // !defined(InspectorBackendDispatcher_h) | 202 #endif // !defined(InspectorBackendDispatcher_h) |
| 204 | 203 |
| 205 | 204 |
| 206 """) | 205 """) |
| 207 | 206 |
| 208 backend_cpp = ( | 207 backend_cpp = ( |
| 209 """ | 208 """ |
| 210 | 209 |
| 211 #include "config.h" | 210 #include "sky/engine/config.h" |
| 212 #include "InspectorBackendDispatcher.h" | 211 #include "gen/v8_inspector/InspectorBackendDispatcher.h" |
| 213 | 212 |
| 214 #include "core/inspector/InspectorFrontendChannel.h" | 213 #include "sky/engine/v8_inspector/InspectorFrontendChannel.h" |
| 215 #include "core/inspector/JSONParser.h" | 214 #include "sky/engine/v8_inspector/JSONParser.h" |
| 216 #include "platform/JSONValues.h" | 215 #include "sky/engine/platform/JSONValues.h" |
| 217 #include "wtf/text/CString.h" | 216 #include "sky/engine/wtf/text/CString.h" |
| 218 #include "wtf/text/WTFString.h" | 217 #include "sky/engine/wtf/text/WTFString.h" |
| 219 | 218 |
| 220 namespace blink { | 219 namespace blink { |
| 221 | 220 |
| 222 const char InspectorBackendDispatcher::commandNames[] = { | 221 const char InspectorBackendDispatcher::commandNames[] = { |
| 223 $methodNameDeclarations | 222 $methodNameDeclarations |
| 224 }; | 223 }; |
| 225 | 224 |
| 226 const size_t InspectorBackendDispatcher::commandNamesIndex[] = { | 225 const size_t InspectorBackendDispatcher::commandNamesIndex[] = { |
| 227 $methodNameDeclarationsIndex | 226 $methodNameDeclarationsIndex |
| 228 }; | 227 }; |
| (...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 509 m_alreadySent = true; | 508 m_alreadySent = true; |
| 510 } | 509 } |
| 511 | 510 |
| 512 } // namespace blink | 511 } // namespace blink |
| 513 | 512 |
| 514 """) | 513 """) |
| 515 | 514 |
| 516 frontend_cpp = ( | 515 frontend_cpp = ( |
| 517 """ | 516 """ |
| 518 | 517 |
| 519 #include "config.h" | 518 #include "sky/engine/config.h" |
| 520 #include "InspectorFrontend.h" | 519 #include "gen/v8_inspector/InspectorFrontend.h" |
| 521 | 520 |
| 522 #include "core/inspector/InspectorFrontendChannel.h" | 521 #include "sky/engine/v8_inspector/InspectorFrontendChannel.h" |
| 523 #include "platform/JSONValues.h" | 522 #include "sky/engine/platform/JSONValues.h" |
| 524 #include "wtf/text/CString.h" | 523 #include "sky/engine/wtf/text/CString.h" |
| 525 #include "wtf/text/WTFString.h" | 524 #include "sky/engine/wtf/text/WTFString.h" |
| 526 | 525 |
| 527 namespace blink { | 526 namespace blink { |
| 528 | 527 |
| 529 InspectorFrontend::InspectorFrontend(InspectorFrontendChannel* inspectorFrontend
Channel) | 528 InspectorFrontend::InspectorFrontend(InspectorFrontendChannel* inspectorFrontend
Channel) |
| 530 : m_inspectorFrontendChannel(inspectorFrontendChannel) | 529 : m_inspectorFrontendChannel(inspectorFrontendChannel) |
| 531 , $constructorInit | 530 , $constructorInit |
| 532 { | 531 { |
| 533 } | 532 } |
| 534 | 533 |
| 535 $methods | 534 $methods |
| 536 | 535 |
| 537 } // namespace blink | 536 } // namespace blink |
| 538 | 537 |
| 539 """) | 538 """) |
| 540 | 539 |
| 541 typebuilder_h = ( | 540 typebuilder_h = ( |
| 542 """ | 541 """ |
| 543 #ifndef InspectorTypeBuilder_h | 542 #ifndef InspectorTypeBuilder_h |
| 544 #define InspectorTypeBuilder_h | 543 #define InspectorTypeBuilder_h |
| 545 | 544 |
| 546 #include "platform/JSONValues.h" | 545 #include "sky/engine/platform/JSONValues.h" |
| 547 #include "wtf/Assertions.h" | 546 #include "sky/engine/wtf/Assertions.h" |
| 548 #include "wtf/PassRefPtr.h" | 547 #include "sky/engine/wtf/PassRefPtr.h" |
| 549 | 548 |
| 550 namespace blink { | 549 namespace blink { |
| 551 | 550 |
| 552 namespace TypeBuilder { | 551 namespace TypeBuilder { |
| 553 | 552 |
| 554 template<typename T> | 553 template<typename T> |
| 555 class OptOutput { | 554 class OptOutput { |
| 556 public: | 555 public: |
| 557 OptOutput() : m_assigned(false) { } | 556 OptOutput() : m_assigned(false) { } |
| 558 | 557 |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 844 | 843 |
| 845 } // namespace blink | 844 } // namespace blink |
| 846 | 845 |
| 847 #endif // !defined(InspectorTypeBuilder_h) | 846 #endif // !defined(InspectorTypeBuilder_h) |
| 848 | 847 |
| 849 """) | 848 """) |
| 850 | 849 |
| 851 typebuilder_cpp = ( | 850 typebuilder_cpp = ( |
| 852 """ | 851 """ |
| 853 | 852 |
| 854 #include "config.h" | 853 #include "sky/engine/config.h" |
| 855 | 854 |
| 856 #include "InspectorTypeBuilder.h" | 855 #include "gen/v8_inspector/InspectorTypeBuilder.h" |
| 857 #include "wtf/text/CString.h" | 856 #include "sky/engine/wtf/text/CString.h" |
| 858 | 857 |
| 859 namespace blink { | 858 namespace blink { |
| 860 | 859 |
| 861 namespace TypeBuilder { | 860 namespace TypeBuilder { |
| 862 | 861 |
| 863 const char* const enum_constant_values[] = { | 862 const char* const enum_constant_values[] = { |
| 864 $enumConstantValues}; | 863 $enumConstantValues}; |
| 865 | 864 |
| 866 String getEnumConstantValue(int code) { | 865 String getEnumConstantValue(int code) { |
| 867 return enum_constant_values[code]; | 866 return enum_constant_values[code]; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 }; | 946 }; |
| 948 | 947 |
| 949 """) | 948 """) |
| 950 | 949 |
| 951 class_binding_builder_part_4 = ( | 950 class_binding_builder_part_4 = ( |
| 952 """ static Builder<NoFieldsSet> create() | 951 """ static Builder<NoFieldsSet> create() |
| 953 { | 952 { |
| 954 return Builder<NoFieldsSet>(JSONObject::create()); | 953 return Builder<NoFieldsSet>(JSONObject::create()); |
| 955 } | 954 } |
| 956 """) | 955 """) |
| OLD | NEW |