naiveproxy/services/device/public/mojom/geolocation_context.mojom

25 lines
900 B
Plaintext
Raw Normal View History

2018-12-10 05:59:24 +03:00
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
module device.mojom;
import "services/device/public/mojom/geolocation.mojom";
import "services/device/public/mojom/geoposition.mojom";
// GeolocationContext provides methods to bind Geolocation instance and to
// set/clear overrides of geoposition that will apply to all Geolocation
// instances created by this context.
interface GeolocationContext {
// Creates a Geolocation instance that is bound to the |request|.
BindGeolocation(Geolocation& request);
// Enables geolocation override. This method can be used to trigger possible
// location-specific behavior in GeolocationImpl created by this
// GeolocationContext.
SetOverride(Geoposition geoposition);
// Disables geolocation override.
ClearOverride();
};