Changeset 80204 in webkit
- Timestamp:
- Mar 2, 2011 9:43:34 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r80193 r80204 1 2011-03-02 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: break down InspectorFrontend into domain-specific classes 6 https://bugs.webkit.org/show_bug.cgi?id=55584 7 8 * inspector/elements/elements-panel-search.html: 9 1 10 2011-03-02 Mihai Parparita <mihaip@chromium.org> 2 11 -
trunk/LayoutTests/inspector/elements/elements-panel-search.html
r78717 r80204 19 19 } 20 20 21 WebInspector. addNodesToSearchResult = function(nodeIds)21 WebInspector.panels.elements.addNodesToSearchResult = function(nodeIds) 22 22 { 23 23 for (var i = 0; i < nodeIds.length; ++i) { -
trunk/Source/WebCore/ChangeLog
r80203 r80204 1 2011-03-02 Yury Semikhatsky <yurys@chromium.org> 2 3 Reviewed by Pavel Feldman. 4 5 Web Inspector: break down InspectorFrontend into domain-specific classes 6 https://bugs.webkit.org/show_bug.cgi?id=55584 7 8 * inspector/CodeGeneratorInspector.pm: InspectorFrontend now contains nested classes for 9 all domains that have event notifications. 10 * inspector/ConsoleMessage.cpp: 11 (WebCore::ConsoleMessage::addToFrontend): 12 (WebCore::ConsoleMessage::updateRepeatCountInConsole): 13 * inspector/ConsoleMessage.h: 14 * inspector/InjectedScriptHost.cpp: 15 (WebCore::InjectedScriptHost::inspectImpl): 16 * inspector/Inspector.idl: 17 * inspector/InspectorAgent.cpp: 18 (WebCore::InspectorAgent::inspectedPageDestroyed): 19 (WebCore::InspectorAgent::restoreInspectorStateFromCookie): 20 (WebCore::InspectorAgent::setFrontend): 21 (WebCore::InspectorAgent::disconnectFrontend): 22 (WebCore::InspectorAgent::populateScriptObjects): 23 (WebCore::InspectorAgent::pushDataCollectedOffline): 24 (WebCore::InspectorAgent::didCommitLoad): 25 (WebCore::InspectorAgent::domContentLoadedEventFired): 26 (WebCore::InspectorAgent::loadEventFired): 27 (WebCore::InspectorAgent::postWorkerNotificationToFrontend): 28 (WebCore::InspectorAgent::evaluateForTestInFrontend): 29 (WebCore::InspectorAgent::showPanel): 30 * inspector/InspectorApplicationCacheAgent.cpp: 31 (WebCore::InspectorApplicationCacheAgent::InspectorApplicationCacheAgent): 32 * inspector/InspectorApplicationCacheAgent.h: 33 * inspector/InspectorConsoleAgent.cpp: 34 (WebCore::InspectorConsoleAgent::setFrontend): 35 * inspector/InspectorConsoleAgent.h: 36 * inspector/InspectorController.cpp: 37 (WebCore::InspectorController::show): 38 (WebCore::InspectorController::close): 39 * inspector/InspectorDOMAgent.cpp: 40 (WebCore::InspectorDOMAgent::setFrontend): 41 * inspector/InspectorDOMAgent.h: 42 * inspector/InspectorDOMStorageResource.cpp: 43 (WebCore::InspectorDOMStorageResource::bind): 44 * inspector/InspectorDOMStorageResource.h: 45 * inspector/InspectorDatabaseAgent.cpp: 46 (WebCore::InspectorDatabaseAgent::FrontendProvider::frontend): 47 (WebCore::InspectorDatabaseAgent::FrontendProvider::FrontendProvider): 48 (WebCore::InspectorDatabaseAgent::setFrontend): 49 * inspector/InspectorDatabaseResource.cpp: 50 (WebCore::InspectorDatabaseResource::bind): 51 * inspector/InspectorDatabaseResource.h: 52 * inspector/InspectorDebuggerAgent.cpp: 53 (WebCore::InspectorDebuggerAgent::setFrontend): 54 * inspector/InspectorDebuggerAgent.h: 55 * inspector/InspectorProfilerAgent.cpp: 56 * inspector/InspectorProfilerAgent.h: 57 (WebCore::InspectorProfilerAgent::setFrontend): 58 (WebCore::InspectorProfilerAgent::clearFrontend): 59 * inspector/InspectorResourceAgent.cpp: 60 (WebCore::InspectorResourceAgent::InspectorResourceAgent): 61 * inspector/InspectorResourceAgent.h: 62 * inspector/InspectorTimelineAgent.cpp: 63 (WebCore::InspectorTimelineAgent::setFrontend): 64 * inspector/InspectorTimelineAgent.h: 65 * inspector/front-end/DOMAgent.js: 66 (WebInspector.DOMDispatcher.prototype.inspectElementRequested): 67 (WebInspector.DOMDispatcher.prototype.addNodesToSearchResult): 68 * inspector/front-end/inspector.js: 69 1 70 2011-03-02 Kent Tamura <tkent@chromium.org> 2 71 -
trunk/Source/WebCore/inspector/CodeGeneratorInspector.pm
r79558 r80204 222 222 my %frontendTypes; 223 223 my @frontendMethods; 224 my @frontendAgentFields; 224 225 my @frontendMethodsImpl; 225 226 my %frontendMethodSignatures; … … 227 228 my @frontendConstantDeclarations; 228 229 my @frontendConstantDefinitions; 229 my $frontendFooter;230 my @frontendFooter; 230 231 231 232 my @documentationToc; … … 258 259 $namespace = $dataNode->module; 259 260 $namespace =~ s/core/WebCore/; 260 }261 262 # Params: 'idlDocument' struct263 sub GenerateInterface264 {265 my $object = shift;266 my $interface = shift;267 my $defines = shift;268 269 my $className = $interface->name;270 261 271 262 $frontendClassName = "InspectorFrontend"; 272 $frontendConstructor = " ${frontendClassName}(InspectorClient* inspectorClient) : m_inspectorClient(inspectorClient) { }"; 273 $frontendFooter = " private:\n InspectorClient* m_inspectorClient;"; 263 $frontendConstructor = " ${frontendClassName}(InspectorClient*);"; 264 push(@frontendFooter, "private:"); 265 push(@frontendFooter, " InspectorClient* m_inspectorClient;"); 274 266 $frontendTypes{"String"} = 1; 275 267 $frontendTypes{"InspectorClient"} = 1; … … 289 281 $backendTypes{"PassRefPtr"} = 1; 290 282 $backendTypes{"Object"} = 1; 291 292 generateFunctions($interface); 283 } 284 285 # Params: 'idlDocument' struct 286 sub GenerateInterface 287 { 288 my $object = shift; 289 my $interface = shift; 290 my $defines = shift; 291 292 my %agent = ( 293 methodDeclarations => [], 294 methodSignatures => {} 295 ); 296 generateFunctions($interface, \%agent); 297 if (@{%agent->{methodDeclarations}}) { 298 generateAgentDeclaration($interface, \%agent); 299 } 300 } 301 302 sub generateAgentDeclaration 303 { 304 my $interface = shift; 305 my $agent = shift; 306 my $agentName = $interface->name; 307 push(@frontendMethods, " class ${agentName} {"); 308 push(@frontendMethods, " public:"); 309 push(@frontendMethods, " ${agentName}(InspectorClient* inspectorClient) : m_inspectorClient(inspectorClient) { }"); 310 push(@frontendMethods, @{$agent->{methodDeclarations}}); 311 push(@frontendMethods, " private:"); 312 push(@frontendMethods, " InspectorClient* m_inspectorClient;"); 313 push(@frontendMethods, " };"); 314 push(@frontendMethods, ""); 315 316 my $getterName = lc($agentName); 317 push(@frontendMethods, " ${agentName}* ${getterName}() { return &m_${getterName}; }"); 318 push(@frontendMethods, ""); 319 320 push(@frontendFooter, " ${agentName} m_${getterName};"); 321 322 push(@frontendAgentFields, "m_${getterName}"); 323 } 324 325 sub generateFrontendConstructorImpl 326 { 327 my @frontendConstructorImpl; 328 push(@frontendConstructorImpl, "${frontendClassName}::${frontendClassName}(InspectorClient* inspectorClient)"); 329 push(@frontendConstructorImpl, " : m_inspectorClient(inspectorClient)"); 330 foreach my $agentField (@frontendAgentFields) { 331 push(@frontendConstructorImpl, " , ${agentField}(inspectorClient)"); 332 } 333 push(@frontendConstructorImpl, "{"); 334 push(@frontendConstructorImpl, "}"); 335 return @frontendConstructorImpl; 293 336 } 294 337 … … 296 339 { 297 340 my $interface = shift; 341 my $agent = shift; 298 342 299 343 foreach my $function (@{$interface->functions}) { 300 344 if ($function->signature->extendedAttributes->{"event"}) { 301 generateFrontendFunction($interface, $function );345 generateFrontendFunction($interface, $function, $agent); 302 346 } else { 303 347 generateBackendFunction($interface, $function); … … 325 369 my $interface = shift; 326 370 my $function = shift; 371 my $agent = shift; 327 372 328 373 my $functionName = $function->signature->name; … … 333 378 my $arguments = join(", ", map(typeTraits($_->type, "param") . " " . $_->name, @argsFiltered)); # prepare arguments for function signature. 334 379 335 my $signature = " void ${functionName}(${arguments});";336 !$ frontendMethodSignatures{${signature}} || die "Duplicate frontend function was detected for signature '$signature'.";337 $ frontendMethodSignatures{${signature}} = 1;338 push(@ frontendMethods, $signature);380 my $signature = " void ${functionName}(${arguments});"; 381 !$agent->{methodSignatures}->{$signature} || die "Duplicate frontend function was detected for signature '$signature'."; 382 $agent->{methodSignatures}->{$signature} = 1; 383 push(@{$agent->{methodDeclarations}}, $signature); 339 384 340 385 my @function; 341 push(@function, "void ${frontendClassName}::${ functionName}(${arguments})");386 push(@function, "void ${frontendClassName}::${domain}::${functionName}(${arguments})"); 342 387 push(@function, "{"); 343 388 push(@function, " RefPtr<InspectorObject> ${functionName}Message = InspectorObject::create();"); … … 350 395 push(@function, " ${functionName}Message->setObject(\"body\", bodyObject);"); 351 396 push(@function, " m_inspectorClient->sendMessageToFrontend(${functionName}Message->toJSONString());"); 352 353 397 push(@function, "}"); 354 398 push(@function, ""); … … 975 1019 push(@backendMethodsImpl, generateBackendDispatcher()); 976 1020 push(@backendMethodsImpl, generateBackendReportProtocolError()); 1021 unshift(@frontendMethodsImpl, generateFrontendConstructorImpl(), ""); 977 1022 978 1023 open(my $SOURCE, ">$outputDir/$frontendClassName.cpp") || die "Couldn't open file $outputDir/$frontendClassName.cpp"; … … 982 1027 983 1028 open(my $HEADER, ">$outputHeadersDir/$frontendClassName.h") || die "Couldn't open file $outputHeadersDir/$frontendClassName.h"; 984 print $HEADER generateHeader($frontendClassName, \%frontendTypes, $frontendConstructor, \@frontendConstantDeclarations, \@frontendMethods, $frontendFooter);1029 print $HEADER generateHeader($frontendClassName, \%frontendTypes, $frontendConstructor, \@frontendConstantDeclarations, \@frontendMethods, join("\n", @frontendFooter)); 985 1030 close($HEADER); 986 1031 undef($HEADER); -
trunk/Source/WebCore/inspector/ConsoleMessage.cpp
r80141 r80204 87 87 } 88 88 89 void ConsoleMessage::addToFrontend(InspectorFrontend * frontend, InjectedScriptHost* injectedScriptHost)89 void ConsoleMessage::addToFrontend(InspectorFrontend::Console* frontend, InjectedScriptHost* injectedScriptHost) 90 90 { 91 91 RefPtr<InspectorObject> jsonObj = InspectorObject::create(); … … 119 119 } 120 120 121 void ConsoleMessage::updateRepeatCountInConsole(InspectorFrontend * frontend)121 void ConsoleMessage::updateRepeatCountInConsole(InspectorFrontend::Console* frontend) 122 122 { 123 123 frontend->updateConsoleMessageRepeatCount(m_repeatCount); -
trunk/Source/WebCore/inspector/ConsoleMessage.h
r76248 r80204 33 33 34 34 #include "Console.h" 35 #include "InspectorFrontend.h" 35 36 #include "ScriptState.h" 36 37 … … 55 56 ~ConsoleMessage(); 56 57 57 void addToFrontend(InspectorFrontend *, InjectedScriptHost*);58 void updateRepeatCountInConsole(InspectorFrontend * frontend);58 void addToFrontend(InspectorFrontend::Console*, InjectedScriptHost*); 59 void updateRepeatCountInConsole(InspectorFrontend::Console*); 59 60 void incrementCount() { ++m_repeatCount; } 60 61 bool isEqual(ConsoleMessage* msg) const; -
trunk/Source/WebCore/inspector/InjectedScriptHost.cpp
r80141 r80204 84 84 { 85 85 if (InspectorFrontend* fe = frontend()) 86 fe->inspect (objectId->asObject(), hints->asObject());86 fe->inspector()->inspect(objectId->asObject(), hints->asObject()); 87 87 } 88 88 -
trunk/Source/WebCore/inspector/Inspector.idl
r80141 r80204 40 40 void setSearchingForNode(in boolean enabled, out boolean newState); 41 41 [event] void frontendReused(); 42 [event] void addNodesToSearchResult(out Array nodeIds);43 42 [event] void bringToFront(); 44 43 [event] void disconnectFromBackend(); … … 164 163 void pushNodeToFrontend(in Object objectId, out long nodeId); 165 164 165 [event] void addNodesToSearchResult(out Array nodeIds); 166 166 [event] void setDocument(out Value root); // FIXME: should be requested from the front-end as getDocument. 167 167 [event] void attributesUpdated(out long id, out Array attributes); -
trunk/Source/WebCore/inspector/InspectorAgent.cpp
r80116 r80204 172 172 { 173 173 if (m_frontend) 174 m_frontend-> disconnectFromBackend();174 m_frontend->inspector()->disconnectFromBackend(); 175 175 176 176 ErrorString error; … … 202 202 m_state->loadFromCookie(inspectorStateCookie); 203 203 204 m_frontend-> frontendReused();205 m_frontend->inspect edURLChanged(inspectedURL().string());204 m_frontend->inspector()->frontendReused(); 205 m_frontend->inspector()->inspectedURLChanged(inspectedURL().string()); 206 206 pushDataCollectedOffline(); 207 207 … … 377 377 #endif 378 378 // Initialize Web Inspector title. 379 m_frontend->inspect edURLChanged(inspectedURL().string());379 m_frontend->inspector()->inspectedURLChanged(inspectedURL().string()); 380 380 } 381 381 … … 401 401 402 402 #if ENABLE(JAVASCRIPT_DEBUGGER) 403 m_profilerAgent-> setFrontend(0);403 m_profilerAgent->clearFrontend(); 404 404 m_profilerAgent->stopUserInitiatedProfiling(true); 405 405 #endif … … 452 452 #if ENABLE(JAVASCRIPT_DEBUGGER) 453 453 if (m_profilerAgent->enabled()) 454 m_frontend->profiler WasEnabled();454 m_frontend->profiler()->profilerWasEnabled(); 455 455 #endif 456 456 … … 461 461 462 462 if (!m_showPanelAfterVisible.isEmpty()) { 463 m_frontend-> showPanel(m_showPanelAfterVisible);463 m_frontend->inspector()->showPanel(m_showPanelAfterVisible); 464 464 m_showPanelAfterVisible = ""; 465 465 } … … 472 472 // Dispatch pending frontend commands 473 473 for (Vector<pair<long, String> >::iterator it = m_pendingEvaluateTestCommands.begin(); it != m_pendingEvaluateTestCommands.end(); ++it) 474 m_frontend-> evaluateForTestInFrontend((*it).first, (*it).second);474 m_frontend->inspector()->evaluateForTestInFrontend((*it).first, (*it).second); 475 475 m_pendingEvaluateTestCommands.clear(); 476 476 } … … 484 484 for (WorkersMap::iterator it = m_workers.begin(); it != workersEnd; ++it) { 485 485 InspectorWorkerResource* worker = it->second.get(); 486 m_frontend->d idCreateWorker(worker->id(), worker->url(), worker->isSharedWorker());486 m_frontend->debugger()->didCreateWorker(worker->id(), worker->url(), worker->isSharedWorker()); 487 487 } 488 488 #endif … … 515 515 if (loader->frame() == m_inspectedPage->mainFrame()) { 516 516 if (m_frontend) 517 m_frontend->inspect edURLChanged(loader->url().string());517 m_frontend->inspector()->inspectedURLChanged(loader->url().string()); 518 518 519 519 m_injectedScriptHost->discardInjectedScripts(); … … 543 543 544 544 if (m_frontend) { 545 m_frontend-> reset();545 m_frontend->inspector()->reset(); 546 546 m_domAgent->reset(); 547 547 m_cssAgent->reset(); … … 571 571 timelineAgent->didMarkDOMContentEvent(); 572 572 if (m_frontend) 573 m_frontend-> domContentEventFired(currentTime());573 m_frontend->inspector()->domContentEventFired(currentTime()); 574 574 } 575 575 … … 588 588 timelineAgent->didMarkLoadEvent(); 589 589 if (m_frontend) 590 m_frontend-> loadEventFired(currentTime());590 m_frontend->inspector()->loadEventFired(currentTime()); 591 591 } 592 592 … … 642 642 switch (action) { 643 643 case InspectorAgent::WorkerCreated: 644 m_frontend->d idCreateWorker(worker.id(), worker.url(), worker.isSharedWorker());644 m_frontend->debugger()->didCreateWorker(worker.id(), worker.url(), worker.isSharedWorker()); 645 645 break; 646 646 case InspectorAgent::WorkerDestroyed: 647 m_frontend->d idDestroyWorker(worker.id());647 m_frontend->debugger()->didDestroyWorker(worker.id()); 648 648 break; 649 649 } … … 842 842 { 843 843 if (m_frontend) 844 m_frontend-> evaluateForTestInFrontend(callId, script);844 m_frontend->inspector()->evaluateForTestInFrontend(callId, script); 845 845 else 846 846 m_pendingEvaluateTestCommands.append(pair<long, String>(callId, script)); … … 1169 1169 return; 1170 1170 } 1171 m_frontend-> showPanel(panel);1171 m_frontend->inspector()->showPanel(panel); 1172 1172 } 1173 1173 -
trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.cpp
r79539 r80204 44 44 InspectorApplicationCacheAgent::InspectorApplicationCacheAgent(DocumentLoader* documentLoader, InspectorFrontend* frontend) 45 45 : m_documentLoader(documentLoader) 46 , m_frontend(frontend )46 , m_frontend(frontend->applicationcache()) 47 47 { 48 48 } -
trunk/Source/WebCore/inspector/InspectorApplicationCacheAgent.h
r79539 r80204 29 29 30 30 #include "ApplicationCacheHost.h" 31 #include "InspectorFrontend.h" 31 32 #include <wtf/Noncopyable.h> 32 33 #include <wtf/PassRefPtr.h> … … 66 67 67 68 DocumentLoader* m_documentLoader; 68 InspectorFrontend * m_frontend;69 InspectorFrontend::ApplicationCache* m_frontend; 69 70 }; 70 71 -
trunk/Source/WebCore/inspector/InspectorConsoleAgent.cpp
r79539 r80204 107 107 void InspectorConsoleAgent::setFrontend(InspectorFrontend* frontend) 108 108 { 109 m_frontend = frontend ;109 m_frontend = frontend->console(); 110 110 } 111 111 -
trunk/Source/WebCore/inspector/InspectorConsoleAgent.h
r79539 r80204 27 27 28 28 #include "Console.h" 29 #include "InspectorFrontend.h" 29 30 #include <wtf/Forward.h> 30 31 #include <wtf/HashMap.h> … … 89 90 InjectedScriptHost* m_injectedScriptHost; 90 91 InspectorDOMAgent* m_inspectorDOMAgent; 91 InspectorFrontend * m_frontend;92 InspectorFrontend::Console* m_frontend; 92 93 ConsoleMessage* m_previousMessage; 93 94 Vector<OwnPtr<ConsoleMessage> > m_consoleMessages; -
trunk/Source/WebCore/inspector/InspectorController.cpp
r79858 r80204 132 132 133 133 if (m_inspectorFrontend) 134 m_inspectorFrontend-> bringToFront();134 m_inspectorFrontend->inspector()->bringToFront(); 135 135 else { 136 136 m_openingFrontend = true; … … 143 143 if (!m_inspectorFrontend) 144 144 return; 145 m_inspectorFrontend-> disconnectFromBackend();145 m_inspectorFrontend->inspector()->disconnectFromBackend(); 146 146 disconnectFrontend(); 147 147 } -
trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp
r80141 r80204 262 262 { 263 263 ASSERT(!m_frontend); 264 m_frontend = frontend ;264 m_frontend = frontend->dom(); 265 265 m_instrumentingAgents->setInspectorDOMAgent(this); 266 266 } -
trunk/Source/WebCore/inspector/InspectorDOMAgent.h
r80141 r80204 33 33 #include "InjectedScript.h" 34 34 #include "InjectedScriptHost.h" 35 #include "InspectorFrontend.h" 35 36 #include "InspectorValues.h" 36 37 #include "Timer.h" … … 185 186 InstrumentingAgents* m_instrumentingAgents; 186 187 InjectedScriptHost* m_injectedScriptHost; 187 InspectorFrontend * m_frontend;188 InspectorFrontend::DOM* m_frontend; 188 189 DOMListener* m_domListener; 189 190 NodeToIdMap m_documentNodeToIdMap; -
trunk/Source/WebCore/inspector/InspectorDOMStorageResource.cpp
r79556 r80204 68 68 { 69 69 ASSERT(!m_frontend); 70 m_frontend = frontend ;70 m_frontend = frontend->domstorage(); 71 71 72 72 RefPtr<InspectorObject> jsonObject = InspectorObject::create(); … … 74 74 jsonObject->setBoolean("isLocalStorage", m_isLocalStorage); 75 75 jsonObject->setNumber("id", m_id); 76 frontend->addDOMStorage(jsonObject);76 m_frontend->addDOMStorage(jsonObject); 77 77 } 78 78 -
trunk/Source/WebCore/inspector/InspectorDOMStorageResource.h
r79556 r80204 35 35 36 36 #include "EventListener.h" 37 #include "InspectorFrontend.h" 37 38 38 39 #include <wtf/PassRefPtr.h> … … 76 77 bool m_isLocalStorage; 77 78 RefPtr<Frame> m_frame; 78 InspectorFrontend * m_frontend;79 InspectorFrontend::DOMStorage* m_frontend; 79 80 long m_id; 80 81 bool m_reportingChangesToFrontend; -
trunk/Source/WebCore/inspector/InspectorDatabaseAgent.cpp
r79556 r80204 62 62 virtual ~FrontendProvider() { } 63 63 64 InspectorFrontend * frontend() { return m_inspectorFrontend; }64 InspectorFrontend::Database* frontend() { return m_inspectorFrontend; } 65 65 void clearFrontend() { m_inspectorFrontend = 0; } 66 66 private: 67 FrontendProvider(InspectorFrontend* inspectorFrontend) : m_inspectorFrontend(inspectorFrontend ) { }68 InspectorFrontend * m_inspectorFrontend;67 FrontendProvider(InspectorFrontend* inspectorFrontend) : m_inspectorFrontend(inspectorFrontend->database()) { } 68 InspectorFrontend::Database* m_inspectorFrontend; 69 69 }; 70 70 … … 73 73 long lastTransactionId = 0; 74 74 75 void reportTransactionFailed(InspectorFrontend * frontend, long transactionId, SQLError* error)75 void reportTransactionFailed(InspectorFrontend::Database* frontend, long transactionId, SQLError* error) 76 76 { 77 77 if (!frontend) … … 251 251 DatabaseResourcesMap::iterator databasesEnd = m_resources.end(); 252 252 for (DatabaseResourcesMap::iterator it = m_resources.begin(); it != databasesEnd; ++it) 253 it->second->bind( frontend);253 it->second->bind(m_frontendProvider->frontend()); 254 254 } 255 255 -
trunk/Source/WebCore/inspector/InspectorDatabaseResource.cpp
r79556 r80204 55 55 } 56 56 57 void InspectorDatabaseResource::bind(InspectorFrontend * frontend)57 void InspectorDatabaseResource::bind(InspectorFrontend::Database* frontend) 58 58 { 59 59 RefPtr<InspectorObject> jsonObject = InspectorObject::create(); -
trunk/Source/WebCore/inspector/InspectorDatabaseResource.h
r79556 r80204 33 33 34 34 #if ENABLE(DATABASE) 35 #include "InspectorFrontend.h" 35 36 #include "PlatformString.h" 36 37 #include <wtf/PassRefPtr.h> … … 46 47 static PassRefPtr<InspectorDatabaseResource> create(PassRefPtr<Database> database, const String& domain, const String& name, const String& version); 47 48 48 void bind(InspectorFrontend * frontend);49 void bind(InspectorFrontend::Database*); 49 50 Database* database() { return m_database.get(); } 50 51 long id() const { return m_id; } -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.cpp
r79887 r80204 128 128 void InspectorDebuggerAgent::setFrontend(InspectorFrontend* frontend) 129 129 { 130 m_frontend = frontend ;130 m_frontend = frontend->debugger(); 131 131 } 132 132 -
trunk/Source/WebCore/inspector/InspectorDebuggerAgent.h
r79887 r80204 33 33 #if ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) 34 34 #include "InjectedScript.h" 35 #include "InspectorFrontend.h" 35 36 #include "ScriptBreakpoint.h" 36 37 #include "ScriptDebugListener.h" … … 156 157 Page* m_inspectedPage; 157 158 InjectedScriptHost* m_injectedScriptHost; 158 InspectorFrontend * m_frontend;159 InspectorFrontend::Debugger* m_frontend; 159 160 ScriptState* m_pausedScriptState; 160 161 ScriptsMap m_scripts; -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.cpp
r80135 r80204 176 176 class OutputStream : public ScriptHeapSnapshot::OutputStream { 177 177 public: 178 OutputStream(InspectorFrontend * frontend, unsigned long uid)178 OutputStream(InspectorFrontend::Profiler* frontend, unsigned long uid) 179 179 : m_frontend(frontend), m_uid(uid) { } 180 180 void Write(const String& chunk) { m_frontend->addHeapSnapshotChunk(m_uid, chunk); } 181 181 void Close() { m_frontend->finishHeapSnapshot(m_uid); } 182 182 private: 183 InspectorFrontend * m_frontend;183 InspectorFrontend::Profiler* m_frontend; 184 184 unsigned long m_uid; 185 185 }; … … 284 284 class HeapSnapshotProgress: public ScriptProfiler::HeapSnapshotProgress { 285 285 public: 286 explicit HeapSnapshotProgress(InspectorFrontend * frontend)286 explicit HeapSnapshotProgress(InspectorFrontend::Profiler* frontend) 287 287 : m_frontend(frontend) { } 288 288 void Start(int totalWork) … … 298 298 bool isCanceled() { return false; } 299 299 private: 300 InspectorFrontend * m_frontend;300 InspectorFrontend::Profiler* m_frontend; 301 301 int m_totalWork; 302 302 }; -
trunk/Source/WebCore/inspector/InspectorProfilerAgent.h
r80135 r80204 33 33 #if ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) 34 34 35 #include "InspectorFrontend.h" 35 36 #include "PlatformString.h" 36 37 #include <wtf/Forward.h> … … 71 72 void resetState(); 72 73 void resetFrontendProfiles(); 73 void setFrontend(InspectorFrontend* frontend) { m_frontend = frontend; } 74 void setFrontend(InspectorFrontend* frontend) { m_frontend = frontend->profiler(); } 75 void clearFrontend() { m_frontend = 0; } 74 76 void startUserInitiatedProfiling(); 75 77 void stopUserInitiatedProfiling(bool ignoreProfile = false); … … 86 88 87 89 InspectorAgent* m_inspectorAgent; 88 InspectorFrontend * m_frontend;90 InspectorFrontend::Profiler* m_frontend; 89 91 bool m_enabled; 90 92 bool m_recordingUserInitiatedProfile; -
trunk/Source/WebCore/inspector/InspectorResourceAgent.cpp
r79542 r80204 520 520 : m_page(page) 521 521 , m_state(state) 522 , m_frontend(frontend )522 , m_frontend(frontend->network()) 523 523 { 524 524 m_state->setBoolean(ResourceAgentState::resourceAgentEnabled, true); -
trunk/Source/WebCore/inspector/InspectorResourceAgent.h
r79556 r80204 32 32 #define InspectorResourceAgent_h 33 33 34 #include "InspectorFrontend.h" 34 35 #include "PlatformString.h" 35 36 … … 114 115 Page* m_page; 115 116 InspectorState* m_state; 116 InspectorFrontend * m_frontend;117 InspectorFrontend::Network* m_frontend; 117 118 }; 118 119 -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.cpp
r79539 r80204 78 78 void InspectorTimelineAgent::setFrontend(InspectorFrontend* frontend) 79 79 { 80 m_frontend = frontend ;80 m_frontend = frontend->timeline(); 81 81 } 82 82 -
trunk/Source/WebCore/inspector/InspectorTimelineAgent.h
r79539 r80204 34 34 #if ENABLE(INSPECTOR) 35 35 36 #include "InspectorFrontend.h" 36 37 #include "InspectorValues.h" 37 38 #include "ScriptGCEvent.h" … … 173 174 InstrumentingAgents* m_instrumentingAgents; 174 175 InspectorState* m_state; 175 InspectorFrontend * m_frontend;176 InspectorFrontend::Timeline* m_frontend; 176 177 177 178 Vector<TimelineRecordEntry> m_recordStack; -
trunk/Source/WebCore/inspector/front-end/DOMAgent.js
r79345 r80204 501 501 { 502 502 WebInspector.updateFocusedNode(nodeId); 503 }, 504 505 addNodesToSearchResult: function(nodeIds) 506 { 507 WebInspector.panels.elements.addNodesToSearchResult(nodeIds); 503 508 } 504 509 } -
trunk/Source/WebCore/inspector/front-end/inspector.js
r80135 r80204 1409 1409 this.networkManager.reset(); 1410 1410 this.reset(); 1411 }1412 1413 WebInspector.addNodesToSearchResult = function(nodeIds)1414 {1415 WebInspector.panels.elements.addNodesToSearchResult(nodeIds);1416 1411 } 1417 1412
Note: See TracChangeset
for help on using the changeset viewer.