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.
5 #include "vehicle_extension.h"
7 #include "vehicle_instance.h"
9 common::Extension* CreateExtension() {
10 return new VehicleExtension();
13 extern const char kSource_vehicle_api[];
15 VehicleExtension::VehicleExtension() {
16 SetExtensionName("navigator.vehicle");
17 SetJavaScriptAPI(kSource_vehicle_api);
19 const char* entry_points[] = {"Zone", NULL};
21 SetExtraJSEntryPoints(entry_points);
24 VehicleExtension::~VehicleExtension() {
27 common::Instance* VehicleExtension::CreateInstance() {
28 return new VehicleInstance;