| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "platform/v8_inspector/V8InjectedScriptHost.h" | 5 #include "platform/v8_inspector/V8InjectedScriptHost.h" |
| 6 | 6 |
| 7 #include "platform/v8_inspector/InjectedScriptNative.h" | 7 #include "platform/v8_inspector/InjectedScriptNative.h" |
| 8 #include "platform/v8_inspector/StringUtil.h" |
| 8 #include "platform/v8_inspector/V8Compat.h" | 9 #include "platform/v8_inspector/V8Compat.h" |
| 9 #include "platform/v8_inspector/V8Debugger.h" | 10 #include "platform/v8_inspector/V8Debugger.h" |
| 10 #include "platform/v8_inspector/V8InspectorImpl.h" | 11 #include "platform/v8_inspector/V8InspectorImpl.h" |
| 11 #include "platform/v8_inspector/V8InternalValueType.h" | 12 #include "platform/v8_inspector/V8InternalValueType.h" |
| 12 #include "platform/v8_inspector/V8StringUtil.h" | |
| 13 #include "platform/v8_inspector/V8ValueCopier.h" | 13 #include "platform/v8_inspector/V8ValueCopier.h" |
| 14 #include "platform/v8_inspector/public/V8InspectorClient.h" | 14 #include "platform/v8_inspector/public/V8InspectorClient.h" |
| 15 | 15 |
| 16 namespace v8_inspector { | 16 namespace v8_inspector { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 void setFunctionProperty(v8::Local<v8::Context> context, v8::Local<v8::Object> o
bj, const char* name, v8::FunctionCallback callback, v8::Local<v8::External> ext
ernal) | 20 void setFunctionProperty(v8::Local<v8::Context> context, v8::Local<v8::Object> o
bj, const char* name, v8::FunctionCallback callback, v8::Local<v8::External> ext
ernal) |
| 21 { | 21 { |
| 22 v8::Local<v8::String> funcName = toV8StringInternalized(context->GetIsolate(
), name); | 22 v8::Local<v8::String> funcName = toV8StringInternalized(context->GetIsolate(
), name); |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 NOTREACHED(); | 178 NOTREACHED(); |
| 179 return; | 179 return; |
| 180 } | 180 } |
| 181 v8::Local<v8::Object> target = info[0].As<v8::Proxy>(); | 181 v8::Local<v8::Object> target = info[0].As<v8::Proxy>(); |
| 182 while (target->IsProxy()) | 182 while (target->IsProxy()) |
| 183 target = v8::Local<v8::Proxy>::Cast(target)->GetTarget(); | 183 target = v8::Local<v8::Proxy>::Cast(target)->GetTarget(); |
| 184 info.GetReturnValue().Set(target); | 184 info.GetReturnValue().Set(target); |
| 185 } | 185 } |
| 186 | 186 |
| 187 } // namespace v8_inspector | 187 } // namespace v8_inspector |
| OLD | NEW |