OLD | NEW |
| (Empty) |
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. | |
4 | |
5 #include "base/macros.h" | |
6 #include "base/memory/scoped_ptr.h" | |
7 #include "third_party/WebKit/public/web/WebGeolocationClient.h" | |
8 | |
9 namespace html_viewer { | |
10 | |
11 class GeolocationClientImpl : public blink::WebGeolocationClient { | |
12 public: | |
13 GeolocationClientImpl(); | |
14 ~GeolocationClientImpl() override; | |
15 | |
16 // WebGeolocationClient methods: | |
17 void startUpdating() override; | |
18 void stopUpdating() override; | |
19 void setEnableHighAccuracy(bool) override; | |
20 bool lastPosition(blink::WebGeolocationPosition&) override; | |
21 void requestPermission( | |
22 const blink::WebGeolocationPermissionRequest&) override; | |
23 void cancelPermissionRequest( | |
24 const blink::WebGeolocationPermissionRequest&) override; | |
25 void setController(blink::WebGeolocationController* controller) override; | |
26 | |
27 private: | |
28 scoped_ptr<blink::WebGeolocationController> controller_; | |
29 | |
30 DISALLOW_COPY_AND_ASSIGN(GeolocationClientImpl); | |
31 }; | |
32 | |
33 } // namespace html_viewer | |
OLD | NEW |