| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 else | 562 else |
| 563 debugServerBreakpointIdsIterator->value.append(debugServerBreakpointId); | 563 debugServerBreakpointIdsIterator->value.append(debugServerBreakpointId); |
| 564 | 564 |
| 565 RefPtr<TypeBuilder::Debugger::Location> location = TypeBuilder::Debugger::Lo
cation::create() | 565 RefPtr<TypeBuilder::Debugger::Location> location = TypeBuilder::Debugger::Lo
cation::create() |
| 566 .setScriptId(scriptId) | 566 .setScriptId(scriptId) |
| 567 .setLineNumber(actualLineNumber); | 567 .setLineNumber(actualLineNumber); |
| 568 location->setColumnNumber(actualColumnNumber); | 568 location->setColumnNumber(actualColumnNumber); |
| 569 return location; | 569 return location; |
| 570 } | 570 } |
| 571 | 571 |
| 572 void InspectorDebuggerAgent::searchInContent(ErrorString* error, const String& s
criptId, const String& query, const bool* const optionalCaseSensitive, const boo
l* const optionalIsRegex, RefPtr<Array<blink::TypeBuilder::Debugger::SearchMatch
>>& results) | 572 void InspectorDebuggerAgent::searchInContent(ErrorString* error, const String& s
criptId, const String& query, const bool* const optionalCaseSensitive, const boo
l* const optionalIsRegex, RefPtr<Array<TypeBuilder::Debugger::SearchMatch>>& res
ults) |
| 573 { | 573 { |
| 574 ScriptsMap::iterator it = m_scripts.find(scriptId); | 574 ScriptsMap::iterator it = m_scripts.find(scriptId); |
| 575 if (it != m_scripts.end()) | 575 if (it != m_scripts.end()) |
| 576 results = ContentSearchUtils::searchInTextByLines(it->value.source(), qu
ery, asBool(optionalCaseSensitive), asBool(optionalIsRegex)); | 576 results = ContentSearchUtils::searchInTextByLines(it->value.source(), qu
ery, asBool(optionalCaseSensitive), asBool(optionalIsRegex)); |
| 577 else | 577 else |
| 578 *error = "No script for id: " + scriptId; | 578 *error = "No script for id: " + scriptId; |
| 579 } | 579 } |
| 580 | 580 |
| 581 void InspectorDebuggerAgent::setScriptSource(ErrorString* error, RefPtr<TypeBuil
der::Debugger::SetScriptSourceError>& errorData, const String& scriptId, const S
tring& newContent, const bool* const preview, RefPtr<Array<CallFrame> >& newCall
Frames, RefPtr<JSONObject>& result, RefPtr<StackTrace>& asyncStackTrace) | 581 void InspectorDebuggerAgent::setScriptSource(ErrorString* error, RefPtr<TypeBuil
der::Debugger::SetScriptSourceError>& errorData, const String& scriptId, const S
tring& newContent, const bool* const preview, RefPtr<Array<CallFrame> >& newCall
Frames, RefPtr<JSONObject>& result, RefPtr<StackTrace>& asyncStackTrace) |
| 582 { | 582 { |
| (...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 visitor->trace(m_v8AsyncCallTracker); | 1628 visitor->trace(m_v8AsyncCallTracker); |
| 1629 visitor->trace(m_promiseTracker); | 1629 visitor->trace(m_promiseTracker); |
| 1630 visitor->trace(m_asyncOperations); | 1630 visitor->trace(m_asyncOperations); |
| 1631 visitor->trace(m_currentAsyncCallChain); | 1631 visitor->trace(m_currentAsyncCallChain); |
| 1632 visitor->trace(m_asyncCallTrackingListeners); | 1632 visitor->trace(m_asyncCallTrackingListeners); |
| 1633 #endif | 1633 #endif |
| 1634 InspectorBaseAgent::trace(visitor); | 1634 InspectorBaseAgent::trace(visitor); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 } // namespace blink | 1637 } // namespace blink |
| OLD | NEW |