| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h" | 5 #include "content/shell/renderer/layout_test/webkit_test_runner.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <clocale> | 8 #include <clocale> |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 | 10 |
| (...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 void WebKitTestRunner::DisableAutoResizeMode(const WebSize& new_size) { | 387 void WebKitTestRunner::DisableAutoResizeMode(const WebSize& new_size) { |
| 388 content::DisableAutoResizeMode(render_view(), new_size); | 388 content::DisableAutoResizeMode(render_view(), new_size); |
| 389 if (!new_size.isEmpty()) | 389 if (!new_size.isEmpty()) |
| 390 ForceResizeRenderView(render_view(), new_size); | 390 ForceResizeRenderView(render_view(), new_size); |
| 391 } | 391 } |
| 392 | 392 |
| 393 void WebKitTestRunner::ClearDevToolsLocalStorage() { | 393 void WebKitTestRunner::ClearDevToolsLocalStorage() { |
| 394 Send(new ShellViewHostMsg_ClearDevToolsLocalStorage(routing_id())); | 394 Send(new ShellViewHostMsg_ClearDevToolsLocalStorage(routing_id())); |
| 395 } | 395 } |
| 396 | 396 |
| 397 void WebKitTestRunner::ShowDevTools(const std::string& settings, | 397 void WebKitTestRunner::ShowDevTools(const std::string& test_path, |
| 398 const std::string& frontend_url) { | 398 const std::string& frontend_url) { |
| 399 Send(new ShellViewHostMsg_ShowDevTools( | 399 Send(new ShellViewHostMsg_ShowDevTools( |
| 400 routing_id(), settings, frontend_url)); | 400 routing_id(), test_path, frontend_url)); |
| 401 } | 401 } |
| 402 | 402 |
| 403 void WebKitTestRunner::CloseDevTools() { | 403 void WebKitTestRunner::CloseDevTools() { |
| 404 Send(new ShellViewHostMsg_CloseDevTools(routing_id())); | 404 Send(new ShellViewHostMsg_CloseDevTools(routing_id())); |
| 405 WebDevToolsAgent* agent = render_view()->GetWebView()->devToolsAgent(); | 405 WebDevToolsAgent* agent = render_view()->GetWebView()->devToolsAgent(); |
| 406 if (agent) | 406 if (agent) |
| 407 agent->detach(); | 407 agent->detach(); |
| 408 } | 408 } |
| 409 | 409 |
| 410 void WebKitTestRunner::EvaluateInWebInspector(long call_id, | 410 void WebKitTestRunner::EvaluateInWebInspector(long call_id, |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 782 | 782 |
| 783 leak_detector_->TryLeakDetection(main_frame); | 783 leak_detector_->TryLeakDetection(main_frame); |
| 784 } | 784 } |
| 785 | 785 |
| 786 void WebKitTestRunner::ReportLeakDetectionResult( | 786 void WebKitTestRunner::ReportLeakDetectionResult( |
| 787 const LeakDetectionResult& report) { | 787 const LeakDetectionResult& report) { |
| 788 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 788 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
| 789 } | 789 } |
| 790 | 790 |
| 791 } // namespace content | 791 } // namespace content |
| OLD | NEW |