node_bindings_mac.h 735 B

12345678910111213141516171819202122232425262728293031
  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 ATOM_COMMON_NODE_BINDINGS_MAC_H_
  5. #define ATOM_COMMON_NODE_BINDINGS_MAC_H_
  6. #include "atom/common/node_bindings.h"
  7. #include "base/compiler_specific.h"
  8. namespace atom {
  9. class NodeBindingsMac : public NodeBindings {
  10. public:
  11. explicit NodeBindingsMac(bool is_browser);
  12. virtual ~NodeBindingsMac();
  13. void RunMessageLoop() override;
  14. private:
  15. // Called when uv's watcher queue changes.
  16. static void OnWatcherQueueChanged(uv_loop_t* loop);
  17. void PollEvents() override;
  18. DISALLOW_COPY_AND_ASSIGN(NodeBindingsMac);
  19. };
  20. } // namespace atom
  21. #endif // ATOM_COMMON_NODE_BINDINGS_MAC_H_