| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef BIN_EVENTHANDLER_WIN_H_ | 5 #ifndef BIN_EVENTHANDLER_WIN_H_ |
| 6 #define BIN_EVENTHANDLER_WIN_H_ | 6 #define BIN_EVENTHANDLER_WIN_H_ |
| 7 | 7 |
| 8 #if !defined(BIN_EVENTHANDLER_H_) | 8 #if !defined(BIN_EVENTHANDLER_H_) |
| 9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead. | 9 #error Do not include eventhandler_win.h directly; use eventhandler.h instead. |
| 10 #endif | 10 #endif |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 virtual void DoClose(); | 478 virtual void DoClose(); |
| 479 virtual bool IsClosed(); | 479 virtual bool IsClosed(); |
| 480 }; | 480 }; |
| 481 | 481 |
| 482 // Event handler. | 482 // Event handler. |
| 483 class EventHandlerImplementation { | 483 class EventHandlerImplementation { |
| 484 public: | 484 public: |
| 485 EventHandlerImplementation(); | 485 EventHandlerImplementation(); |
| 486 virtual ~EventHandlerImplementation(); | 486 virtual ~EventHandlerImplementation(); |
| 487 | 487 |
| 488 void SendData(intptr_t id, Dart_Port dart_port, int64_t data); | 488 void Notify(intptr_t id, Dart_Port dart_port, int64_t data); |
| 489 void Start(EventHandler* handler); | 489 void Start(EventHandler* handler); |
| 490 void Shutdown(); | 490 void Shutdown(); |
| 491 | 491 |
| 492 static void EventHandlerEntry(uword args); | 492 static void EventHandlerEntry(uword args); |
| 493 | 493 |
| 494 int64_t GetTimeout(); | 494 int64_t GetTimeout(); |
| 495 void HandleInterrupt(InterruptMessage* msg); | 495 void HandleInterrupt(InterruptMessage* msg); |
| 496 void HandleTimeout(); | 496 void HandleTimeout(); |
| 497 void HandleAccept(ListenSocket* listen_socket, OverlappedBuffer* buffer); | 497 void HandleAccept(ListenSocket* listen_socket, OverlappedBuffer* buffer); |
| 498 void HandleClosed(Handle* handle); | 498 void HandleClosed(Handle* handle); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 512 | 512 |
| 513 TimeoutQueue timeout_queue_; // Time for next timeout. | 513 TimeoutQueue timeout_queue_; // Time for next timeout. |
| 514 bool shutdown_; | 514 bool shutdown_; |
| 515 HANDLE completion_port_; | 515 HANDLE completion_port_; |
| 516 }; | 516 }; |
| 517 | 517 |
| 518 } // namespace bin | 518 } // namespace bin |
| 519 } // namespace dart | 519 } // namespace dart |
| 520 | 520 |
| 521 #endif // BIN_EVENTHANDLER_WIN_H_ | 521 #endif // BIN_EVENTHANDLER_WIN_H_ |
| OLD | NEW |