OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 muteConsole(); | 112 muteConsole(); |
113 | 113 |
114 injectedScript.callFunctionOn(errorString, objectId, expression, arguments,
asBool(returnByValue), asBool(generatePreview), &result, wasThrown); | 114 injectedScript.callFunctionOn(errorString, objectId, expression, arguments,
asBool(returnByValue), asBool(generatePreview), &result, wasThrown); |
115 | 115 |
116 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) { | 116 if (asBool(doNotPauseOnExceptionsAndMuteConsole)) { |
117 unmuteConsole(); | 117 unmuteConsole(); |
118 setPauseOnExceptionsState(m_scriptDebugServer, previousPauseOnExceptions
State); | 118 setPauseOnExceptionsState(m_scriptDebugServer, previousPauseOnExceptions
State); |
119 } | 119 } |
120 } | 120 } |
121 | 121 |
122 void InspectorRuntimeAgent::getProperties(ErrorString* errorString, const String
& objectId, const bool* ownProperties, const bool* accessorPropertiesOnly, RefPt
r<TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescriptor> >& result, RefPtr
<TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor> >& interna
lProperties) | 122 void InspectorRuntimeAgent::getProperties(ErrorString* errorString, const String
& objectId, const bool* ownProperties, const bool* accessorPropertiesOnly, RefPt
r<TypeBuilder::Array<TypeBuilder::Runtime::PropertyDescriptor>>& result, RefPtr<
TypeBuilder::Array<TypeBuilder::Runtime::InternalPropertyDescriptor>>& internalP
roperties) |
123 { | 123 { |
124 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForOb
jectId(objectId); | 124 InjectedScript injectedScript = m_injectedScriptManager->injectedScriptForOb
jectId(objectId); |
125 if (injectedScript.isEmpty()) { | 125 if (injectedScript.isEmpty()) { |
126 *errorString = "Inspected frame has gone"; | 126 *errorString = "Inspected frame has gone"; |
127 return; | 127 return; |
128 } | 128 } |
129 | 129 |
130 ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = s
etPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExce
ptions); | 130 ScriptDebugServer::PauseOnExceptionsState previousPauseOnExceptionsState = s
etPauseOnExceptionsState(m_scriptDebugServer, ScriptDebugServer::DontPauseOnExce
ptions); |
131 muteConsole(); | 131 muteConsole(); |
132 | 132 |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 .setId(executionContextId) | 227 .setId(executionContextId) |
228 .setIsPageContext(isPageContext) | 228 .setIsPageContext(isPageContext) |
229 .setName(humanReadableName) | 229 .setName(humanReadableName) |
230 .setOrigin(origin) | 230 .setOrigin(origin) |
231 .setFrameId(frameId) | 231 .setFrameId(frameId) |
232 .release()); | 232 .release()); |
233 } | 233 } |
234 | 234 |
235 } // namespace blink | 235 } // namespace blink |
236 | 236 |
OLD | NEW |