node_bindings_linux.h 643 B

1234567891011121314151617181920212223242526
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #ifndef ELECTRON_SHELL_COMMON_NODE_BINDINGS_LINUX_H_
  5. #define ELECTRON_SHELL_COMMON_NODE_BINDINGS_LINUX_H_
  6. #include "base/compiler_specific.h"
  7. #include "shell/common/node_bindings.h"
  8. namespace electron {
  9. class NodeBindingsLinux : public NodeBindings {
  10. public:
  11. explicit NodeBindingsLinux(BrowserEnvironment browser_env);
  12. private:
  13. void PollEvents() override;
  14. // Epoll to poll for uv's backend fd.
  15. int epoll_;
  16. };
  17. } // namespace electron
  18. #endif // ELECTRON_SHELL_COMMON_NODE_BINDINGS_LINUX_H_