|
1 /* |
|
2 * Copyright (C) 2003, 2005 Apple Computer, Inc. All rights reserved. |
|
3 * |
|
4 * Redistribution and use in source and binary forms, with or without |
|
5 * modification, are permitted provided that the following conditions |
|
6 * are met: |
|
7 * 1. Redistributions of source code must retain the above copyright |
|
8 * notice, this list of conditions and the following disclaimer. |
|
9 * 2. Redistributions in binary form must reproduce the above copyright |
|
10 * notice, this list of conditions and the following disclaimer in the |
|
11 * documentation and/or other materials provided with the distribution. |
|
12 * |
|
13 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY |
|
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
|
15 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
|
16 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR |
|
17 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
|
18 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
|
19 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR |
|
20 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY |
|
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
|
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
|
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
|
24 */ |
|
25 |
|
26 @class NSArray; |
|
27 @class NSDictionary; |
|
28 @class NSMenu; |
|
29 @class NSString; |
|
30 @class NSView; |
|
31 @class WebCoreFrameBridge; |
|
32 @class WebCoreTextMarker; |
|
33 @class WebCoreTextMarkerRange; |
|
34 |
|
35 @protocol WebCoreViewFactory |
|
36 |
|
37 - (NSArray *)pluginsInfo; // array of id <WebCorePluginInfo> |
|
38 - (void)refreshPlugins:(BOOL)reloadPages; |
|
39 - (BOOL)pluginSupportsMIMEType:(NSString *)MIMEType; |
|
40 |
|
41 - (NSString *)inputElementAltText; |
|
42 - (NSString *)resetButtonDefaultLabel; |
|
43 - (NSString *)searchableIndexIntroduction; |
|
44 - (NSString *)submitButtonDefaultLabel; |
|
45 - (NSString *)fileButtonChooseFileLabel; |
|
46 - (NSString *)fileButtonNoFileSelectedLabel; |
|
47 - (NSString *)copyImageUnknownFileLabel; |
|
48 |
|
49 // Context menu item titles |
|
50 - (NSString *)contextMenuItemTagOpenLinkInNewWindow; |
|
51 - (NSString *)contextMenuItemTagDownloadLinkToDisk; |
|
52 - (NSString *)contextMenuItemTagCopyLinkToClipboard; |
|
53 - (NSString *)contextMenuItemTagOpenImageInNewWindow; |
|
54 - (NSString *)contextMenuItemTagDownloadImageToDisk; |
|
55 - (NSString *)contextMenuItemTagCopyImageToClipboard; |
|
56 - (NSString *)contextMenuItemTagOpenFrameInNewWindow; |
|
57 - (NSString *)contextMenuItemTagCopy; |
|
58 - (NSString *)contextMenuItemTagGoBack; |
|
59 - (NSString *)contextMenuItemTagGoForward; |
|
60 - (NSString *)contextMenuItemTagStop; |
|
61 - (NSString *)contextMenuItemTagReload; |
|
62 - (NSString *)contextMenuItemTagCut; |
|
63 - (NSString *)contextMenuItemTagPaste; |
|
64 - (NSString *)contextMenuItemTagNoGuessesFound; |
|
65 - (NSString *)contextMenuItemTagIgnoreSpelling; |
|
66 - (NSString *)contextMenuItemTagLearnSpelling; |
|
67 - (NSString *)contextMenuItemTagSearchInSpotlight; |
|
68 - (NSString *)contextMenuItemTagSearchWeb; |
|
69 - (NSString *)contextMenuItemTagLookUpInDictionary; |
|
70 - (NSString *)contextMenuItemTagOpenLink; |
|
71 - (NSString *)contextMenuItemTagIgnoreGrammar; |
|
72 - (NSString *)contextMenuItemTagSpellingMenu; |
|
73 - (NSString *)contextMenuItemTagShowSpellingPanel:(bool)show; |
|
74 - (NSString *)contextMenuItemTagCheckSpelling; |
|
75 - (NSString *)contextMenuItemTagCheckSpellingWhileTyping; |
|
76 - (NSString *)contextMenuItemTagCheckGrammarWithSpelling; |
|
77 - (NSString *)contextMenuItemTagFontMenu; |
|
78 - (NSString *)contextMenuItemTagShowFonts; |
|
79 - (NSString *)contextMenuItemTagBold; |
|
80 - (NSString *)contextMenuItemTagItalic; |
|
81 - (NSString *)contextMenuItemTagUnderline; |
|
82 - (NSString *)contextMenuItemTagOutline; |
|
83 - (NSString *)contextMenuItemTagStyles; |
|
84 - (NSString *)contextMenuItemTagShowColors; |
|
85 - (NSString *)contextMenuItemTagSpeechMenu; |
|
86 - (NSString *)contextMenuItemTagStartSpeaking; |
|
87 - (NSString *)contextMenuItemTagStopSpeaking; |
|
88 - (NSString *)contextMenuItemTagWritingDirectionMenu; |
|
89 - (NSString *)contextMenuItemTagDefaultDirection; |
|
90 - (NSString *)contextMenuItemTagLeftToRight; |
|
91 - (NSString *)contextMenuItemTagRightToLeft; |
|
92 - (NSString *)contextMenuItemTagInspectElement; |
|
93 |
|
94 - (NSString *)searchMenuNoRecentSearchesText; |
|
95 - (NSString *)searchMenuRecentSearchesText; |
|
96 - (NSString *)searchMenuClearRecentSearchesText; |
|
97 |
|
98 - (NSString *)defaultLanguageCode; |
|
99 |
|
100 - (BOOL)objectIsTextMarker:(id)object; |
|
101 - (BOOL)objectIsTextMarkerRange:(id)object; |
|
102 |
|
103 - (WebCoreTextMarker *)textMarkerWithBytes:(const void *)bytes length:(size_t)length; |
|
104 - (BOOL)getBytes:(void *)bytes fromTextMarker:(WebCoreTextMarker *)textMarker length:(size_t)length; |
|
105 |
|
106 - (WebCoreTextMarkerRange *)textMarkerRangeWithStart:(WebCoreTextMarker *)start end:(WebCoreTextMarker *)end; |
|
107 - (WebCoreTextMarker *)startOfTextMarkerRange:(WebCoreTextMarkerRange *)range; |
|
108 - (WebCoreTextMarker *)endOfTextMarkerRange:(WebCoreTextMarkerRange *)range; |
|
109 |
|
110 - (void)accessibilityHandleFocusChanged; |
|
111 |
|
112 - (AXUIElementRef)AXUIElementForElement:(id)element; |
|
113 - (void)unregisterUniqueIdForUIElement:(id)element; |
|
114 |
|
115 - (WebCoreFrameBridge *)bridgeForView:(NSView *)aView; |
|
116 |
|
117 - (NSString *)AXWebAreaText; |
|
118 - (NSString *)AXLinkText; |
|
119 - (NSString *)AXListMarkerText; |
|
120 - (NSString *)AXImageMapText; |
|
121 - (NSString *)AXHeadingText; |
|
122 |
|
123 // FTP Directory Related |
|
124 - (NSString *)unknownFileSizeText; |
|
125 |
|
126 @end |
|
127 |
|
128 @interface WebCoreViewFactory : NSObject |
|
129 { |
|
130 } |
|
131 |
|
132 + (WebCoreViewFactory *)sharedFactory; |
|
133 |
|
134 @end |
|
135 |
|
136 @interface WebCoreViewFactory (SubclassResponsibility) <WebCoreViewFactory> |
|
137 @end |
|
138 |
|
139 @protocol WebCorePluginInfo <NSObject> |
|
140 - (NSString *)name; |
|
141 - (NSString *)filename; |
|
142 - (NSString *)pluginDescription; |
|
143 - (NSEnumerator *)MIMETypeEnumerator; |
|
144 - (NSString *)descriptionForMIMEType:(NSString *)MIMEType; |
|
145 - (NSArray *)extensionsForMIMEType:(NSString *)MIMEType; |
|
146 @end |
|
147 |