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

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

Issue 659043003: Implement the ability to layout test Web Worker-based Notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 6 years, 1 month 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/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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 void WebKitTestRunner::GrantWebNotificationPermission(const GURL& origin, 424 void WebKitTestRunner::GrantWebNotificationPermission(const GURL& origin,
425 bool permission_granted) { 425 bool permission_granted) {
426 Send(new ShellViewHostMsg_GrantWebNotificationPermission( 426 Send(new ShellViewHostMsg_GrantWebNotificationPermission(
427 routing_id(), origin, permission_granted)); 427 routing_id(), origin, permission_granted));
428 } 428 }
429 429
430 void WebKitTestRunner::ClearWebNotificationPermissions() { 430 void WebKitTestRunner::ClearWebNotificationPermissions() {
431 Send(new ShellViewHostMsg_ClearWebNotificationPermissions(routing_id())); 431 Send(new ShellViewHostMsg_ClearWebNotificationPermissions(routing_id()));
432 } 432 }
433 433
434 void WebKitTestRunner::SimulateWebNotificationClick(const std::string& title) {
435 Send(new ShellViewHostMsg_SimulateWebNotificationClick(routing_id(), title));
436 }
437
434 void WebKitTestRunner::SetDeviceScaleFactor(float factor) { 438 void WebKitTestRunner::SetDeviceScaleFactor(float factor) {
435 content::SetDeviceScaleFactor(render_view(), factor); 439 content::SetDeviceScaleFactor(render_view(), factor);
436 } 440 }
437 441
438 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) { 442 void WebKitTestRunner::SetDeviceColorProfile(const std::string& name) {
439 content::SetDeviceColorProfile(render_view(), name); 443 content::SetDeviceColorProfile(render_view(), name);
440 } 444 }
441 445
442 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) { 446 void WebKitTestRunner::SetFocus(WebTestProxyBase* proxy, bool focus) {
443 ProxyToRenderViewVisitor visitor(proxy); 447 ProxyToRenderViewVisitor visitor(proxy);
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 753
750 leak_detector_->TryLeakDetection(main_frame); 754 leak_detector_->TryLeakDetection(main_frame);
751 } 755 }
752 756
753 void WebKitTestRunner::ReportLeakDetectionResult( 757 void WebKitTestRunner::ReportLeakDetectionResult(
754 const LeakDetectionResult& report) { 758 const LeakDetectionResult& report) {
755 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 759 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
756 } 760 }
757 761
758 } // namespace content 762 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/webkit_test_runner.h ('k') | content/shell/renderer/test_runner/test_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698