mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-28 16:26:10 +03:00
25 lines
900 B
Plaintext
25 lines
900 B
Plaintext
|
// 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();
|
||
|
};
|