Changeset 63965 in webkit
- Timestamp:
- Jul 23, 2010 5:46:19 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r63964 r63965 1 2010-07-23 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Yury Semikhatsky. 4 5 Chromium DevTools: migrate from utility context-based injected 6 script dispatch to upstream schema. 7 8 https://bugs.webkit.org/show_bug.cgi?id=42883 9 10 * bindings/v8/ScriptProfile.cpp: 11 (WebCore::ScriptProfile::title): 12 * inspector/InspectorController.cpp: 13 (WebCore::InspectorController::getProfile): 14 * inspector/front-end/InjectedScriptAccess.js: 15 1 16 2010-07-23 Pavel Feldman <pfeldman@chromium.org> 2 17 -
trunk/WebCore/bindings/v8/ScriptProfile.cpp
r63964 r63965 41 41 String ScriptProfile::title() const 42 42 { 43 v8::HandleScope scope; 43 44 return toWebCoreString(m_profile->GetTitle()); 44 45 } -
trunk/WebCore/inspector/InspectorController.cpp
r63964 r63965 114 114 #include "JSScriptProfile.h" 115 115 #else 116 #include "ScriptScope.h" 116 117 #include "V8ScriptProfile.h" 117 118 #endif … … 1561 1562 return; 1562 1563 ProfilesMap::iterator it = m_profiles.find(uid); 1563 if (it != m_profiles.end()) 1564 if (it != m_profiles.end()) { 1564 1565 #if USE(JSC) 1565 1566 m_frontend->didGetProfile(callId, toJS(m_frontend->scriptState(), it->second.get())); 1566 1567 #else 1568 ScriptScope scope(m_frontend->scriptState()); 1567 1569 m_frontend->didGetProfile(callId, toV8(it->second.get())); 1568 1570 #endif 1571 } 1569 1572 } 1570 1573 -
trunk/WebCore/inspector/front-end/InjectedScriptAccess.js
r63964 r63965 36 36 InjectedScriptAccess.get = function(injectedScriptId) 37 37 { 38 return new InjectedScriptAccess(injectedScriptId); 38 if (typeof injectedScriptId === "number") 39 return new InjectedScriptAccess(injectedScriptId); 40 41 console.error("Access to injected script with no id"); 42 console.trace(); 39 43 } 40 44 -
trunk/WebKit/chromium/ChangeLog
r63964 r63965 1 2010-07-23 Pavel Feldman <pfeldman@chromium.org> 2 3 Reviewed by Reviewed by Yury Semikhatsky. 4 5 Chromium DevTools: migrate from utility context-based injected 6 script dispatch to upstream schema. 7 8 https://bugs.webkit.org/show_bug.cgi?id=42883 9 10 * src/ToolsAgent.h: 11 * src/WebDevToolsAgentImpl.cpp: 12 * src/WebDevToolsAgentImpl.h: 13 * src/js/DevToolsHostStub.js: 14 * src/js/InspectorControllerImpl.js: 15 (devtools.InspectorBackendImpl): 16 1 17 2010-07-23 Pavel Feldman <pfeldman@chromium.org> 2 18 -
trunk/WebKit/chromium/src/ToolsAgent.h
r63964 r63965 42 42 METHOD2(dispatchOnInspectorController, int /* call_id */, \ 43 43 String /* message */) \ 44 \45 /* Dispatches given function on the InjectedScript object */ \46 METHOD5(dispatchOnInjectedScript, int /* call_id */, \47 int /* injected_script_id */, String /* function_name */, \48 String /* json_args */, bool /* async */)49 44 50 45 DEFINE_RPC_CLASS(ToolsAgent, TOOLS_AGENT_STRUCT) -
trunk/WebKit/chromium/src/WebDevToolsAgentImpl.cpp
r63964 r63965 317 317 } 318 318 319 void WebDevToolsAgentImpl::dispatchOnInjectedScript(int callId, int injectedScriptId, const String& functionName, const String& jsonArgs, bool async)320 {321 inspectorController()->inspectorBackend()->dispatchOnInjectedScript(322 callId,323 injectedScriptId,324 functionName,325 jsonArgs,326 async);327 }328 329 319 void WebDevToolsAgentImpl::dispatchMessageFromFrontend(const WebDevToolsMessageData& data) 330 320 { -
trunk/WebKit/chromium/src/WebDevToolsAgentImpl.h
r63964 r63965 74 74 // ToolsAgent implementation. 75 75 virtual void dispatchOnInspectorController(int callId, const WebCore::String& message); 76 virtual void dispatchOnInjectedScript(int callId, int injectedScriptId, const WebCore::String& functionName, const WebCore::String& jsonArgs, bool async);77 76 78 77 // WebDevToolsAgentPrivate implementation. -
trunk/WebKit/chromium/src/js/DevToolsHostStub.js
r63964 r63965 38 38 window["RemoteProfilerAgent"] = {}; 39 39 window["RemoteToolsAgent"] = { 40 dispatchOnInjectedScript: function() {},41 40 dispatchOnInspectorController: function() {} 42 41 }; -
trunk/WebKit/chromium/src/js/InspectorControllerImpl.js
r63964 r63965 50 50 this.installInspectorControllerDelegate_("disableSearchingForNode"); 51 51 this.installInspectorControllerDelegate_("disableTimeline"); 52 this.installInspectorControllerDelegate_("dispatchOnInjectedScript"); 52 53 this.installInspectorControllerDelegate_("enableMonitoringXHR"); 53 54 this.installInspectorControllerDelegate_("enableResourceTracking"); … … 127 128 128 129 /** 129 * @override130 */131 devtools.InspectorBackendImpl.prototype.dispatchOnInjectedScript = function(callId, injectedScriptId, methodName, argsString, async)132 {133 // Encode injectedScriptId into callId134 if (typeof injectedScriptId !== "number")135 injectedScriptId = 0;136 RemoteToolsAgent.dispatchOnInjectedScript(callId, injectedScriptId, methodName, argsString, async);137 };138 139 140 /**141 130 * Installs delegating handler into the inspector controller. 142 131 * @param {string} methodName Method to install delegating handler for.
Note: See TracChangeset
for help on using the changeset viewer.