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

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

Issue 395883002: Support layout testing Web Notifications from Document and Worker contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another rebase Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/renderer/webkit_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/webkit_test_runner.h" 5 #include "content/shell/renderer/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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 } 403 }
404 404
405 void WebKitTestRunner::clearAllDatabases() { 405 void WebKitTestRunner::clearAllDatabases() {
406 Send(new ShellViewHostMsg_ClearAllDatabases(routing_id())); 406 Send(new ShellViewHostMsg_ClearAllDatabases(routing_id()));
407 } 407 }
408 408
409 void WebKitTestRunner::setDatabaseQuota(int quota) { 409 void WebKitTestRunner::setDatabaseQuota(int quota) {
410 Send(new ShellViewHostMsg_SetDatabaseQuota(routing_id(), quota)); 410 Send(new ShellViewHostMsg_SetDatabaseQuota(routing_id(), quota));
411 } 411 }
412 412
413 blink::WebNotificationPresenter::Permission
414 WebKitTestRunner::checkWebNotificationPermission(const GURL& origin) {
415 int permission = blink::WebNotificationPresenter::PermissionNotAllowed;
416 Send(new ShellViewHostMsg_CheckWebNotificationPermission(
417 routing_id(),
418 origin,
419 &permission));
420 return static_cast<blink::WebNotificationPresenter::Permission>(permission);
421 }
422
423 void WebKitTestRunner::grantWebNotificationPermission(const GURL& origin,
424 bool permission_granted) {
425 Send(new ShellViewHostMsg_GrantWebNotificationPermission(
426 routing_id(), origin, permission_granted));
427 }
428
429 void WebKitTestRunner::clearWebNotificationPermissions() {
430 Send(new ShellViewHostMsg_ClearWebNotificationPermissions(routing_id()));
431 }
432
413 void WebKitTestRunner::setDeviceScaleFactor(float factor) { 433 void WebKitTestRunner::setDeviceScaleFactor(float factor) {
414 SetDeviceScaleFactor(render_view(), factor); 434 SetDeviceScaleFactor(render_view(), factor);
415 } 435 }
416 436
417 void WebKitTestRunner::setDeviceColorProfile(const std::string& name) { 437 void WebKitTestRunner::setDeviceColorProfile(const std::string& name) {
418 SetDeviceColorProfile(render_view(), name); 438 SetDeviceColorProfile(render_view(), name);
419 } 439 }
420 440
421 void WebKitTestRunner::setFocus(WebTestProxyBase* proxy, bool focus) { 441 void WebKitTestRunner::setFocus(WebTestProxyBase* proxy, bool focus) {
422 ProxyToRenderViewVisitor visitor(proxy); 442 ProxyToRenderViewVisitor visitor(proxy);
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 742
723 leak_detector_->TryLeakDetection(main_frame); 743 leak_detector_->TryLeakDetection(main_frame);
724 } 744 }
725 745
726 void WebKitTestRunner::ReportLeakDetectionResult( 746 void WebKitTestRunner::ReportLeakDetectionResult(
727 const LeakDetectionResult& report) { 747 const LeakDetectionResult& report) {
728 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 748 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
729 } 749 }
730 750
731 } // namespace content 751 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/webkit_test_runner.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698