naiveproxy/device/geolocation/public/interfaces/geolocation_context.mojom
2018-02-02 05:49:39 -05:00

25 lines
916 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 "device/geolocation/public/interfaces/geolocation.mojom";
import "device/geolocation/public/interfaces/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();
};