Changeset 27608 in webkit for trunk/JavaScriptCore/kjs/date_object.h
- Timestamp:
- Nov 8, 2007, 12:31:26 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.h
r21889 r27608 24 24 #include "function.h" 25 25 #include "JSWrapperObject.h" 26 #include "lookup.h" 26 27 27 28 namespace KJS { … … 65 66 * Date.prototype object 66 67 */ 67 class DateProtoFunc : public InternalFunctionImp {68 public:69 DateProtoFunc(ExecState *, int i, int len, const Identifier& date);68 69 // Non-normative properties (Appendix B) 70 // GetYear, SetYear, ToGMTString 70 71 71 virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args); 72 #define FOR_EACH_CLASS(macro) \ 73 macro(DateProtoFuncToString) \ 74 macro(DateProtoFuncToUTCString) \ 75 macro(DateProtoFuncToDateString) \ 76 macro(DateProtoFuncToTimeString) \ 77 macro(DateProtoFuncToLocaleString) \ 78 macro(DateProtoFuncToLocaleDateString) \ 79 macro(DateProtoFuncToLocaleTimeString) \ 80 macro(DateProtoFuncValueOf) \ 81 macro(DateProtoFuncGetTime) \ 82 macro(DateProtoFuncGetFullYear) \ 83 macro(DateProtoFuncGetUTCFullYear) \ 84 macro(DateProtoFuncToGMTString) \ 85 macro(DateProtoFuncGetMonth) \ 86 macro(DateProtoFuncGetUTCMonth) \ 87 macro(DateProtoFuncGetDate) \ 88 macro(DateProtoFuncGetUTCDate) \ 89 macro(DateProtoFuncGetDay) \ 90 macro(DateProtoFuncGetUTCDay) \ 91 macro(DateProtoFuncGetHours) \ 92 macro(DateProtoFuncGetUTCHours) \ 93 macro(DateProtoFuncGetMinutes) \ 94 macro(DateProtoFuncGetUTCMinutes) \ 95 macro(DateProtoFuncGetSeconds) \ 96 macro(DateProtoFuncGetUTCSeconds) \ 97 macro(DateProtoFuncGetMilliSeconds) \ 98 macro(DateProtoFuncGetUTCMilliseconds) \ 99 macro(DateProtoFuncGetTimezoneOffset) \ 100 macro(DateProtoFuncSetTime) \ 101 macro(DateProtoFuncSetMilliSeconds) \ 102 macro(DateProtoFuncSetUTCMilliseconds) \ 103 macro(DateProtoFuncSetSeconds) \ 104 macro(DateProtoFuncSetUTCSeconds) \ 105 macro(DateProtoFuncSetMinutes) \ 106 macro(DateProtoFuncSetUTCMinutes) \ 107 macro(DateProtoFuncSetHours) \ 108 macro(DateProtoFuncSetUTCHours) \ 109 macro(DateProtoFuncSetDate) \ 110 macro(DateProtoFuncSetUTCDate) \ 111 macro(DateProtoFuncSetMonth) \ 112 macro(DateProtoFuncSetUTCMonth) \ 113 macro(DateProtoFuncSetFullYear) \ 114 macro(DateProtoFuncSetUTCFullYear) \ 115 macro(DateProtoFuncSetYear) \ 116 macro(DateProtoFuncGetYear) \ 72 117 73 enum { ToString, ToDateString, ToTimeString, ToLocaleString, 74 ToLocaleDateString, ToLocaleTimeString, ValueOf, GetTime, 75 GetFullYear, GetMonth, GetDate, GetDay, GetHours, GetMinutes, 76 GetSeconds, GetMilliSeconds, GetTimezoneOffset, SetTime, 77 SetMilliSeconds, SetSeconds, SetMinutes, SetHours, SetDate, 78 SetMonth, SetFullYear, ToUTCString, 79 // non-normative properties (Appendix B) 80 GetYear, SetYear, ToGMTString }; 81 private: 82 int id; 83 bool utc; 84 }; 118 FOR_EACH_CLASS(KJS_IMPLEMENT_PROTOTYPE_FUNCTION_WITH_CREATE) 119 #undef FOR_EACH_CLASS 120 85 121 86 122 /**
Note:
See TracChangeset
for help on using the changeset viewer.