Changeset 14821 in webkit for trunk/JavaScriptCore/kjs/date_object.cpp
- Timestamp:
- Jun 12, 2006, 12:02:59 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/date_object.cpp
r14206 r14821 22 22 #include "config.h" 23 23 #include "date_object.h" 24 #include "date_object.lut.h" 24 25 25 26 #if HAVE(ERRNO_H) … … 50 51 51 52 #include "error_object.h" 52 #include "lookup.h"53 53 #include "operations.h" 54 54 … … 76 76 77 77 namespace KJS { 78 79 /**80 * @internal81 *82 * Class to implement all methods that are properties of the83 * Date.prototype object84 */85 class DateProtoFunc : public InternalFunctionImp {86 public:87 DateProtoFunc(ExecState *, int i, int len, const Identifier& date);88 89 virtual JSValue *callAsFunction(ExecState *, JSObject *thisObj, const List &args);90 91 enum { ToString, ToDateString, ToTimeString, ToLocaleString,92 ToLocaleDateString, ToLocaleTimeString, ValueOf, GetTime,93 GetFullYear, GetMonth, GetDate, GetDay, GetHours, GetMinutes,94 GetSeconds, GetMilliSeconds, GetTimezoneOffset, SetTime,95 SetMilliSeconds, SetSeconds, SetMinutes, SetHours, SetDate,96 SetMonth, SetFullYear, ToUTCString,97 // non-normative properties (Appendix B)98 GetYear, SetYear, ToGMTString };99 private:100 int id;101 bool utc;102 };103 78 104 79 /** … … 119 94 int id; 120 95 }; 121 122 }123 124 #include "date_object.lut.h"125 126 namespace KJS {127 96 128 97 // some constants
Note:
See TracChangeset
for help on using the changeset viewer.