~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/monomac/src/webkit.cs

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
ImportĀ upstreamĀ versionĀ 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
using MonoMac.ObjCRuntime;
31
31
 
32
32
namespace MonoMac.WebKit {
 
33
 
33
34
        [BaseType (typeof (WebScriptObject), Name="DOMObject")]
 
35
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMObject init]: should never be used
34
36
        interface DomObject {
35
37
        }
36
38
 
38
40
        // DomObject subclasses
39
41
 
40
42
        [BaseType (typeof (DomObject), Name="DOMAbstractView")]
 
43
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMAbstractView init]: should never be used
41
44
        interface DomAbstractView {
42
45
                [Export ("document")]
43
46
                DomDocument Document { get; }
44
47
        }
45
48
 
46
49
        [BaseType (typeof (DomObject), Name="DOMCSSRule")]
 
50
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSRule init]: should never be used
47
51
        interface DomCssRule {
48
52
                [Export ("type")]
49
53
                DomCssRuleType Type { get; }
50
54
 
51
55
                [Export ("cssText")]
52
 
                string CssText { get; }
 
56
                string CssText { get; set; }
53
57
 
54
58
                [Export ("parentStyleSheet")]
55
59
                DomCssStyleSheet ParentStyleSheet { get;  }
59
63
        }
60
64
 
61
65
        [BaseType (typeof (DomObject), Name="DOMCSSRuleList")]
 
66
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSRuleList init]: should never be used
62
67
        interface DomCssRuleList {
63
68
                [Export ("length")]
64
69
                int Count { get; }
68
73
        }
69
74
 
70
75
        [BaseType (typeof (DomObject), Name="DOMCSSStyleDeclaration")]
 
76
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSStyleDeclaration init]: should never be used
71
77
        interface DomCssStyleDeclaration {
72
78
                [Export ("cssText")]
73
 
                string CssText { get; }
 
79
                string CssText { get; set; }
74
80
 
75
81
                [Export ("length")]
76
82
                int Count { get; }
104
110
        }
105
111
 
106
112
        [BaseType (typeof (DomStyleSheet), Name="DOMCSSStyleSheet")]
 
113
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSStyleSheet init]: should never be used
107
114
        interface DomCssStyleSheet {
108
115
                [Export ("ownerRule")]
109
116
                DomCssRule OwnerRule { get; }
128
135
        }
129
136
 
130
137
        [BaseType (typeof (DomObject), Name="DOMCSSValue")]
 
138
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCSSValue init]: should never be used
131
139
        interface DomCssValue {
132
140
                [Export ("cssText")]
133
 
                string CssText { get; }
 
141
                string CssText { get; set; }
134
142
 
135
143
                [Export ("cssValueType")]
136
144
                DomCssValueType Type { get; }
137
145
        }
138
146
 
139
147
        [BaseType (typeof (DomObject), Name="DOMHTMLCollection")]
 
148
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLCollection init]: should never be used
140
149
        interface DomHtmlCollection {
141
150
                [Export ("length")]
142
151
                int Count { get; }
152
161
        }
153
162
 
154
163
        [BaseType (typeof (DomObject), Name="DOMImplementation")]
 
164
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMImplementation init]: should never be used
155
165
        interface DomImplementation {
156
166
                [Export ("hasFeature:version:")]
157
167
                bool HasFeature (string feature, string version);
170
180
        }
171
181
 
172
182
        [BaseType (typeof (DomObject), Name="DOMMediaList")]
 
183
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMMediaList init]: should never be used
173
184
        interface DomMediaList {
174
185
                [Export ("mediaText")]
175
186
                string MediaText { get; set; }
188
199
        }
189
200
 
190
201
        [BaseType (typeof (DomObject), Name="DOMNamedNodeMap")]
 
202
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNamedNodeMap init]: should never be used
191
203
        interface DomNamedNodeMap {
192
204
                [Export ("length")]
193
205
                int Count { get; }
215
227
        }
216
228
 
217
229
        [BaseType (typeof (DomObject), Name="DOMNode")]
 
