~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to src/3rdparty/webkit/WebCore/bridge/c/c_instance.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessandro Ghersi
  • Date: 2009-11-02 18:30:08 UTC
  • mfrom: (1.2.2 upstream)
  • mto: (15.2.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 88.
  • Revision ID: james.westby@ubuntu.com-20091102183008-b6a4gcs128mvfb3m
Tags: upstream-4.6.0~beta1
ImportĀ upstreamĀ versionĀ 4.6.0~beta1

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
namespace JSC {
38
38
 
 
39
class UString;
 
40
 
39
41
namespace Bindings {
40
42
 
41
43
class CClass;
46
48
    {
47
49
        return adoptRef(new CInstance(object, rootObject));
48
50
    }
 
51
 
 
52
    static void setGlobalException(JSC::UString exception);
 
53
 
49
54
    ~CInstance ();
50
 
    
 
55
 
51
56
    virtual Class *getClass() const;
52
57
 
53
 
    virtual JSValuePtr valueOf(ExecState*) const;
54
 
    virtual JSValuePtr defaultValue(ExecState*, PreferredPrimitiveType) const;
55
 
    
56
 
    virtual JSValuePtr invokeMethod(ExecState*, const MethodList&, const ArgList&);
 
58
    virtual JSValue valueOf(ExecState*) const;
 
59
    virtual JSValue defaultValue(ExecState*, PreferredPrimitiveType) const;
 
60
 
 
61
    virtual JSValue invokeMethod(ExecState*, const MethodList&, const ArgList&);
57
62
    virtual bool supportsInvokeDefaultMethod() const;
58
 
    virtual JSValuePtr invokeDefaultMethod(ExecState*, const ArgList&);
59
 
    
 
63
    virtual JSValue invokeDefaultMethod(ExecState*, const ArgList&);
 
64
 
60
65
    virtual bool supportsConstruct() const;
61
 
    virtual JSValuePtr invokeConstruct(ExecState*, const ArgList&);
 
66
    virtual JSValue invokeConstruct(ExecState*, const ArgList&);
62
67
 
63
68
    virtual void getPropertyNames(ExecState*, PropertyNameArray&);
64
69
 
65
 
    JSValuePtr stringValue(ExecState*) const;
66
 
    JSValuePtr numberValue(ExecState*) const;
67
 
    JSValuePtr booleanValue() const;
68
 
    
 
70
    JSValue stringValue(ExecState*) const;
 
71
    JSValue numberValue(ExecState*) const;
 
72
    JSValue booleanValue() const;
 
73
 
69
74
    NPObject *getObject() const { return _object; }
70
75
 
71
 
    virtual BindingLanguage getBindingLanguage() const { return CLanguage; }
72
 
 
73
76
private:
 
77
    static void moveGlobalExceptionToExecState(ExecState* exec);
74
78
    CInstance(NPObject*, PassRefPtr<RootObject>);
75
 
    
 
79
 
76
80
    mutable CClass *_class;
77
81
    NPObject *_object;
78
82
};