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

Unified Diff: webkit/glue/webdevtoolsagent_impl.cc

Issue 492004: DevTools: Add support for inspector layout tests. Step 1. (Closed)
Patch Set: Created 11 years 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 | « webkit/glue/webdevtoolsagent_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webdevtoolsagent_impl.cc
diff --git a/webkit/glue/webdevtoolsagent_impl.cc b/webkit/glue/webdevtoolsagent_impl.cc
index ab8d9555de114013649dbdeff775a49a613fbf48..82386dcc0804c067d3d746fdfca5e131c9d965d4 100644
--- a/webkit/glue/webdevtoolsagent_impl.cc
+++ b/webkit/glue/webdevtoolsagent_impl.cc
@@ -329,11 +329,7 @@ void WebDevToolsAgentImpl::setRuntimeFeatureEnabled(const WebString& wfeature,
if (feature == kApuAgentFeatureName) {
setApuAgentEnabled(enabled);
} else if (feature == kTimelineFeatureName) {
- InspectorController* ic = web_view_impl_->page()->inspectorController();
- if (enabled)
- ic->startTimelineProfiler();
- else
- ic->stopTimelineProfiler();
+ setTimelineProfilingEnabled(enabled);
} else if (feature == kResourceTrackingFeatureName) {
InspectorController* ic = web_view_impl_->page()->inspectorController();
if (enabled)
@@ -598,6 +594,21 @@ void WebDevToolsAgentImpl::didFailLoading(unsigned long resourceId,
ic->didFailLoading(resourceId, resource_error);
}
+void WebDevToolsAgentImpl::evaluateInWebInspector(long call_id,
+ const WebString& script) {
+ InspectorController* ic = GetInspectorController();
+ ic->evaluateForTestInFrontend(call_id,
+ webkit_glue::WebStringToString(script));
+}
+
+void WebDevToolsAgentImpl::setTimelineProfilingEnabled(bool enabled) {
+ InspectorController* ic = GetInspectorController();
+ if (enabled)
+ ic->startTimelineProfiler();
+ else
+ ic->stopTimelineProfiler();
+}
+
namespace WebKit {
« no previous file with comments | « webkit/glue/webdevtoolsagent_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698