summaryrefslogtreecommitdiffstats
path: root/generator/typesystem_webkit-common.xml
blob: 3663efbd1ce9e2b1a6da1bf68d9d66cc1c919ab6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<?xml version="1.0"?>
<typesystem>
    <namespace-type name="WebCore"/>

    <enum-type name="QWebSettings::FontFamily"/>
    <enum-type name="QWebSettings::FontSize"/>
    <enum-type name="QWebSettings::WebGraphic"/>
    <enum-type name="QWebSettings::WebAttribute">
        <reject-enum-value name="LocalStorageEnabled" />
    </enum-type>
    <enum-type name="QWebPage::Extension" />
    <enum-type name="QWebPage::NavigationType"/>
    <enum-type name="QWebPage::WebAction"/>
    <enum-type name="QWebPage::WebWindowType"/>
    <enum-type name="QWebPage::FindFlag" flags="QWebPage::FindFlags" />
    <enum-type name="QWebPage::LinkDelegationPolicy" />
    <enum-type name="QWebPluginFactory::Extension" />
    <enum-type name="QWebElement::StyleResolveStrategy" />
    <enum-type name="QWebHistory::HistoryStateVersion">
        <reject-enum-value name="DefaultHistoryVersion" />
    </enum-type>
    <enum-type name="QWebPage::ErrorDomain" />
    
    
    <object-type name="QGraphicsWebView" />    
    <object-type name="QWebView">
        <modify-function signature="setPage(QWebPage*)">
            <modify-argument index="1">
                <define-ownership class="java" owner="c++"/>
            </modify-argument>
        </modify-function>
    </object-type>
    <object-type name="QWebFrame">
        <modify-function signature="addToJavaScriptWindowObject(QString,QObject*)">
            <modify-argument index="2">
                <reference-count action="ignore"/>
            </modify-argument>
        </modify-function>
    </object-type>
    <object-type name="QWebPage::ExtensionOption" />
    <object-type name="QWebPage::ChooseMultipleFilesExtensionOption" />
    <object-type name="QWebPage::ExtensionReturn" />
    <object-type name="QWebPage::ChooseMultipleFilesExtensionReturn" />
    <object-type name="QWebHistory">
      <modify-function signature="saveState(QWebHistory::HistoryStateVersion)const">
         <modify-argument index="1"><remove-default-expression /></modify-argument>
      </modify-function>
    </object-type>
    <object-type name="QWebSettings"/>
    <object-type name="QWebPage">
        <inject-code class="java">
<!--            <import-file name="typesystem_webkit-java.java" quote-after-line="class QWebPage___" quote-before-line="}// class"/> -->
        </inject-code>
        <modify-function signature="javaScriptPrompt(QWebFrame*,QString,QString,QString*)">
            <access modifier="private"/>
        </modify-function>
        <modify-function signature="setView(QWidget*)">
            <modify-argument index="1">
                <reference-count action="set" variable-name="__rcView"/>
            </modify-argument>
        </modify-function>
        <modify-function signature="setNetworkAccessManager(QNetworkAccessManager*)">
            <modify-argument index="1">
                 <define-ownership class="java" owner="c++"/>
            </modify-argument>
        </modify-function>
    </object-type>

    <value-type name="QWebHitTestResult">
      <modify-function signature="operator=(QWebHitTestResult)" remove="all" />
    </value-type>

    <value-type name="QWebHistoryItem">
        <custom-constructor>
            return new QWebHistoryItem(*copy);
        </custom-constructor>
        <custom-destructor>
            delete copy;
        </custom-destructor>
        <modify-function signature="operator=(QWebHistoryItem)" remove="all"/>
    </value-type>

    <object-type name="QWebHistoryInterface">
        <modify-function signature="setDefaultInterface(QWebHistoryInterface*)">
            <modify-argument index="1">
                <reference-count action="set" variable-name="__rcInterface"/>
            </modify-argument>
        </modify-function>
    </object-type>

    <object-type name="QWebPluginFactory" />
    <object-type name="QWebPluginDatabase" />
    <object-type name="QWebInspector" />

    <value-type name="QWebPluginInfo" />
    <value-type name="QWebElement" />
    <value-type name="QWebPluginFactory::Plugin" />
    <value-type name="QWebPluginFactory::MimeType" />
<!-- QtScript: disabled until we can support custom constructor -->
<!--
    <value-type name="QWebSecurityOrigin">
      <custom-constructor>  
	return new QWebSecurityOrigin(*copy);
      </custom-constructor>
      <custom-destructor>
	delete copy;
      </custom-destructor>
    </value-type>
    <value-type name="QWebDatabase">
      <custom-constructor>  
	return new QWebDatabase(*copy);
      </custom-constructor>
      <custom-destructor>
	delete copy;
      </custom-destructor>
    </value-type>
-->
    <object-type name="QWebPluginFactory::ExtensionOption" />
    <object-type name="QWebPluginFactory::ExtensionReturn" />
    <object-type name="QWebPage::ErrorPageExtensionOption" />
    <object-type name="QWebPage::ErrorPageExtensionReturn" />

    <enum-type name="QWebFrame::RenderLayer" />

    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebFrame::QWebFrame', unmatched parameter type 'QWebFrameData*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebSettings::QWebSettings', unmatched parameter type 'WebCore::Settings*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebPluginInfo::QWebPluginInfo', unmatched parameter type 'WebCore::PluginPackage*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebElement::enclosingElement', unmatched parameter type 'WebCore::Node*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebElement::QWebElement', unmatched parameter type 'WebCore::Node*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebElement::QWebElement', unmatched parameter type 'WebCore::Element*'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping field 'QWebPluginFactory_Plugin::mimeTypes' with unmatched type 'QList&lt;MimeType&gt;'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QWebPluginInfo' has equals operators but no qHash() function. Hashcode of objects will consistently be 0." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QWebPluginFactory_MimeType' has equals operators but no qHash() function. Hashcode of objects will consistently be 0." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: Class 'QWebElement' has equals operators but no qHash() function. Hashcode of objects will consistently be 0." />

    <!-- Needed to avoid warnings on compilers that don't support webkit -->
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPluginFactory::Plugin' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />                            
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPluginFactory::ExtensionReturn' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPluginFactory::MimeType' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'Extension' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPluginFactory::ExtensionOption' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPluginFactory' for enum 'Extension' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPluginFactory' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'NavigationRequestResponse' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebSettings' for enum 'WebAttribute' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebSettings' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebHistoryItem' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebHistoryInterface' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'WebAction' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebSettings' for enum 'FontSize' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebSettings' for enum 'WebGraphic' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'NavigationType' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebSettings' for enum 'FontType' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebFrame' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebHistory' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebView' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPage' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebHitTestResult' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'FindFlag' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'LinkDelegationPolicy' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebSettings' for enum 'FontFamily' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: namespace 'com.trolltech.qt.webkit.QWebPage' for enum 'WebWindowType' is not declared" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: skipping function 'QWebFrame::addToJavaScriptWindowObject', unmatched parameter type 'QScriptEngine::ValueOwnership'" />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebDatabase' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPage::ExtensionReturn' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPage::ExtensionOption' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPage::ChooseMultipleFilesExtensionOption' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />                            
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebSecurityOrigin' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    <suppress-warning text="WARNING(MetaJavaBuilder) :: type 'QWebPage::ChooseMultipleFilesExtensionReturn' is specified in typesystem, but not defined. This could potentially lead to compilation errors." />
    
</typesystem>