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 RUNTIME_BIN_EVENTHANDLER_H_ | 5 #ifndef RUNTIME_BIN_EVENTHANDLER_H_ |
6 #define RUNTIME_BIN_EVENTHANDLER_H_ | 6 #define RUNTIME_BIN_EVENTHANDLER_H_ |
7 | 7 |
8 #include "bin/builtin.h" | 8 #include "bin/builtin.h" |
9 #include "bin/dartutils.h" | 9 #include "bin/dartutils.h" |
10 #include "bin/isolate_data.h" | 10 #include "bin/isolate_data.h" |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 static void Start(); | 640 static void Start(); |
641 | 641 |
642 /** | 642 /** |
643 * Stop the event-handler. It's expected that there will be no further calls | 643 * Stop the event-handler. It's expected that there will be no further calls |
644 * to SendData after a call to Stop. | 644 * to SendData after a call to Stop. |
645 */ | 645 */ |
646 static void Stop(); | 646 static void Stop(); |
647 | 647 |
648 static EventHandlerImplementation* delegate(); | 648 static EventHandlerImplementation* delegate(); |
649 | 649 |
| 650 static void SendFromNative(intptr_t id, Dart_Port port, int64_t data); |
| 651 |
650 private: | 652 private: |
651 friend class EventHandlerImplementation; | 653 friend class EventHandlerImplementation; |
652 EventHandlerImplementation delegate_; | 654 EventHandlerImplementation delegate_; |
653 | 655 |
654 DISALLOW_COPY_AND_ASSIGN(EventHandler); | 656 DISALLOW_COPY_AND_ASSIGN(EventHandler); |
655 }; | 657 }; |
656 | 658 |
657 } // namespace bin | 659 } // namespace bin |
658 } // namespace dart | 660 } // namespace dart |
659 | 661 |
660 #endif // RUNTIME_BIN_EVENTHANDLER_H_ | 662 #endif // RUNTIME_BIN_EVENTHANDLER_H_ |
OLD | NEW |