| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 , m_clearConsoleCallback(nullptr) | 50 , m_clearConsoleCallback(nullptr) |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 InjectedScriptHost::~InjectedScriptHost() | 54 InjectedScriptHost::~InjectedScriptHost() |
| 55 { | 55 { |
| 56 } | 56 } |
| 57 | 57 |
| 58 void InjectedScriptHost::setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::Clea
rConsoleCallback> callback) | 58 void InjectedScriptHost::setClearConsoleCallback(PassOwnPtr<V8RuntimeAgent::Clea
rConsoleCallback> callback) |
| 59 { | 59 { |
| 60 m_clearConsoleCallback = std::move(callback); | 60 m_clearConsoleCallback = callback; |
| 61 } | 61 } |
| 62 | 62 |
| 63 void InjectedScriptHost::setInspectObjectCallback(PassOwnPtr<V8RuntimeAgent::Ins
pectCallback> callback) | 63 void InjectedScriptHost::setInspectObjectCallback(PassOwnPtr<V8RuntimeAgent::Ins
pectCallback> callback) |
| 64 { | 64 { |
| 65 m_inspectCallback = std::move(callback); | 65 m_inspectCallback = callback; |
| 66 } | 66 } |
| 67 | 67 |
| 68 void InjectedScriptHost::disconnect() | 68 void InjectedScriptHost::disconnect() |
| 69 { | 69 { |
| 70 m_debugger = nullptr; | 70 m_debugger = nullptr; |
| 71 m_debuggerAgent = nullptr; | 71 m_debuggerAgent = nullptr; |
| 72 m_inspectCallback = nullptr; | 72 m_inspectCallback = nullptr; |
| 73 m_clearConsoleCallback = nullptr; | 73 m_clearConsoleCallback = nullptr; |
| 74 m_inspectedObjects.clear(); | 74 m_inspectedObjects.clear(); |
| 75 } | 75 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 m_debuggerAgent->setBreakpointAt(scriptId, lineNumber, columnNumber, V8D
ebuggerAgentImpl::MonitorCommandBreakpointSource, builder.toString()); | 133 m_debuggerAgent->setBreakpointAt(scriptId, lineNumber, columnNumber, V8D
ebuggerAgentImpl::MonitorCommandBreakpointSource, builder.toString()); |
| 134 } | 134 } |
| 135 | 135 |
| 136 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 136 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 137 { | 137 { |
| 138 if (m_debuggerAgent) | 138 if (m_debuggerAgent) |
| 139 m_debuggerAgent->removeBreakpointAt(scriptId, lineNumber, columnNumber,
V8DebuggerAgentImpl::MonitorCommandBreakpointSource); | 139 m_debuggerAgent->removeBreakpointAt(scriptId, lineNumber, columnNumber,
V8DebuggerAgentImpl::MonitorCommandBreakpointSource); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace blink | 142 } // namespace blink |
| OLD | NEW |