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

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

Issue 2357043003: Remove WebCallbackTask (Closed)
Patch Set: fix Created 4 years, 3 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
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 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 void BlinkTestRunner::SetDeviceOrientationData( 287 void BlinkTestRunner::SetDeviceOrientationData(
288 const WebDeviceOrientationData& data) { 288 const WebDeviceOrientationData& data) {
289 SetMockDeviceOrientationData(data); 289 SetMockDeviceOrientationData(data);
290 } 290 }
291 291
292 void BlinkTestRunner::PrintMessage(const std::string& message) { 292 void BlinkTestRunner::PrintMessage(const std::string& message) {
293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message)); 293 Send(new ShellViewHostMsg_PrintMessage(routing_id(), message));
294 } 294 }
295 295
296 void BlinkTestRunner::PostTask(blink::WebTaskRunner::Task* task) { 296 void BlinkTestRunner::PostTask(const base::Closure& task) {
297 Platform::current()->currentThread()->getWebTaskRunner()->postTask( 297 Platform::current()->currentThread()->getWebTaskRunner()->postTask(
298 BLINK_FROM_HERE, task); 298 BLINK_FROM_HERE, task);
299 } 299 }
300 300
301 void BlinkTestRunner::PostDelayedTask(blink::WebTaskRunner::Task* task, 301 void BlinkTestRunner::PostDelayedTask(const base::Closure& task,
302 long long ms) { 302 long long ms) {
303 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask( 303 Platform::current()->currentThread()->getWebTaskRunner()->postDelayedTask(
304 BLINK_FROM_HERE, task, ms); 304 BLINK_FROM_HERE, task, ms);
305 } 305 }
306 306
307 WebString BlinkTestRunner::RegisterIsolatedFileSystem( 307 WebString BlinkTestRunner::RegisterIsolatedFileSystem(
308 const blink::WebVector<blink::WebString>& absolute_filenames) { 308 const blink::WebVector<blink::WebString>& absolute_filenames) {
309 std::vector<base::FilePath> files; 309 std::vector<base::FilePath> files;
310 for (size_t i = 0; i < absolute_filenames.size(); ++i) 310 for (size_t i = 0; i < absolute_filenames.size(); ++i)
311 files.push_back(blink::WebStringToFilePath(absolute_filenames[i])); 311 files.push_back(blink::WebStringToFilePath(absolute_filenames[i]));
(...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 void BlinkTestRunner::ReportLeakDetectionResult( 1008 void BlinkTestRunner::ReportLeakDetectionResult(
1009 const LeakDetectionResult& report) { 1009 const LeakDetectionResult& report) {
1010 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1010 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1011 } 1011 }
1012 1012
1013 void BlinkTestRunner::OnDestruct() { 1013 void BlinkTestRunner::OnDestruct() {
1014 delete this; 1014 delete this;
1015 } 1015 }
1016 1016
1017 } // namespace content 1017 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698