Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <asl.h> | 5 #include <asl.h> |
| 6 #import <Foundation/Foundation.h> | 6 #import <Foundation/Foundation.h> |
| 7 #include <libgen.h> | 7 #include <libgen.h> |
| 8 #include <stdarg.h> | 8 #include <stdarg.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 | 10 |
| 11 // An executable (iossim) that runs an app in the iOS Simulator. | 11 // An executable (iossim) that runs an app in the iOS Simulator. |
| 12 // Run 'iossim -h' for usage information. | 12 // Run 'iossim -h' for usage information. |
| 13 // | 13 // |
| 14 // For best results, the iOS Simulator application should not be running when | 14 // For best results, the iOS Simulator application should not be running when |
| 15 // iossim is invoked. | 15 // iossim is invoked. |
| 16 // | 16 // |
| 17 // Headers for iPhoneSimulatorRemoteClient and other frameworks used in this | 17 // Headers for iPhoneSimulatorRemoteClient and other frameworks used in this |
| 18 // tool are generated by class-dump, via GYP. | 18 // tool are generated by class-dump, via GYP. |
| 19 // (class-dump is available at http://www.codethecode.com/projects/class-dump/) | 19 // (class-dump is available at http://www.codethecode.com/projects/class-dump/) |
| 20 // | 20 // |
| 21 // However, there are some forward declarations required to get things to | 21 // However, there are some forward declarations required to get things to |
| 22 // compile. | 22 // compile. |
| 23 | 23 |
| 24 // TODO(crbug.com/619982): The latest Xcode beta does not include the proper | |
| 25 // headers to use or compile iossim. Define them here so iossim can compile for | |
| 26 // now. Unwind this #ifdef if future betas work, or replace and remove iossim. | |
| 27 #if defined(__MAC_10_12) && __MAC_OS_X_VERSION_MAX_ALLOWED >= __MAC_10_12 | |
|
rohitrao (ping after 24h)
2016/06/16 14:50:17
I would split this block into two, putting one at
justincohen
2016/06/16 15:07:07
Done.
| |
| 28 @class NSPasteboardItem; | |
|
rohitrao (ping after 24h)
2016/06/16 14:50:17
You should at least be able to get NSPasteboardIte
justincohen
2016/06/16 15:07:07
Done.
| |
| 29 @class SimDevice; | |
| 30 @class SimDeviceNotificationManager; | |
| 31 @class SimDevicePasteboardConnection; | |
| 32 @class SimMachPortServer; | |
| 33 @class SimPasteboardItem; | |
| 34 @class SimRuntime; | |
| 35 @interface DTiPhoneSimulatorSystemRoot : NSObject<NSCopying> { | |
| 36 SimRuntime* _runtime; | |
| 37 } | |
| 38 + (id)rootWithSDKVersion:(id)arg1; | |
| 39 @property(readonly) SimRuntime* runtime; | |
| 40 @property(readonly, copy) NSString* sdkVersion; | |
| 41 @end | |
| 42 #endif | |
| 43 | |
| 24 @class DVTStackBacktrace; | 44 @class DVTStackBacktrace; |
| 25 #import "DVTFoundation.h" | 45 #import "DVTFoundation.h" |
| 26 | 46 |
| 27 @protocol SimBridge; | 47 @protocol SimBridge; |
| 28 @class DVTSimulatorApplication; | 48 @class DVTSimulatorApplication; |
| 29 @class SimDeviceSet; | 49 @class SimDeviceSet; |
| 30 @class SimDeviceType; | 50 @class SimDeviceType; |
| 31 @class SimProfilesPathMonitor; | 51 @class SimProfilesPathMonitor; |
| 32 @class SimRuntime; | 52 @class SimRuntime; |
| 33 @class SimServiceConnectionManager; | 53 @class SimServiceConnectionManager; |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 858 [error localizedDescription], | 878 [error localizedDescription], |
| 859 [error domain], static_cast<long int>([error code])); | 879 [error domain], static_cast<long int>([error code])); |
| 860 } | 880 } |
| 861 | 881 |
| 862 // Note that this code is only executed if the simulator fails to start | 882 // Note that this code is only executed if the simulator fails to start |
| 863 // because once the main run loop is started, only the delegate calling | 883 // because once the main run loop is started, only the delegate calling |
| 864 // exit() will end the program. | 884 // exit() will end the program. |
| 865 [pool drain]; | 885 [pool drain]; |
| 866 return kExitFailure; | 886 return kExitFailure; |
| 867 } | 887 } |
| OLD | NEW |