OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 "config.h" |
| 6 #include "modules/geolocation/GeofencingController.h" |
| 7 |
| 8 #include "public/platform/WebGeofencingClient.h" |
| 9 #include "wtf/PassOwnPtr.h" |
| 10 |
| 11 namespace WebCore { |
| 12 |
| 13 GeofencingController::GeofencingController(blink::WebGeofencingClient* client) |
| 14 : m_client(client) |
| 15 { |
| 16 } |
| 17 |
| 18 PassOwnPtrWillBeRawPtr<GeofencingController> GeofencingController::create(blink:
:WebGeofencingClient* client) |
| 19 { |
| 20 return adoptPtrWillBeNoop(new GeofencingController(client)); |
| 21 } |
| 22 |
| 23 blink::WebGeofencingClient* GeofencingController::clientFrom(LocalFrame* frame) |
| 24 { |
| 25 if (GeofencingController* controller = GeofencingController::from(frame)) |
| 26 return controller->client(); |
| 27 return 0; |
| 28 } |
| 29 |
| 30 const char* GeofencingController::supplementName() |
| 31 { |
| 32 return "GeofencingController"; |
| 33 } |
| 34 |
| 35 void provideGeofencingControllerTo(LocalFrame& frame, blink::WebGeofencingClient
* client) |
| 36 { |
| 37 GeofencingController::provideTo(frame, GeofencingController::supplementName(
), GeofencingController::create(client)); |
| 38 } |
| 39 |
| 40 } // namespace WebCore |
OLD | NEW |