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_H_ | 5 #ifndef BIN_EVENTHANDLER_H_ |
6 #define BIN_EVENTHANDLER_H_ | 6 #define 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 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 } // namespace bin | 592 } // namespace bin |
593 } // namespace dart | 593 } // namespace dart |
594 | 594 |
595 // The event handler delegation class is OS specific. | 595 // The event handler delegation class is OS specific. |
596 #if defined(TARGET_OS_ANDROID) | 596 #if defined(TARGET_OS_ANDROID) |
597 #include "bin/eventhandler_android.h" | 597 #include "bin/eventhandler_android.h" |
598 #elif defined(TARGET_OS_LINUX) | 598 #elif defined(TARGET_OS_LINUX) |
599 #include "bin/eventhandler_linux.h" | 599 #include "bin/eventhandler_linux.h" |
600 #elif defined(TARGET_OS_MACOS) | 600 #elif defined(TARGET_OS_MACOS) |
601 #include "bin/eventhandler_macos.h" | 601 #include "bin/eventhandler_macos.h" |
| 602 #elif defined(TARGET_OS_OPENBSD) |
| 603 #include "bin/eventhandler_openbsd.h" |
602 #elif defined(TARGET_OS_WINDOWS) | 604 #elif defined(TARGET_OS_WINDOWS) |
603 #include "bin/eventhandler_win.h" | 605 #include "bin/eventhandler_win.h" |
604 #else | 606 #else |
605 #error Unknown target os. | 607 #error Unknown target os. |
606 #endif | 608 #endif |
607 | 609 |
608 namespace dart { | 610 namespace dart { |
609 namespace bin { | 611 namespace bin { |
610 | 612 |
611 class EventHandler { | 613 class EventHandler { |
(...skipping 22 matching lines...) Expand all Loading... |
634 | 636 |
635 private: | 637 private: |
636 friend class EventHandlerImplementation; | 638 friend class EventHandlerImplementation; |
637 EventHandlerImplementation delegate_; | 639 EventHandlerImplementation delegate_; |
638 }; | 640 }; |
639 | 641 |
640 } // namespace bin | 642 } // namespace bin |
641 } // namespace dart | 643 } // namespace dart |
642 | 644 |
643 #endif // BIN_EVENTHANDLER_H_ | 645 #endif // BIN_EVENTHANDLER_H_ |
OLD | NEW |