| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "core/inspector/ThreadDebugger.h" | 5 #include "core/inspector/ThreadDebugger.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/SourceLocation.h" | 7 #include "bindings/core/v8/SourceLocation.h" |
| 8 #include "bindings/core/v8/V8Binding.h" | 8 #include "bindings/core/v8/V8Binding.h" |
| 9 #include "bindings/core/v8/V8DOMException.h" | 9 #include "bindings/core/v8/V8DOMException.h" |
| 10 #include "bindings/core/v8/V8DOMTokenList.h" | 10 #include "bindings/core/v8/V8DOMTokenList.h" |
| (...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 listeners); | 407 listeners); |
| 408 } | 408 } |
| 409 | 409 |
| 410 v8::Local<v8::Object> listenerObject = v8::Object::New(isolate); | 410 v8::Local<v8::Object> listenerObject = v8::Object::New(isolate); |
| 411 createDataProperty(context, listenerObject, v8String(isolate, "listener"), | 411 createDataProperty(context, listenerObject, v8String(isolate, "listener"), |
| 412 info.handler); | 412 info.handler); |
| 413 createDataProperty(context, listenerObject, v8String(isolate, "useCapture"), | 413 createDataProperty(context, listenerObject, v8String(isolate, "useCapture"), |
| 414 v8::Boolean::New(isolate, info.useCapture)); | 414 v8::Boolean::New(isolate, info.useCapture)); |
| 415 createDataProperty(context, listenerObject, v8String(isolate, "passive"), | 415 createDataProperty(context, listenerObject, v8String(isolate, "passive"), |
| 416 v8::Boolean::New(isolate, info.passive)); | 416 v8::Boolean::New(isolate, info.passive)); |
| 417 createDataProperty(context, listenerObject, v8String(isolate, "once"), |
| 418 v8::Boolean::New(isolate, info.once)); |
| 417 createDataProperty(context, listenerObject, v8String(isolate, "type"), | 419 createDataProperty(context, listenerObject, v8String(isolate, "type"), |
| 418 v8String(isolate, currentEventType)); | 420 v8String(isolate, currentEventType)); |
| 419 v8::Local<v8::Function> removeFunction; | 421 v8::Local<v8::Function> removeFunction; |
| 420 if (info.removeFunction.ToLocal(&removeFunction)) | 422 if (info.removeFunction.ToLocal(&removeFunction)) |
| 421 createDataProperty(context, listenerObject, v8String(isolate, "remove"), | 423 createDataProperty(context, listenerObject, v8String(isolate, "remove"), |
| 422 removeFunction); | 424 removeFunction); |
| 423 createDataPropertyInArray(context, listeners, outputIndex++, | 425 createDataPropertyInArray(context, listeners, outputIndex++, |
| 424 listenerObject); | 426 listenerObject); |
| 425 } | 427 } |
| 426 info.GetReturnValue().Set(result); | 428 info.GetReturnValue().Set(result); |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 void ThreadDebugger::onTimer(TimerBase* timer) { | 481 void ThreadDebugger::onTimer(TimerBase* timer) { |
| 480 for (size_t index = 0; index < m_timers.size(); ++index) { | 482 for (size_t index = 0; index < m_timers.size(); ++index) { |
| 481 if (m_timers[index].get() == timer) { | 483 if (m_timers[index].get() == timer) { |
| 482 m_timerCallbacks[index](m_timerData[index]); | 484 m_timerCallbacks[index](m_timerData[index]); |
| 483 return; | 485 return; |
| 484 } | 486 } |
| 485 } | 487 } |
| 486 } | 488 } |
| 487 | 489 |
| 488 } // namespace blink | 490 } // namespace blink |
| OLD | NEW |