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

Side by Side Diff: third_party/WebKit/LayoutTests/geolocation-api/resources/geolocation-mock.js

Issue 2671933003: Move Geolocation out from fast/dom. (Closed)
Patch Set: . Created 3 years, 10 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 /* 1 /*
2 * geolocation-mock contains a mock implementation of GeolocationService and 2 * geolocation-mock contains a mock implementation of GeolocationService and
3 * PermissionService. 3 * PermissionService.
4 */ 4 */
5 5
6 "use strict"; 6 "use strict";
7 7
8 let geolocationServiceMock = loadMojoModules( 8 let geolocationServiceMock = loadMojoModules(
9 'geolocationServiceMock', 9 'geolocationServiceMock',
10 ['device/geolocation/public/interfaces/geolocation.mojom', 10 ['device/geolocation/public/interfaces/geolocation.mojom',
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 setGeolocationPermission(allowed) { 177 setGeolocationPermission(allowed) {
178 this.permissionStatus_ = allowed ? 178 this.permissionStatus_ = allowed ?
179 permissionStatus.PermissionStatus.GRANTED : 179 permissionStatus.PermissionStatus.GRANTED :
180 permissionStatus.PermissionStatus.DENIED; 180 permissionStatus.PermissionStatus.DENIED;
181 this.runPermissionCallback_(); 181 this.runPermissionCallback_();
182 } 182 }
183 183
184 } 184 }
185 return new GeolocationServiceMock(mojo.frameInterfaces); 185 return new GeolocationServiceMock(mojo.frameInterfaces);
186 }); 186 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698