forked from adamlaska/electron
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode_bindings_linux.h
More file actions
34 lines (23 loc) · 832 Bytes
/
node_bindings_linux.h
File metadata and controls
34 lines (23 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#ifndef SHELL_COMMON_NODE_BINDINGS_LINUX_H_
#define SHELL_COMMON_NODE_BINDINGS_LINUX_H_
#include "base/compiler_specific.h"
#include "shell/common/node_bindings.h"
namespace electron {
class NodeBindingsLinux : public NodeBindings {
public:
explicit NodeBindingsLinux(BrowserEnvironment browser_env);
~NodeBindingsLinux() override;
void RunMessageLoop() override;
private:
// Called when uv's watcher queue changes.
static void OnWatcherQueueChanged(uv_loop_t* loop);
void PollEvents() override;
// Epoll to poll for uv's backend fd.
int epoll_;
DISALLOW_COPY_AND_ASSIGN(NodeBindingsLinux);
};
} // namespace electron
#endif // SHELL_COMMON_NODE_BINDINGS_LINUX_H_