Update the name and datatype of AMB object
[profile/ivi/automotive-message-broker.git] / xwalk / vehicle_extension.cc
1 // Copyright (c) 2014 Intel Corporation. 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 "vehicle_extension.h"
6
7 #include "vehicle_instance.h"
8
9 common::Extension* CreateExtension() {
10   return new VehicleExtension();
11 }
12
13 extern const char kSource_vehicle_api[];
14
15 VehicleExtension::VehicleExtension() {
16   SetExtensionName("navigator.vehicle");
17   SetJavaScriptAPI(kSource_vehicle_api);
18
19   const char* entry_points[] = {"Zone", NULL};
20
21   SetExtraJSEntryPoints(entry_points);
22 }
23
24 VehicleExtension::~VehicleExtension() {
25 }
26
27 common::Instance* VehicleExtension::CreateInstance() {
28   return new VehicleInstance;
29 }