|
Lines 119-125
static const char* const resourceTrackingEnabledSettingName = "resourceTrackingE
a/WebCore/inspector/InspectorController.cpp_sec1
|
| 119 |
static const char* const debuggerEnabledSettingName = "debuggerEnabled"; |
119 |
static const char* const debuggerEnabledSettingName = "debuggerEnabled"; |
| 120 |
static const char* const profilerEnabledSettingName = "profilerEnabled"; |
120 |
static const char* const profilerEnabledSettingName = "profilerEnabled"; |
| 121 |
static const char* const inspectorAttachedHeightName = "inspectorAttachedHeight"; |
121 |
static const char* const inspectorAttachedHeightName = "inspectorAttachedHeight"; |
| 122 |
static const char* const lastActivePanelSettingName = "lastActivePanel"; |
122 |
static const char* const lastActivePanel = "lastActivePanel"; |
|
|
123 |
const char* const InspectorController::ElementsPanel = "elements"; |
| 124 |
const char* const InspectorController::ConsolePanel = "console"; |
| 125 |
const char* const InspectorController::ScriptsPanel = "scripts"; |
| 126 |
const char* const InspectorController::ProfilesPanel = "profiles"; |
| 127 |
|
| 123 |
static const char* const monitoringXHRSettingName = "xhrMonitor"; |
128 |
static const char* const monitoringXHRSettingName = "xhrMonitor"; |
| 124 |
|
129 |
|
| 125 |
int connectedFrontendCount = 0; |
130 |
int connectedFrontendCount = 0; |
|
Lines 150-156
InspectorController::InspectorController(Page* page, InspectorClient* client)
a/WebCore/inspector/InspectorController.cpp_sec2
|
| 150 |
, m_openingFrontend(false) |
155 |
, m_openingFrontend(false) |
| 151 |
, m_cssStore(new InspectorCSSStore(this)) |
156 |
, m_cssStore(new InspectorCSSStore(this)) |
| 152 |
, m_expiredConsoleMessageCount(0) |
157 |
, m_expiredConsoleMessageCount(0) |
| 153 |
, m_showAfterVisible(CurrentPanel) |
158 |
, m_showAfterVisible(lastActivePanel) |
| 154 |
, m_sessionSettings(InspectorObject::create()) |
159 |
, m_sessionSettings(InspectorObject::create()) |
| 155 |
, m_groupLevel(0) |
160 |
, m_groupLevel(0) |
| 156 |
, m_searchingForNode(false) |
161 |
, m_searchingForNode(false) |
|
Lines 381-387
void InspectorController::markTimeline(const String& message)
a/WebCore/inspector/InspectorController.cpp_sec3
|
| 381 |
|
386 |
|
| 382 |
void InspectorController::storeLastActivePanel(const String& panelName) |
387 |
void InspectorController::storeLastActivePanel(const String& panelName) |
| 383 |
{ |
388 |
{ |
| 384 |
setSetting(lastActivePanelSettingName, panelName); |
389 |
setSetting(lastActivePanel, panelName); |
| 385 |
} |
390 |
} |
| 386 |
|
391 |
|
| 387 |
void InspectorController::mouseDidMoveOverElement(const HitTestResult& result, unsigned) |
392 |
void InspectorController::mouseDidMoveOverElement(const HitTestResult& result, unsigned) |
|
Lines 497-506
void InspectorController::connectFrontend(const ScriptObject& webInspector)
a/WebCore/inspector/InspectorController.cpp_sec4
|
| 497 |
} |
502 |
} |
| 498 |
#endif |
503 |
#endif |
| 499 |
|
504 |
|
| 500 |
if (m_showAfterVisible == CurrentPanel) { |
505 |
if (m_showAfterVisible == lastActivePanel) |
| 501 |
String lastActivePanelSetting = setting(lastActivePanelSettingName); |
506 |
m_showAfterVisible = setting(lastActivePanel); |
| 502 |
m_showAfterVisible = specialPanelForJSName(lastActivePanelSetting); |
|
|
| 503 |
} |
| 504 |
|
507 |
|
| 505 |
if (m_nodeToFocus) |
508 |
if (m_nodeToFocus) |
| 506 |
focusNode(); |
509 |
focusNode(); |
|
Lines 531-537
void InspectorController::show()
a/WebCore/inspector/InspectorController.cpp_sec5
|
| 531 |
} |
534 |
} |
| 532 |
} |
535 |
} |
| 533 |
|
536 |
|
| 534 |
void InspectorController::showPanel(SpecialPanels panel) |
537 |
void InspectorController::showPanel(const String& panel) |
| 535 |
{ |
538 |
{ |
| 536 |
if (!enabled()) |
539 |
if (!enabled()) |
| 537 |
return; |
540 |
return; |
|
Lines 543-552
void InspectorController::showPanel(SpecialPanels panel)
a/WebCore/inspector/InspectorController.cpp_sec6
|
| 543 |
return; |
546 |
return; |
| 544 |
} |
547 |
} |
| 545 |
|
548 |
|
| 546 |
if (panel == CurrentPanel) |
549 |
if (panel == lastActivePanel) |
| 547 |
return; |
550 |
return; |
| 548 |
|
551 |
|
| 549 |
m_frontend->showPanel(panel); |
552 |
m_remoteFrontend->showPanel(panel); |
| 550 |
} |
553 |
} |
| 551 |
|
554 |
|
| 552 |
void InspectorController::close() |
555 |
void InspectorController::close() |
|
Lines 579-585
void InspectorController::disconnectFrontend()
a/WebCore/inspector/InspectorController.cpp_sec7
|
| 579 |
unbindAllResources(); |
582 |
unbindAllResources(); |
| 580 |
stopTimelineProfiler(); |
583 |
stopTimelineProfiler(); |
| 581 |
|
584 |
|
| 582 |
m_showAfterVisible = CurrentPanel; |
585 |
m_showAfterVisible = lastActivePanel; |
| 583 |
|
586 |
|
| 584 |
hideHighlight(); |
587 |
hideHighlight(); |
| 585 |
|
588 |
|
|
Lines 1892-1918
bool InspectorController::stopTiming(const String& title, double& elapsed)
a/WebCore/inspector/InspectorController.cpp_sec8
|
| 1892 |
return true; |
1895 |
return true; |
| 1893 |
} |
1896 |
} |
| 1894 |
|
1897 |
|
| 1895 |
InspectorController::SpecialPanels InspectorController::specialPanelForJSName(const String& panelName) |
|
|
| 1896 |
{ |
| 1897 |
if (panelName == "elements") |
| 1898 |
return ElementsPanel; |
| 1899 |
if (panelName == "resources") |
| 1900 |
return ResourcesPanel; |
| 1901 |
if (panelName == "scripts") |
| 1902 |
return ScriptsPanel; |
| 1903 |
if (panelName == "timeline") |
| 1904 |
return TimelinePanel; |
| 1905 |
if (panelName == "profiles") |
| 1906 |
return ProfilesPanel; |
| 1907 |
if (panelName == "storage" || panelName == "databases") |
| 1908 |
return StoragePanel; |
| 1909 |
if (panelName == "audits") |
| 1910 |
return AuditsPanel; |
| 1911 |
if (panelName == "console") |
| 1912 |
return ConsolePanel; |
| 1913 |
return ElementsPanel; |
| 1914 |
} |
| 1915 |
|
| 1916 |
InjectedScript InspectorController::injectedScriptForNodeId(long id) |
1898 |
InjectedScript InspectorController::injectedScriptForNodeId(long id) |
| 1917 |
{ |
1899 |
{ |
| 1918 |
|
1900 |
|