linux: Add dummy implementation of node bindings.
This commit is contained in:
parent
e3d5b62000
commit
526aaecc52
3 changed files with 70 additions and 0 deletions
24
common/node_bindings_linux.cc
Normal file
24
common/node_bindings_linux.cc
Normal file
|
@ -0,0 +1,24 @@
|
|||
// Copyright (c) 2014 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 "common/node_bindings_linux.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
NodeBindingsLinux::NodeBindingsLinux(bool is_browser)
|
||||
: NodeBindings(is_browser) {
|
||||
}
|
||||
|
||||
NodeBindingsLinux::~NodeBindingsLinux() {
|
||||
}
|
||||
|
||||
void NodeBindingsLinux::PollEvents() {
|
||||
}
|
||||
|
||||
// static
|
||||
NodeBindings* NodeBindings::Create(bool is_browser) {
|
||||
return new NodeBindingsLinux(is_browser);
|
||||
}
|
||||
|
||||
} // namespace at
|
26
common/node_bindings_linux.h
Normal file
26
common/node_bindings_linux.h
Normal file
|
@ -0,0 +1,26 @@
|
|||
// Copyright (c) 2014 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.
|
||||
|
||||
#ifndef ATOM_COMMON_NODE_BINDINGS_LINUX_H_
|
||||
#define ATOM_COMMON_NODE_BINDINGS_LINUX_H_
|
||||
|
||||
#include "base/compiler_specific.h"
|
||||
#include "common/node_bindings.h"
|
||||
|
||||
namespace atom {
|
||||
|
||||
class NodeBindingsLinux : public NodeBindings {
|
||||
public:
|
||||
explicit NodeBindingsLinux(bool is_browser);
|
||||
virtual ~NodeBindingsLinux();
|
||||
|
||||
private:
|
||||
virtual void PollEvents() OVERRIDE;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(NodeBindingsLinux);
|
||||
};
|
||||
|
||||
} // namespace atom
|
||||
|
||||
#endif // ATOM_COMMON_NODE_BINDINGS_LINUX_H_
|
Loading…
Add table
Add a link
Reference in a new issue