Changeset 34861 in webkit for trunk/JavaScriptCore/kjs/StringObject.h
- Timestamp:
- Jun 28, 2008, 4:30:55 PM (17 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/StringObject.h
r34860 r34861 1 // -*- c-basic-offset: 2 -*-2 1 /* 3 2 * Copyright (C) 1999-2000 Harri Porten ([email protected]) … … 20 19 */ 21 20 22 #ifndef S TRING_OBJECT_H_23 #define S TRING_OBJECT_H_21 #ifndef StringObject_h 22 #define StringObject_h 24 23 25 24 #include "JSWrapperObject.h" 26 25 #include "JSString.h" 27 #include "lookup.h"28 26 29 27 namespace KJS { 30 31 class FunctionPrototype;32 28 33 29 class StringObject : public JSWrapperObject { … … 59 55 }; 60 56 61 // WebCore uses this to make style.filter undetectable62 class StringObjectThatMasqueradesAsUndefined : public StringObject {63 public:64 StringObjectThatMasqueradesAsUndefined(ExecState* exec, JSObject* proto, const UString& string)65 : StringObject(exec, proto, string) { }66 virtual bool masqueradeAsUndefined() const { return true; }67 virtual bool toBoolean(ExecState*) const { return false; }68 };69 70 /**71 * @internal72 *73 * The initial value of String.prototype (and thus all objects created74 * with the String constructor75 */76 class StringPrototype : public StringObject {77 public:78 StringPrototype(ExecState *exec,79 ObjectPrototype *objProto);80 virtual bool getOwnPropertySlot(ExecState *, const Identifier&, PropertySlot&);81 virtual const ClassInfo *classInfo() const { return &info; }82 static const ClassInfo info;83 };84 85 /**86 * @internal87 *88 * The initial value of the the global variable's "String" property89 */90 class StringConstructor : public InternalFunction {91 public:92 StringConstructor(ExecState*, FunctionPrototype*, StringPrototype*);93 virtual ConstructType getConstructData(ConstructData&);94 virtual CallType getCallData(CallData&);95 };96 97 57 } // namespace KJS 98 58 99 #endif 59 #endif // StringObject_h
Note:
See TracChangeset
for help on using the changeset viewer.