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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
|
/*
* Copyright (C) 2010 Apple Inc. All rights reserved.
* Copyright (C) 2010 Igalia S.L
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef LocalizationStrategy_h
#define LocalizationStrategy_h
#if USE(PLATFORM_STRATEGIES)
#include <wtf/Forward.h>
namespace WebCore {
class IntSize;
class LocalizationStrategy {
public:
virtual String inputElementAltText() = 0;
virtual String resetButtonDefaultLabel() = 0;
virtual String searchableIndexIntroduction() = 0;
virtual String submitButtonDefaultLabel() = 0;
virtual String fileButtonChooseFileLabel() = 0;
virtual String fileButtonNoFileSelectedLabel() = 0;
virtual String defaultDetailsSummaryText() = 0;
#if PLATFORM(MAC)
virtual String copyImageUnknownFileLabel() = 0;
#endif
#if ENABLE(CONTEXT_MENUS)
virtual String contextMenuItemTagOpenLinkInNewWindow() = 0;
virtual String contextMenuItemTagDownloadLinkToDisk() = 0;
virtual String contextMenuItemTagCopyLinkToClipboard() = 0;
virtual String contextMenuItemTagOpenImageInNewWindow() = 0;
virtual String contextMenuItemTagDownloadImageToDisk() = 0;
virtual String contextMenuItemTagCopyImageToClipboard() = 0;
#if PLATFORM(QT) || PLATFORM(GTK)
virtual String contextMenuItemTagCopyImageUrlToClipboard() = 0;
#endif
virtual String contextMenuItemTagOpenFrameInNewWindow() = 0;
virtual String contextMenuItemTagCopy() = 0;
virtual String contextMenuItemTagGoBack() = 0;
virtual String contextMenuItemTagGoForward() = 0;
virtual String contextMenuItemTagStop() = 0;
virtual String contextMenuItemTagReload() = 0;
virtual String contextMenuItemTagCut() = 0;
virtual String contextMenuItemTagPaste() = 0;
#if PLATFORM(GTK)
virtual String contextMenuItemTagDelete() = 0;
virtual String contextMenuItemTagInputMethods() = 0;
virtual String contextMenuItemTagUnicode() = 0;
#endif
#if PLATFORM(GTK) || PLATFORM(QT)
virtual String contextMenuItemTagSelectAll() = 0;
#endif
virtual String contextMenuItemTagNoGuessesFound() = 0;
virtual String contextMenuItemTagIgnoreSpelling() = 0;
virtual String contextMenuItemTagLearnSpelling() = 0;
virtual String contextMenuItemTagSearchWeb() = 0;
virtual String contextMenuItemTagLookUpInDictionary(const String& selectedString) = 0;
virtual String contextMenuItemTagOpenLink() = 0;
virtual String contextMenuItemTagIgnoreGrammar() = 0;
virtual String contextMenuItemTagSpellingMenu() = 0;
virtual String contextMenuItemTagShowSpellingPanel(bool show) = 0;
virtual String contextMenuItemTagCheckSpelling() = 0;
virtual String contextMenuItemTagCheckSpellingWhileTyping() = 0;
virtual String contextMenuItemTagCheckGrammarWithSpelling() = 0;
virtual String contextMenuItemTagFontMenu() = 0;
virtual String contextMenuItemTagBold() = 0;
virtual String contextMenuItemTagItalic() = 0;
virtual String contextMenuItemTagUnderline() = 0;
virtual String contextMenuItemTagOutline() = 0;
virtual String contextMenuItemTagWritingDirectionMenu() = 0;
virtual String contextMenuItemTagTextDirectionMenu() = 0;
virtual String contextMenuItemTagDefaultDirection() = 0;
virtual String contextMenuItemTagLeftToRight() = 0;
virtual String contextMenuItemTagRightToLeft() = 0;
#if PLATFORM(MAC)
virtual String contextMenuItemTagSearchInSpotlight() = 0;
virtual String contextMenuItemTagShowFonts() = 0;
virtual String contextMenuItemTagStyles() = 0;
virtual String contextMenuItemTagShowColors() = 0;
virtual String contextMenuItemTagSpeechMenu() = 0;
virtual String contextMenuItemTagStartSpeaking() = 0;
virtual String contextMenuItemTagStopSpeaking() = 0;
virtual String contextMenuItemTagCorrectSpellingAutomatically() = 0;
virtual String contextMenuItemTagSubstitutionsMenu() = 0;
virtual String contextMenuItemTagShowSubstitutions(bool show) = 0;
virtual String contextMenuItemTagSmartCopyPaste() = 0;
virtual String contextMenuItemTagSmartQuotes() = 0;
virtual String contextMenuItemTagSmartDashes() = 0;
virtual String contextMenuItemTagSmartLinks() = 0;
virtual String contextMenuItemTagTextReplacement() = 0;
virtual String contextMenuItemTagTransformationsMenu() = 0;
virtual String contextMenuItemTagMakeUpperCase() = 0;
virtual String contextMenuItemTagMakeLowerCase() = 0;
virtual String contextMenuItemTagCapitalize() = 0;
virtual String contextMenuItemTagChangeBack(const String& replacedString) = 0;
#endif
virtual String contextMenuItemTagOpenVideoInNewWindow() = 0;
virtual String contextMenuItemTagOpenAudioInNewWindow() = 0;
virtual String contextMenuItemTagCopyVideoLinkToClipboard() = 0;
virtual String contextMenuItemTagCopyAudioLinkToClipboard() = 0;
virtual String contextMenuItemTagToggleMediaControls() = 0;
virtual String contextMenuItemTagToggleMediaLoop() = 0;
virtual String contextMenuItemTagEnterVideoFullscreen() = 0;
virtual String contextMenuItemTagMediaPlay() = 0;
virtual String contextMenuItemTagMediaPause() = 0;
virtual String contextMenuItemTagMediaMute() = 0;
virtual String contextMenuItemTagInspectElement() = 0;
#endif // ENABLE(CONTEXT_MENUS)
virtual String searchMenuNoRecentSearchesText() = 0;
virtual String searchMenuRecentSearchesText() = 0;
virtual String searchMenuClearRecentSearchesText() = 0;
virtual String AXWebAreaText() = 0;
virtual String AXLinkText() = 0;
virtual String AXListMarkerText() = 0;
virtual String AXImageMapText() = 0;
virtual String AXHeadingText() = 0;
virtual String AXDefinitionListTermText() = 0;
virtual String AXDefinitionListDefinitionText() = 0;
#if PLATFORM(MAC)
virtual String AXARIAContentGroupText(const String& ariaType) = 0;
#endif
virtual String AXButtonActionVerb() = 0;
virtual String AXRadioButtonActionVerb() = 0;
virtual String AXTextFieldActionVerb() = 0;
virtual String AXCheckedCheckBoxActionVerb() = 0;
virtual String AXUncheckedCheckBoxActionVerb() = 0;
virtual String AXMenuListActionVerb() = 0;
virtual String AXMenuListPopupActionVerb() = 0;
virtual String AXLinkActionVerb() = 0;
virtual String missingPluginText() = 0;
virtual String crashedPluginText() = 0;
virtual String multipleFileUploadText(unsigned numberOfFiles) = 0;
virtual String unknownFileSizeText() = 0;
#if PLATFORM(WIN)
virtual String uploadFileText() = 0;
virtual String allFilesText() = 0;
#endif
#if PLATFORM(MAC)
virtual String keygenMenuItem512() = 0;
virtual String keygenMenuItem1024() = 0;
virtual String keygenMenuItem2048() = 0;
virtual String keygenKeychainItemName(const String& host) = 0;
#endif
virtual String imageTitle(const String& filename, const IntSize& size) = 0;
virtual String mediaElementLoadingStateText() = 0;
virtual String mediaElementLiveBroadcastStateText() = 0;
virtual String localizedMediaControlElementString(const String&) = 0;
virtual String localizedMediaControlElementHelpText(const String&) = 0;
virtual String localizedMediaTimeDescription(float) = 0;
virtual String validationMessageValueMissingText() = 0;
virtual String validationMessageTypeMismatchText() = 0;
virtual String validationMessagePatternMismatchText() = 0;
virtual String validationMessageTooLongText() = 0;
virtual String validationMessageRangeUnderflowText() = 0;
virtual String validationMessageRangeOverflowText() = 0;
virtual String validationMessageStepMismatchText() = 0;
protected:
virtual ~LocalizationStrategy()
{
}
};
} // namespace WebCore
#endif // USE(PLATFORM_STRATEGIES)
#endif // LocalizationStrategy_h
|