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/blink_test_runner.h" | 5 #include "content/shell/renderer/layout_test/blink_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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 } | 594 } |
595 | 595 |
596 Send(new LayoutTestHostMsg_SetPermission( | 596 Send(new LayoutTestHostMsg_SetPermission( |
597 routing_id(), name, status, origin, embedding_origin)); | 597 routing_id(), name, status, origin, embedding_origin)); |
598 } | 598 } |
599 | 599 |
600 void BlinkTestRunner::ResetPermissions() { | 600 void BlinkTestRunner::ResetPermissions() { |
601 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); | 601 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); |
602 } | 602 } |
603 | 603 |
| 604 blink::WebLayer* BlinkTestRunner::InstantiateWebLayer( |
| 605 scoped_refptr<cc::TextureLayer> layer) { |
| 606 return ::content::InstantiateWebLayer(layer); |
| 607 } |
| 608 |
| 609 cc::SharedBitmapManager* BlinkTestRunner::GetSharedBitmapManager() { |
| 610 return RenderThread::Get()->GetSharedBitmapManager(); |
| 611 } |
| 612 |
604 // RenderViewObserver -------------------------------------------------------- | 613 // RenderViewObserver -------------------------------------------------------- |
605 | 614 |
606 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { | 615 void BlinkTestRunner::DidClearWindowObject(WebLocalFrame* frame) { |
607 WebTestingSupport::injectInternalsObject(frame); | 616 WebTestingSupport::injectInternalsObject(frame); |
608 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( | 617 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces()->BindTo( |
609 frame); | 618 frame); |
610 GCController::Install(frame); | 619 GCController::Install(frame); |
611 } | 620 } |
612 | 621 |
613 bool BlinkTestRunner::OnMessageReceived(const IPC::Message& message) { | 622 bool BlinkTestRunner::OnMessageReceived(const IPC::Message& message) { |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
796 | 805 |
797 leak_detector_->TryLeakDetection(main_frame); | 806 leak_detector_->TryLeakDetection(main_frame); |
798 } | 807 } |
799 | 808 |
800 void BlinkTestRunner::ReportLeakDetectionResult( | 809 void BlinkTestRunner::ReportLeakDetectionResult( |
801 const LeakDetectionResult& report) { | 810 const LeakDetectionResult& report) { |
802 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 811 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
803 } | 812 } |
804 | 813 |
805 } // namespace content | 814 } // namespace content |
OLD | NEW |