230
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNode init]: should never be used
218
231
        interface DomNode {
219
232
                [Export ("nodeName")]
220
233
                string Name { get; }
221
234
 
222
235
                [Export ("nodeValue")]
223
 
                string Value { get; }
 
236
                string NodeValue { get; set; }
224
237
 
225
238
                [Export ("nodeType")]
226
239
                DomNodeType NodeType { get;  }
312
325
                [Export ("lookupNamespaceURI:")]
313
326
                string LookupNamespace (string prefix);
314
327
 
315
 
                [Export ("compareDocumentPosition")]
 
328
                [Export ("compareDocumentPosition:")]
316
329
                DomDocumentPosition CompareDocumentPosition (DomNode other);
317
330
 
318
331
                //
329
342
        }
330
343
 
331
344
        [BaseType (typeof (DomObject), Name="DOMNodeList")]
 
345
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMNodeList init]: should never be used
332
346
        interface DomNodeList {
333
347
                [Export ("length")]
334
348
                int Count { get; }
338
352
        }
339
353
 
340
354
        [BaseType (typeof (DomObject), Name="DOMRange")]
 
355
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMRange init]: should never be used
341
356
        interface DomRange {
342
357
                [Export ("startContainer")]
343
358
                DomNode StartContainer { get;  }
431
446
        }
432
447
 
433
448
        [BaseType (typeof (DomObject), Name="DOMStyleSheet")]
 
449
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMStyleSheet init]: should never be used
434
450
        interface DomStyleSheet {
435
451
                [Export ("type")]
436
452
                string Type { get; }
455
471
        }
456
472
 
457
473
        [BaseType (typeof (DomObject), Name="DOMStyleSheetList")]
 
474
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMStyleSheetList init]: should never be used
458
475
        interface DomStyleSheetList {
459
476
                [Export ("length")]
460
477
                int Count { get; }
467
484
        // DomNode subclasses
468
485
 
469
486
        [BaseType (typeof (DomNode), Name="DOMAttr")]
 
487
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMAttr init]: should never be used
470
488
        interface DomAttr {
471
489
                [Export ("name")]
472
490
                string Name { get; }
485
503
        }
486
504
 
487
505
        [BaseType (typeof (DomNode), Name="DOMCharacterData")]
 
506
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCharacterData init]: should never be used
488
507
        interface DomCharacterData {
489
508
                [Export ("data")]
490
 
                string Data { get; }
 
509
                string Data { get; set; }
491
510
 
492
511
                [Export ("length")]
493
512
                int Count { get; }
509
528
        }
510
529
 
511
530
        [BaseType (typeof (DomNode), Name="DOMDocument")]
 
531
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocument init]: should never be used
512
532
        interface DomDocument {
513
533
                [Export ("doctype")]
514
534
                DomDocumentType DocumentType { get; }
526
546
                string XmlEncoding { get;  }
527
547
 
528
548
                [Export ("xmlVersion")]
529
 
                string XmlVersion { get;  }
 
549
                string XmlVersion { get; set; }
530
550
 
531
551
                [Export ("xmlStandalone")]
532
552
                bool XmlStandalone { get; set;  }
718
738
        }
719
739
 
720
740
        [BaseType (typeof (DomNode), Name="DOMDocumentFragment")]
 
741
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocumentFragment init]: should never be used
721
742
        interface DomDocumentFragment {
722
743
        }
723
744
 
724
745
        [BaseType (typeof (DomNode), Name="DOMDocumentType")]
 
746
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMDocumentType init]: should never be used
725
747
        interface DomDocumentType {
726
748
                [Export ("name")]
727
749
                string Name { get;  }
744
766
        }
745
767
        
746
768
        [BaseType (typeof (DomNode), Name="DOMElement")]
 
769
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMElement init]: should never be used
747
770
        interface DomElement {
748
771
                [Export ("offsetLeft")]
749
772
                int OffsetLeft { get;  }
879
902
        }
880
903
 
881
904
        [BaseType (typeof (DomNode), Name="DOMEntityReference")]
 
905
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMEntityReference init]: should never be used
882
906
        interface DomEntityReference {
883
907
        }
884
908
 
885
909
        [BaseType (typeof (DomObject), Name="DOMEvent")]
 
910
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMEvent init]: should never be used
886
911
        interface DomEvent {
887
912
                [Export ("type")]
888
913
                string Type { get; }
933
958
        }
934
959
        
935
960
        [BaseType (typeof (DomNode), Name="DOMProcessingInstruction")]
 
961
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMProcessingInstruction init]: should never be used
936
962
        interface DomProcessingInstruction {
937
963
                [Export ("target")]
938
964
                string Target { get; }
948
974
        // DomCharacterData subclasses
949
975
 
950
976
        [BaseType (typeof (DomCharacterData), Name="DOMText")]
 
977
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMText init]: should never be used
951
978
        interface DomText {
952
979
                [Export("wholeText")]
953
980
                string WholeText { get; }
960
987
        }
