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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1787743003: Remove unneeded code from WebTestProxyBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing accidental reversal of condition in RunModalBeforeUnloadDialog. Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 7 #include <stddef.h>
8 #include <algorithm> 8 #include <algorithm>
9 #include <clocale> 9 #include <clocale>
10 #include <cmath> 10 #include <cmath>
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) { 773 blink::WebLocalFrame* frame, const blink::WebPluginParams& params) {
774 if (params.mimeType != "application/x-plugin-placeholder-test") 774 if (params.mimeType != "application/x-plugin-placeholder-test")
775 return nullptr; 775 return nullptr;
776 776
777 plugins::PluginPlaceholder* placeholder = 777 plugins::PluginPlaceholder* placeholder =
778 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame, 778 new plugins::PluginPlaceholder(render_view()->GetMainRenderFrame(), frame,
779 params, "<div>Test content</div>"); 779 params, "<div>Test content</div>");
780 return placeholder->plugin(); 780 return placeholder->plugin();
781 } 781 }
782 782
783 void BlinkTestRunner::OnWebTestProxyBaseDestroy(
784 test_runner::WebTestProxyBase* proxy) {
785 }
786
787 blink::WebPoint BlinkTestRunner::ConvertDIPToNative( 783 blink::WebPoint BlinkTestRunner::ConvertDIPToNative(
788 const blink::WebPoint& point_in_dip) const { 784 const blink::WebPoint& point_in_dip) const {
789 float scale = render_view()->GetDeviceScaleFactorForTest(); 785 float scale = render_view()->GetDeviceScaleFactorForTest();
790 return blink::WebPoint(point_in_dip.x * scale, 786 return blink::WebPoint(point_in_dip.x * scale,
791 point_in_dip.y * scale); 787 point_in_dip.y * scale);
792 } 788 }
793 789
794 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack( 790 bool BlinkTestRunner::AddMediaStreamVideoSourceAndTrack(
795 blink::WebMediaStream* stream) { 791 blink::WebMediaStream* stream) {
796 DCHECK(stream); 792 DCHECK(stream);
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
1066 get_bluetooth_events_callbacks_.pop_front(); 1062 get_bluetooth_events_callbacks_.pop_front();
1067 callback.Run(events); 1063 callback.Run(events);
1068 } 1064 }
1069 1065
1070 void BlinkTestRunner::ReportLeakDetectionResult( 1066 void BlinkTestRunner::ReportLeakDetectionResult(
1071 const LeakDetectionResult& report) { 1067 const LeakDetectionResult& report) {
1072 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1068 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1073 } 1069 }
1074 1070
1075 } // namespace content 1071 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698