Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorInspectorAgent.cpp

Issue 1738073002: DevTools: introduce protocol::Value, baseline for hierarchical data in remote debugging protocol. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698