node_bindings_mac.h 725 B

123456789101112131415161718192021222324252627282930
  1. // Copyright (c) 2013 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_MAC_H_
  5. #define ELECTRON_SHELL_COMMON_NODE_BINDINGS_MAC_H_
  6. #include "base/compiler_specific.h"
  7. #include "shell/common/node_bindings.h"
  8. namespace electron {
  9. class NodeBindingsMac : public NodeBindings {
  10. public:
  11. explicit NodeBindingsMac(BrowserEnvironment browser_env);
  12. ~NodeBindingsMac() override;
  13. void PrepareMessageLoop() override;
  14. void RunMessageLoop() override;
  15. private:
  16. void PollEvents() override;
  17. // uv's backend fd.
  18. int handle_ = -1;
  19. };
  20. } // namespace electron
  21. #endif // ELECTRON_SHELL_COMMON_NODE_BINDINGS_MAC_H_