Add our own built-in native module system.
This commit is contained in:
parent
3c96007131
commit
0f6ece2d27
12 changed files with 217 additions and 5 deletions
15
browser/api/atom_window.cc
Normal file
15
browser/api/atom_window.cc
Normal file
|
@ -0,0 +1,15 @@
|
|||
// Copyright (c) 2013 GitHub, Inc. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "browser/api/atom_window.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
static void Initialize(v8::Handle<v8::Object> target) {
|
||||
target->Set(v8::String::New("hello"), v8::String::New("world"));
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
||||
NODE_MODULE(atom_window, atom::Initialize)
|
Loading…
Add table
Add a link
Reference in a new issue