Internal built-in module code should be wrapped under api namespace.

This commit is contained in:
Cheng Zhao 2013-04-15 23:01:12 +08:00
parent ef2056c3f5
commit 488d72e41b
6 changed files with 21 additions and 15 deletions

View 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_api_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_api_window, atom::Initialize)