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

Unified Diff: Source/WebCore/inspector/InspectorController.cpp

Issue 12224049: Merge 140539 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/InspectorController.h ('k') | Source/WebCore/inspector/InspectorFrontendClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/InspectorController.cpp
===================================================================
--- Source/WebCore/inspector/InspectorController.cpp (revision 142083)
+++ Source/WebCore/inspector/InspectorController.cpp (working copy)
@@ -86,6 +86,7 @@
, m_overlay(InspectorOverlay::create(page, inspectorClient))
, m_page(page)
, m_inspectorClient(inspectorClient)
+ , m_isUnderTest(false)
{
OwnPtr<InspectorAgent> inspectorAgentPtr(InspectorAgent::create(page, m_injectedScriptManager.get(), m_instrumentingAgents.get(), m_state.get()));
m_inspectorAgent = inspectorAgentPtr.get();
@@ -298,8 +299,14 @@
m_pageAgent->webViewResized(size);
}
+bool InspectorController::isUnderTest()
+{
+ return m_isUnderTest;
+}
+
void InspectorController::evaluateForTestInFrontend(long callId, const String& script)
{
+ m_isUnderTest = true;
m_inspectorAgent->evaluateForTestInFrontend(callId, script);
}
« no previous file with comments | « Source/WebCore/inspector/InspectorController.h ('k') | Source/WebCore/inspector/InspectorFrontendClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698