961
988
 
962
989
        [BaseType (typeof (DomCharacterData), Name="DOMComment")]
 
990
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMComment init]: should never be used
963
991
        interface DomComment {
964
992
        }
965
993
 
967
995
        // DomText subclasses
968
996
 
969
997
        [BaseType (typeof (DomText), Name="DOMCDATASection")]
 
998
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMCDATASection init]: should never be used
970
999
        interface DomCDataSection {
971
1000
        }
972
1001
 
974
1003
        // DomDocument subclasses
975
1004
 
976
1005
        [BaseType (typeof (DomDocument), Name="DOMHTMLDocument")]
 
1006
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLDocument init]: should never be used
977
1007
        interface DomHtmlDocument {
978
1008
                [Export ("embeds")]
979
1009
                DomHtmlCollection Embeds { get;  }
1032
1062
                [Export ("clear")]
1033
1063
                void Clear ();
1034
1064
 
1035
 
                [Export ("captureEvent")]
 
1065
                [Export ("captureEvents")]
1036
1066
                void CaptureEvents ();
1037
1067
 
1038
1068
                [Export ("releaseEvents")]
1045
1075
        //////////////////////////
1046
1076
        // DomElement subclasses
1047
1077
 
 
1078
        [BaseType (typeof (DomHtmlElement), Name="DOMHTMLInputElement")]
 
1079
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLElement init]: should never be used
 
1080
        interface DomHtmlInputElement {
 
1081
                [Export ("accept")]
 
1082
                string Accept { get; set; }
 
1083
 
 
1084
                [Export ("alt")]
 
1085
                string Alt { get; set; }
 
1086
 
 
1087
                [Export ("autofocus")]
 
1088
                bool Autofocus { get; set; }
 
1089
 
 
1090
                [Export ("defaultChecked")]
 
1091
                bool defaultChecked { get; set; }
 
1092
 
 
1093
                [Export ("checked")]
 
1094
                bool Checked { get; set; }
 
1095
 
 
1096
                [Export ("disabled")]
 
1097
                bool Disabled { get; set; }
 
1098
 
 
1099
//              [Export ("form")]
 
1100
//              DomHtmlFormElement Form { get; }
 
1101
 
 
1102
//              [Export ("files")]
 
1103
//              DomFileList Files { get; }
 
1104
 
 
1105
                [Export ("indeterminate")]
 
1106
                bool Indeterminate { get; set; }
 
1107
 
 
1108
                [Export ("maxLength")]
 
1109
                int MaxLength { get; set; }
 
1110
 
 
1111
                [Export ("multiple")]
 
1112
                bool Multiple { get; set; }
 
1113
 
 
1114
                [Export ("name")]
 
1115
                string Name { get; set; }
 
1116
 
 
1117
                [Export ("readOnly")]
 
1118
                bool ReadOnly { get; set; }
 
1119
 
 
1120
                [Export ("size")]
 
1121
                string Size { get; set; }
 
1122
 
 
1123
                [Export ("src")]
 
1124
                string Src { get; set; }
 
1125
 
 
1126
                [Export ("type")]
 
1127
                string Type { get; set; }
 
1128
 
 
1129
                [Export ("defaultValue")]
 
1130
                string DefaultValue { get; set; }
 
1131
 
 
1132
                [Export ("value")]
 
1133
                string Value { get; set; }
 
1134
 
 
1135
                [Export ("willValidate")]
 
1136
                bool WillValidate { get; }
 
1137
 
 
1138
                [Export ("selectionStart")]
 
1139
                int SelectionStart { get; set; }
 
1140
 
 
1141
                [Export ("selectionEnd")]
 
1142
                int SelectionEnd { get; set; }
 
1143
 
 
1144
                [Export ("align")]
 
1145
                string Align { get; set; }
 
1146
 
 
1147
                [Export ("useMap")]
 
1148
                string UseMap { get; set; }
 
1149
        
 
1150
                [Export ("accessKey")]
 
1151
                string AccessKey { get; set; }
 
1152
        
 
1153
                [Export ("altDisplayString")]
 
1154
                string AltDisplayString { get; }
 
1155
        
 
1156
                [Export ("absoluteImageURL")]
 
1157
                NSUrl AbsoluteImageURL { get; }
 
1158
 
 
1159
                [Export ("select")]
 
1160
                void Select ();
 
1161
 
 
1162
                [Export ("setSelectionRange:end:")]
 
1163
                void SetSelectionRange (int start, int end);
 
1164
 
 
1165
                [Export ("click")]
 
1166
                void Click ();
 
1167
        }
 
