1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/html_viewer/geolocation_client_impl.h"
7 #include "base/logging.h"
8 #include "third_party/WebKit/public/web/WebGeolocationController.h"
10 namespace html_viewer
{
12 GeolocationClientImpl::GeolocationClientImpl() {
15 GeolocationClientImpl::~GeolocationClientImpl() {
18 void GeolocationClientImpl::startUpdating() {
22 void GeolocationClientImpl::stopUpdating() {
26 void GeolocationClientImpl::setEnableHighAccuracy(bool) {
30 bool GeolocationClientImpl::lastPosition(blink::WebGeolocationPosition
&) {
35 void GeolocationClientImpl::requestPermission(
36 const blink::WebGeolocationPermissionRequest
&) {
40 void GeolocationClientImpl::cancelPermissionRequest(
41 const blink::WebGeolocationPermissionRequest
&) {
45 void GeolocationClientImpl::setController(
46 blink::WebGeolocationController
* controller
) {
47 // Ownership of the WebGeolocationController is transferred to the client.
48 controller_
.reset(controller
);
51 } // namespace html_viewer