| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 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) 2011 Google Inc. All rights reserved. | 4 * Copyright (C) 2011 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void InspectorInspectorAgent::evaluateForTestInFrontend(long callId, const Strin
g& script) | 79 void InspectorInspectorAgent::evaluateForTestInFrontend(long callId, const Strin
g& script) |
| 80 { | 80 { |
| 81 if (m_state->booleanProperty(InspectorAgentState::inspectorAgentEnabled, fal
se)) { | 81 if (m_state->booleanProperty(InspectorAgentState::inspectorAgentEnabled, fal
se)) { |
| 82 frontend()->evaluateForTestInFrontend(static_cast<int>(callId), script); | 82 frontend()->evaluateForTestInFrontend(static_cast<int>(callId), script); |
| 83 frontend()->flush(); | 83 frontend()->flush(); |
| 84 } else { | 84 } else { |
| 85 m_pendingEvaluateTestCommands.append(std::pair<long, String>(callId, scr
ipt)); | 85 m_pendingEvaluateTestCommands.append(std::pair<long, String>(callId, scr
ipt)); |
| 86 } | 86 } |
| 87 } | 87 } |
| 88 | 88 |
| 89 void InspectorInspectorAgent::inspect(PassOwnPtr<protocol::Runtime::RemoteObject
> objectToInspect, PassRefPtr<JSONObject> hints) | 89 void InspectorInspectorAgent::inspect(PassOwnPtr<protocol::Runtime::RemoteObject
> objectToInspect, PassRefPtr<protocol::DictionaryValue> hints) |
| 90 { | 90 { |
| 91 if (frontend() && m_state->booleanProperty(InspectorAgentState::inspectorAge
ntEnabled, false)) | 91 if (frontend() && m_state->booleanProperty(InspectorAgentState::inspectorAge
ntEnabled, false)) |
| 92 frontend()->inspect(objectToInspect, hints); | 92 frontend()->inspect(objectToInspect, hints); |
| 93 } | 93 } |
| 94 | 94 |
| 95 } // namespace blink | 95 } // namespace blink |
| OLD | NEW |