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

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

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 #include <algorithm> 8 #include <algorithm>
9 #include <clocale> 9 #include <clocale>
10 #include <cmath> 10 #include <cmath>
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 const std::string& data)>& callback) { 698 const std::string& data)>& callback) {
699 ::content::FetchManifest(view, url, callback); 699 ::content::FetchManifest(view, url, callback);
700 } 700 }
701 701
702 void BlinkTestRunner::SetPermission(const std::string& name, 702 void BlinkTestRunner::SetPermission(const std::string& name,
703 const std::string& value, 703 const std::string& value,
704 const GURL& origin, 704 const GURL& origin,
705 const GURL& embedding_origin) { 705 const GURL& embedding_origin) {
706 content::PermissionStatus status; 706 content::PermissionStatus status;
707 if (value == "granted") 707 if (value == "granted")
708 status = PERMISSION_STATUS_GRANTED; 708 status = PermissionStatus::GRANTED;
709 else if (value == "prompt") 709 else if (value == "prompt")
710 status = PERMISSION_STATUS_ASK; 710 status = PermissionStatus::ASK;
711 else if (value == "denied") 711 else if (value == "denied")
712 status = PERMISSION_STATUS_DENIED; 712 status = PermissionStatus::DENIED;
713 else { 713 else {
714 NOTREACHED(); 714 NOTREACHED();
715 status = PERMISSION_STATUS_DENIED; 715 status = PermissionStatus::DENIED;
716 } 716 }
717 717
718 Send(new LayoutTestHostMsg_SetPermission( 718 Send(new LayoutTestHostMsg_SetPermission(
719 routing_id(), name, status, origin, embedding_origin)); 719 routing_id(), name, status, origin, embedding_origin));
720 } 720 }
721 721
722 void BlinkTestRunner::ResetPermissions() { 722 void BlinkTestRunner::ResetPermissions() {
723 Send(new LayoutTestHostMsg_ResetPermissions(routing_id())); 723 Send(new LayoutTestHostMsg_ResetPermissions(routing_id()));
724 } 724 }
725 725
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 get_bluetooth_events_callbacks_.pop_front(); 1006 get_bluetooth_events_callbacks_.pop_front();
1007 callback.Run(events); 1007 callback.Run(events);
1008 } 1008 }
1009 1009
1010 void BlinkTestRunner::ReportLeakDetectionResult( 1010 void BlinkTestRunner::ReportLeakDetectionResult(
1011 const LeakDetectionResult& report) { 1011 const LeakDetectionResult& report) {
1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1013 } 1013 }
1014 1014
1015 } // namespace content 1015 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/common/layout_test/layout_test_messages.h ('k') | device/devices_app/usb/device_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698