node_bindings_linux.h 625 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 "shell/common/node_bindings.h"
  7. namespace electron {
  8. class NodeBindingsLinux : public NodeBindings {
  9. public:
  10. explicit NodeBindingsLinux(BrowserEnvironment browser_env);
  11. private:
  12. // NodeBindings
  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_