00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 @import <Foundation/CPObject.j>
00024
00025 #include "Platform.h"
00026
00027
00028 @implementation CPBasePlatform : CPObject
00029 {
00030 }
00031
00032 + (void)bootstrap
00033 {
00034 [CPPlatformString bootstrap];
00035 [CPPlatformWindow setPrimaryPlatformWindow:[[CPPlatformWindow alloc] _init]];
00036 }
00037
00038 + (BOOL)isBrowser
00039 {
00040 return NO;
00041 }
00042
00043 + (BOOL)supportsDragAndDrop
00044 {
00045 return NO;
00046 }
00047
00048 + (BOOL)supportsNativeMainMenu
00049 {
00050 return NO;
00051 }
00052
00053 + (void)terminateApplication
00054 {
00055 }
00056
00057 + (void)activateIgnoringOtherApps:(BOOL)shouldIgnoreOtherApps
00058 {
00059 }
00060
00061 + (void)deactivate
00062 {
00063 }
00064
00065 + (void)hideOtherApplications:(id)aSender
00066 {
00067 }
00068
00069 + (void)hide:(id)aSender
00070 {
00071 }
00072
00073 @end
00074
00075 #if PLATFORM(DOM)
00076 #include "DOM/CPPlatform.j"
00077 #else
00078 @implementation CPPlatform : CPBasePlatform
00079 {
00080 }
00081 @end
00082 #endif