Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(658)

Side by Side Diff: Source/modules/geolocation/GeofencingController.cpp

Issue 393533002: Pass through the geofencing API calls to the content layer. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@geofencing2
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698