Changeset 145712 in webkit
- Timestamp:
- Mar 13, 2013 6:38:33 AM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r145710 r145712 1 2013-03-13 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: convert workers inspection into capability 4 https://bugs.webkit.org/show_bug.cgi?id=112251 5 6 Reviewed by Vsevolod Vlasov. 7 8 It should be up to backend 9 10 * inspector/Inspector.json: 11 * inspector/InspectorFrontendClient.h: 12 (InspectorFrontendClient): 13 * inspector/InspectorFrontendClientLocal.h: 14 * inspector/InspectorFrontendHost.cpp: 15 * inspector/InspectorFrontendHost.h: 16 (InspectorFrontendHost): 17 * inspector/InspectorFrontendHost.idl: 18 * inspector/InspectorWorkerAgent.cpp: 19 (WebCore::InspectorWorkerAgent::canInspectWorkers): 20 (WebCore): 21 * inspector/InspectorWorkerAgent.h: 22 (InspectorWorkerAgent): 23 * inspector/front-end/InspectorFrontendHostStub.js: 24 * inspector/front-end/Settings.js: 25 * inspector/front-end/externs.js: 26 * inspector/front-end/inspector.js: 27 (WebInspector.doLoadedDone): 28 1 29 2013-03-13 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 30 -
trunk/Source/WebCore/inspector/Inspector.json
r145191 r145712 3376 3376 { "name": "workerId", "type": "integer" }, 3377 3377 { "name": "message", "type": "object" } 3378 ] 3379 }, 3380 { 3381 "name": "canInspectWorkers", 3382 "description": "Tells whether browser supports workers inspection.", 3383 "returns": [ 3384 { "name": "result", "type": "boolean", "description": "True if browser has workers support." } 3378 3385 ] 3379 3386 }, -
trunk/Source/WebCore/inspector/InspectorFrontendClient.h
r140539 r145712 67 67 virtual void save(const WTF::String& url, const WTF::String& content, bool forceSaveAs) = 0; 68 68 virtual void append(const WTF::String& url, const WTF::String& content) = 0; 69 virtual bool canInspectWorkers() = 0;70 69 71 70 virtual void inspectedURLChanged(const String&) = 0; -
trunk/Source/WebCore/inspector/InspectorFrontendClientLocal.h
r140539 r145712 70 70 virtual void save(const String&, const String&, bool) { } 71 71 virtual void append(const String&, const String&) { } 72 virtual bool canInspectWorkers() { return false; }73 72 74 73 virtual void attachWindow() = 0; -
trunk/Source/WebCore/inspector/InspectorFrontendHost.cpp
r145453 r145712 251 251 } 252 252 253 bool InspectorFrontendHost::canInspectWorkers()254 {255 #if ENABLE(WORKERS)256 if (m_client)257 return m_client->canInspectWorkers();258 return false;259 #else260 return false;261 #endif262 }263 264 253 void InspectorFrontendHost::sendMessageToBackend(const String& message) 265 254 { -
trunk/Source/WebCore/inspector/InspectorFrontendHost.h
r140539 r145712 79 79 void close(const String& url); 80 80 81 bool canInspectWorkers();82 83 81 // Called from [Custom] implementations. 84 82 void showContextMenu(Event*, const Vector<ContextMenuItem>& items); -
trunk/Source/WebCore/inspector/InspectorFrontendHost.idl
r142935 r145712 56 56 void close(in DOMString url); 57 57 58 boolean canInspectWorkers();59 60 58 [Custom] DOMString platform(); 61 59 [Custom] DOMString port(); … … 66 64 [Custom] void recordPanelShown(in unsigned long panelCode); 67 65 [Custom] void recordSettingChanged(in unsigned long settingChanged); 68 66 69 67 DOMString loadResourceSynchronously(in DOMString url); 70 68 -
trunk/Source/WebCore/inspector/InspectorWorkerAgent.cpp
r138457 r145712 159 159 } 160 160 161 void InspectorWorkerAgent::canInspectWorkers(ErrorString*, bool* result) 162 { 163 #if ENABLE(WORKERS) 164 *result = true; 165 #else 166 *result = false; 167 #endif 168 } 169 161 170 void InspectorWorkerAgent::connectToWorker(ErrorString* error, int workerId) 162 171 { -
trunk/Source/WebCore/inspector/InspectorWorkerAgent.h
r138457 r145712 65 65 virtual void enable(ErrorString*); 66 66 virtual void disable(ErrorString*); 67 virtual void canInspectWorkers(ErrorString*, bool*); 67 68 virtual void connectToWorker(ErrorString*, int workerId); 68 69 virtual void disconnectFromWorker(ErrorString*, int workerId); -
trunk/Source/WebCore/inspector/front-end/InspectorFrontendHostStub.js
r140539 r145712 222 222 }, 223 223 224 canInspectWorkers: function()225 {226 return true;227 },228 229 224 isUnderTest: function() 230 225 { -
trunk/Source/WebCore/inspector/front-end/ScriptsPanel.js
r145548 r145712 116 116 this.sidebarPanes.eventListenerBreakpoints = new WebInspector.EventListenerBreakpointsSidebarPane(); 117 117 118 if ( InspectorFrontendHost.canInspectWorkers()&& !WebInspector.WorkerManager.isWorkerFrontend()) {118 if (Capabilities.canInspectWorkers && !WebInspector.WorkerManager.isWorkerFrontend()) { 119 119 WorkerAgent.enable(); 120 120 this.sidebarPanes.workerList = new WebInspector.WorkersSidebarPane(WebInspector.workerManager); … … 1314 1314 group2.addPane(this.sidebarPanes.xhrBreakpoints); 1315 1315 group2.addPane(this.sidebarPanes.eventListenerBreakpoints); 1316 group2.addPane(this.sidebarPanes.workerList); 1316 1317 1317 1318 this.sidebarPaneView.firstElement().appendChild(this.debugToolbar); -
trunk/Source/WebCore/inspector/front-end/Settings.js
r145220 r145712 63 63 canShowDebugBorders: false, 64 64 canShowFPSCounter: false, 65 canContinuouslyPaint: false 65 canContinuouslyPaint: false, 66 canInspectWorkers: false 66 67 } 67 68 -
trunk/Source/WebCore/inspector/front-end/externs.js
r145076 r145712 193 193 InspectorFrontendHostAPI.prototype.isolatedFileSystem = function(fileSystemId, registeredName) {} 194 194 InspectorFrontendHostAPI.prototype.setZoomFactor = function(zoom) {} 195 InspectorFrontendHostAPI.prototype.canInspectWorkers = function() {}196 195 /** @type {InspectorFrontendHostAPI} */ 197 196 var InspectorFrontendHost; -
trunk/Source/WebCore/inspector/front-end/inspector.js
r145077 r145712 409 409 PageAgent.canOverrideDeviceMetrics(WebInspector._initializeCapability.bind(WebInspector, "canOverrideDeviceMetrics", null)); 410 410 PageAgent.canOverrideGeolocation(WebInspector._initializeCapability.bind(WebInspector, "canOverrideGeolocation", null)); 411 WorkerAgent.canInspectWorkers(WebInspector._initializeCapability.bind(WebInspector, "canInspectWorkers", null)); 411 412 PageAgent.canOverrideDeviceOrientation(WebInspector._initializeCapability.bind(WebInspector, "canOverrideDeviceOrientation", WebInspector._doLoadedDoneWithCapabilities.bind(WebInspector))); 412 413 } -
trunk/Source/WebKit/chromium/ChangeLog
r145675 r145712 1 2013-03-13 Pavel Feldman <pfeldman@chromium.org> 2 3 Web Inspector: convert workers inspection into capability 4 https://bugs.webkit.org/show_bug.cgi?id=112251 5 6 Reviewed by Vsevolod Vlasov. 7 8 * src/InspectorFrontendClientImpl.cpp: 9 * src/InspectorFrontendClientImpl.h: 10 (InspectorFrontendClientImpl): 11 1 12 2013-03-12 Sheriff Bot <webkit.review.bot@gmail.com> 2 13 -
trunk/Source/WebKit/chromium/src/InspectorFrontendClientImpl.cpp
r140543 r145712 140 140 } 141 141 142 bool InspectorFrontendClientImpl::canInspectWorkers()143 {144 return true;145 }146 147 142 void InspectorFrontendClientImpl::inspectedURLChanged(const String& url) 148 143 { -
trunk/Source/WebKit/chromium/src/InspectorFrontendClientImpl.h
r140539 r145712 71 71 virtual void save(const WTF::String& urk, const WTF::String& content, bool forceSaveAs); 72 72 virtual void append(const WTF::String& urk, const WTF::String& content); 73 virtual bool canInspectWorkers();74 73 75 74 virtual void inspectedURLChanged(const WTF::String&);
Note: See TracChangeset
for help on using the changeset viewer.