1 /* 2 * Copyright 2009, The Android Open Source Project 3 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2006 Michael Emmel mike.emmel (at) gmail.com 5 * Copyright (C) 2007 Holger Hans Peter Freyther 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: 11 * 1. Redistributions of source code must retain the above copyright 12 * notice, this list of conditions and the following disclaimer. 13 * 2. Redistributions in binary form must reproduce the above copyright 14 * notice, this list of conditions and the following disclaimer in the 15 * documentation and/or other materials provided with the distribution. 16 * 17 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY 18 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 20 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR 21 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 22 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 23 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 24 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY 25 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 */ 29 30 #include "config.h" 31 #include "LocalizedStrings.h" 32 33 #include "NotImplemented.h" 34 #include "PlatformBridge.h" 35 #include "PlatformString.h" 36 37 namespace WebCore { 38 39 // The following two strings are used for File Upload form control, ie 40 // <input type="file">. The first is the text that appears on the button 41 // that when pressed, the user can browse for and select a file. The 42 // second string is rendered on the screen when no file has been selected. 43 String fileButtonChooseFileLabel() 44 { 45 return *(PlatformBridge::globalLocalizedName( 46 PlatformBridge::FileUploadLabel)); 47 } 48 49 String fileButtonNoFileSelectedLabel() 50 { 51 notImplemented(); 52 return String(); 53 } 54 55 String contextMenuItemTagInspectElement() 56 { 57 return String("Inspect Element"); 58 } 59 60 String unknownFileSizeText() 61 { 62 return String("Unknown"); 63 } 64 65 String contextMenuItemTagOpenLinkInNewWindow() 66 { 67 notImplemented(); 68 return String(); 69 } 70 71 String contextMenuItemTagDownloadLinkToDisk() 72 { 73 notImplemented(); 74 return String(); 75 } 76 77 String contextMenuItemTagCopyLinkToClipboard() 78 { 79 notImplemented(); 80 return String(); 81 } 82 83 String contextMenuItemTagOpenImageInNewWindow() 84 { 85 notImplemented(); 86 return String(); 87 } 88 89 String contextMenuItemTagDownloadImageToDisk() 90 { 91 notImplemented(); 92 return String(); 93 } 94 95 String contextMenuItemTagCopyImageToClipboard() 96 { 97 notImplemented(); 98 return String(); 99 } 100 101 String contextMenuItemTagOpenFrameInNewWindow() 102 { 103 notImplemented(); 104 return String(); 105 } 106 107 String contextMenuItemTagCopy() 108 { 109 notImplemented(); 110 return String(); 111 } 112 113 String contextMenuItemTagGoBack() 114 { 115 notImplemented(); 116 return String(); 117 } 118 119 String contextMenuItemTagGoForward() 120 { 121 notImplemented(); 122 return String(); 123 } 124 125 String contextMenuItemTagStop() 126 { 127 notImplemented(); 128 return String(); 129 } 130 131 String contextMenuItemTagReload() 132 { 133 notImplemented(); 134 return String(); 135 } 136 137 String contextMenuItemTagCut() 138 { 139 notImplemented(); 140 return String(); 141 } 142 143 String contextMenuItemTagPaste() 144 { 145 notImplemented(); 146 return String(); 147 } 148 149 String contextMenuItemTagNoGuessesFound() 150 { 151 notImplemented(); 152 return String(); 153 } 154 155 String contextMenuItemTagIgnoreSpelling() 156 { 157 notImplemented(); 158 return String(); 159 } 160 161 String contextMenuItemTagLearnSpelling() 162 { 163 notImplemented(); 164 return String(); 165 } 166 167 String contextMenuItemTagSearchWeb() 168 { 169 notImplemented(); 170 return String(); 171 } 172 173 String contextMenuItemTagLookUpInDictionary() 174 { 175 notImplemented(); 176 return String(); 177 } 178 179 String contextMenuItemTagOpenLink() 180 { 181 notImplemented(); 182 return String(); 183 } 184 185 String contextMenuItemTagIgnoreGrammar() 186 { 187 notImplemented(); 188 return String(); 189 } 190 191 String contextMenuItemTagSpellingMenu() 192 { 193 notImplemented(); 194 return String(); 195 } 196 197 String contextMenuItemTagShowSpellingPanel(bool show) 198 { 199 notImplemented(); 200 return String(); 201 } 202 203 String contextMenuItemTagCheckSpelling() 204 { 205 notImplemented(); 206 return String(); 207 } 208 209 String contextMenuItemTagCheckSpellingWhileTyping() 210 { 211 notImplemented(); 212 return String(); 213 } 214 215 String contextMenuItemTagCheckGrammarWithSpelling() 216 { 217 notImplemented(); 218 return String(); 219 } 220 221 String contextMenuItemTagFontMenu() 222 { 223 notImplemented(); 224 return String(); 225 } 226 227 String contextMenuItemTagBold() 228 { 229 notImplemented(); 230 return String(); 231 } 232 233 String contextMenuItemTagItalic() 234 { 235 notImplemented(); 236 return String(); 237 } 238 239 String contextMenuItemTagUnderline() 240 { 241 notImplemented(); 242 return String(); 243 } 244 245 String contextMenuItemTagOutline() 246 { 247 notImplemented(); 248 return String(); 249 } 250 251 String contextMenuItemTagWritingDirectionMenu() 252 { 253 notImplemented(); 254 return String(); 255 } 256 257 String contextMenuItemTagTextDirectionMenu() 258 { 259 notImplemented(); 260 return String(); 261 } 262 263 String contextMenuItemTagDefaultDirection() 264 { 265 notImplemented(); 266 return String(); 267 } 268 269 String contextMenuItemTagLeftToRight() 270 { 271 notImplemented(); 272 return String(); 273 } 274 275 String contextMenuItemTagRightToLeft() 276 { 277 notImplemented(); 278 return String(); 279 } 280 281 String imageTitle(const String& filename, const IntSize& size) 282 { 283 notImplemented(); 284 return String(); 285 } 286 287 String mediaElementLoadingStateText() 288 { 289 notImplemented(); 290 return String(); 291 } 292 293 String mediaElementLiveBroadcastStateText() 294 { 295 notImplemented(); 296 return String(); 297 } 298 299 String localizedMediaControlElementString(const String& controlName) 300 { 301 notImplemented(); 302 return String(); 303 } 304 305 String localizedMediaControlElementHelpText(const String& controlName) 306 { 307 notImplemented(); 308 return String(); 309 } 310 311 String localizedMediaTimeDescription(const String& controlName) 312 { 313 notImplemented(); 314 return String(); 315 } 316 317 String searchableIndexIntroduction() 318 { 319 notImplemented(); 320 return String(); 321 } 322 323 String resetButtonDefaultLabel() 324 { 325 return *(PlatformBridge::globalLocalizedName( 326 PlatformBridge::ResetLabel)); 327 } 328 329 String submitButtonDefaultLabel() 330 { 331 return *(PlatformBridge::globalLocalizedName( 332 PlatformBridge::SubmitLabel)); 333 } 334 335 String inputElementAltText() 336 { 337 notImplemented(); 338 return String(); 339 } 340 341 String validationMessageValueMissingText() 342 { 343 notImplemented(); 344 return String(); 345 } 346 347 String validationMessageTypeMismatchText() 348 { 349 notImplemented(); 350 return String(); 351 } 352 353 String validationMessagePatternMismatchText() 354 { 355 notImplemented(); 356 return String(); 357 } 358 359 String validationMessageTooLongText() 360 { 361 notImplemented(); 362 return String(); 363 } 364 365 String validationMessageRangeUnderflowText() 366 { 367 notImplemented(); 368 return String(); 369 } 370 371 String validationMessageRangeOverflowText() 372 { 373 notImplemented(); 374 return String(); 375 } 376 377 String validationMessageStepMismatchText() 378 { 379 notImplemented(); 380 return String(); 381 } 382 383 } // namespace WebCore 384