1168
        
1048
1169
        [BaseType (typeof (DomElement), Name="DOMHTMLElement")]
 
1170
        [DisableDefaultCtor] // An uncaught exception was raised: +[DOMHTMLElement init]: should never be used
1049
1171
        interface DomHtmlElement {
1050
1172
                [Export ("idName")]
1051
1173
                string IdName { get; set;  }
1288
1410
        }
1289
1411
        
1290
1412
        [BaseType (typeof (NSObject))]
 
1413
        [DisableDefaultCtor] // invalid handle returned
1291
1414
        interface WebFrame {
1292
1415
                [Export ("initWithName:webFrameView:webView:")]
1293
1416
                IntPtr Constructor (string name, WebFrameView view, WebView webView);
1449
1572
                //Detected properties
1450
1573
                [Export ("alternateTitle")]
1451
1574
                string AlternateTitle { get; set; }
 
1575
 
 
1576
                [Field ("WebHistoryItemChangedNotification")]
 
1577
                [Notification]
 
1578
                NSString ChangedNotification { get; }
1452
1579
        }
1453
1580
 
1454
1581
        [BaseType (typeof (NSObject))]
1466
1593
 
1467
1594
        [BaseType (typeof (NSObject))]
1468
1595
        [Model]
1469
 
        interface WebPolicyDelegate  {
1470
 
                [Export ("webView:decidePolicyForNavigationAction:request:frame:decisionListener:"), EventArgs ("WebNavigatioPolicy")]
 
1596
        partial interface WebPolicyDelegate  {
 
1597
                [Export ("webView:decidePolicyForNavigationAction:request:frame:decisionListener:"), EventArgs ("WebNavigationPolicy")]
1471
1598
                void DecidePolicyForNavigation (WebView webView, NSDictionary actionInformation, NSUrlRequest request, WebFrame frame, NSObject decisionToken);
1472
1599
 
1473
1600
                [Export ("webView:decidePolicyForNewWindowAction:request:newFrameName:decisionListener:"), EventArgs ("WebNewWindowPolicy")]
1495
1622
        
1496
1623
        [BaseType (typeof (NSObject))]
1497
1624
        interface WebPreferences {
 
1625
                [Static]
1498
1626
                [Export ("standardPreferences")]
1499
1627
                WebPreferences StandardPreferences { get; }
1500
1628
 
1505
1633
                string Identifier { get; }
1506
1634
 
1507
1635
                [Export ("arePlugInsEnabled")]
1508
 
                bool PlugInsEnabled { get; set; }
 
1636
                bool PlugInsEnabled { get; [Bind ("setPlugInsEnabled:")] set; }
1509
1637
 
1510
1638
                //Detected properties
1511
1639
                [Export ("standardFontFamily")]
1767
1895
        }
1768
1896
 
1769
1897
        [BaseType (typeof (NSObject))]
 
1898
        [DisableDefaultCtor] // crash on dispose, documented as "You can not create a WebScriptObject object directly."
1770
1899
        interface WebScriptObject {
1771
1900
                [Static, Export ("throwException:")]
1772
1901
                bool ThrowException (string exceptionMessage);
1811
1940
                           "WeakPolicyDelegate" }
1812
1941
                   )]
1813
1942
        interface WebView {
 
1943
                [Static]
1814
1944
                [Export ("canShowMIMEType:")]
1815
1945
                bool CanShowMimeType (string MimeType);
1816
1946
 
1877
2007
                bool Search (string forString, bool forward, bool caseSensitive, bool wrap);
1878
2008
 
1879
2009
                [Static]
1880
 
                [Export ("registerViewClass:representationClass:forMimeType:")]
1881
 
                void RegisterViewClass (Class viewClass, Class representationClass, string MimeType);
 
2010
                [Export ("registerViewClass:representationClass:forMIMEType:")]
 
2011
                void RegisterViewClass (Class viewClass, Class representationClass, string mimeType);
1882
2012
 
1883
2013
                [Export ("estimatedProgress")]
1884
2014
                double EstimatedProgress { get; }