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 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
674 main_frame->willShowInstallBannerPrompt(request_id, blink_event_platforms, | 674 main_frame->willShowInstallBannerPrompt(request_id, blink_event_platforms, |
675 &reply); | 675 &reply); |
676 | 676 |
677 callback.Run(reply == blink::WebAppBannerPromptReply::Cancel); | 677 callback.Run(reply == blink::WebAppBannerPromptReply::Cancel); |
678 } | 678 } |
679 | 679 |
680 void BlinkTestRunner::ResolveBeforeInstallPromptPromise( | 680 void BlinkTestRunner::ResolveBeforeInstallPromptPromise( |
681 int request_id, const std::string& platform) { | 681 int request_id, const std::string& platform) { |
682 test_runner::WebTestInterfaces* interfaces = | 682 test_runner::WebTestInterfaces* interfaces = |
683 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces(); | 683 LayoutTestRenderProcessObserver::GetInstance()->test_interfaces(); |
684 interfaces->GetTestInterfaces()->GetAppBannerClient()->ResolvePromise( | 684 interfaces->GetAppBannerClient()->ResolvePromise(request_id, platform); |
685 request_id, platform); | |
686 } | 685 } |
687 | 686 |
688 blink::WebPlugin* BlinkTestRunner::CreatePluginPlaceholder( | 687 blink::WebPlugin* BlinkTestRunner::CreatePluginPlaceholder( |
689 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { | 688 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { |
690 if (params.mimeType == "application/x-plugin-placeholder-test") | 689 if (params.mimeType == "application/x-plugin-placeholder-test") |
691 return (new TestPluginPlaceholder(frame, params))->plugin(); | 690 return (new TestPluginPlaceholder(frame, params))->plugin(); |
692 return 0; | 691 return 0; |
693 } | 692 } |
694 | 693 |
695 // RenderViewObserver -------------------------------------------------------- | 694 // RenderViewObserver -------------------------------------------------------- |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
887 | 886 |
888 leak_detector_->TryLeakDetection(main_frame); | 887 leak_detector_->TryLeakDetection(main_frame); |
889 } | 888 } |
890 | 889 |
891 void BlinkTestRunner::ReportLeakDetectionResult( | 890 void BlinkTestRunner::ReportLeakDetectionResult( |
892 const LeakDetectionResult& report) { | 891 const LeakDetectionResult& report) { |
893 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); | 892 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); |
894 } | 893 } |
895 | 894 |
896 } // namespace content | 895 } // namespace content |
OLD | NEW |