node_bindings_win.h 787 B

1234567891011121314151617181920212223242526272829303132
  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 SHELL_COMMON_NODE_BINDINGS_WIN_H_
  5. #define SHELL_COMMON_NODE_BINDINGS_WIN_H_
  6. #include "base/compiler_specific.h"
  7. #include "shell/common/node_bindings.h"
  8. namespace electron {
  9. class NodeBindingsWin : public NodeBindings {
  10. public:
  11. explicit NodeBindingsWin(BrowserEnvironment browser_env);
  12. ~NodeBindingsWin() override;
  13. void PrepareMessageLoop() override;
  14. void RunMessageLoop() override;
  15. private:
  16. void PollEvents() override;
  17. // Indicates whether polling thread has been created.
  18. bool initialized_ = false;
  19. DISALLOW_COPY_AND_ASSIGN(NodeBindingsWin);
  20. };
  21. } // namespace electron
  22. #endif // SHELL_COMMON_NODE_BINDINGS_WIN_H_