Changeset 21033 for S60/trunk/WebKit
- Timestamp:
- 04/23/07 06:33:54 (21 months ago)
- Location:
- S60/trunk/WebKit
- Files:
-
- 12 modified
-
BrowserControl/inc/BrCtl.h (modified) (2 diffs)
-
BrowserControl/inc/BrCtlDefs.h (modified) (2 diffs)
-
BrowserControl/inc/BrCtlDialogsProvider.h (modified) (42 diffs)
-
BrowserControl/inc/BrCtlInterface.h (modified) (6 diffs)
-
BrowserControl/src/BrCtl.cpp (modified) (3 diffs)
-
BrowserCore/Formcontrols/inc/FControlFileInputSkin.h (modified) (5 diffs)
-
BrowserCore/Formcontrols/src/FControlFileInputSkin.cpp (modified) (10 diffs)
-
BrowserView/inc/WidgetExtension.h (modified) (1 diff)
-
ChangeLog (modified) (1 diff)
-
group/BWINSCW/WebKit_30U.def (modified) (1 diff)
-
group/EABI/browserengineU.def (modified) (1 diff)
-
group/formcontrols.mmpi (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/WebKit/BrowserControl/inc/BrCtl.h
r20911 r21033 651 651 IMPORT_C TBrCtlDefs::TBrCtlFindResponse FindKeywordAgain( TBool aFowardDirection ); 652 652 653 #ifdef RD_BROWSER_WIDGETS654 653 /** 655 654 * Creates the widget extension object … … 658 657 */ 659 658 IMPORT_C MWidgetExtension* CreateWidgetExtensionL(MWidgetCallback& aWidgetCallback) ; 660 #endif //RD_BROWSER_WIDGETS661 659 662 660 /** -
S60/trunk/WebKit/BrowserControl/inc/BrCtlDefs.h
r18891 r21033 723 723 EClientCommandShowContextMenu 724 724 }; 725 #ifdef RD_BROWSER_WIDGETS 725 726 726 /** 727 727 * The widget params. … … 733 733 EWidgetBasePath 734 734 }; 735 #endif //RD_BROWSER_WIDGETS736 735 }; 737 736 -
S60/trunk/WebKit/BrowserControl/inc/BrCtlDialogsProvider.h
r20538 r21033 9 9 * Copyright (c) 2006, Nokia Corporation 10 10 * All rights reserved. 11 * 11 * 12 12 * Redistribution and use in source and binary forms, with or without 13 13 * modification, are permitted provided that the following conditions 14 14 * are met: 15 * 15 * 16 16 * * Redistributions of source code must retain the above copyright 17 17 * notice, this list of conditions and the following disclaimer. … … 23 23 * contributors may be used to endorse or promote products derived 24 24 * from this software without specific prior written permission. 25 * 25 * 26 26 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 27 27 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT … … 36 36 * USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH 37 37 * DAMAGE. 38 * 38 * 39 39 * Please see file patentlicense.txt for further grants. 40 40 * ============================================================================== … … 58 58 ESelectTypeNone, ///< Single select - Do not display any button 59 59 /** 60 * No buttons (single selection only) 61 * OK softkey is available 60 * No buttons (single selection only) 61 * OK softkey is available 62 62 * Cancel button is not available 63 63 */ 64 ESelectTypeOkOnly 64 ESelectTypeOkOnly 65 65 }; 66 66 67 67 /** 68 * Defines the type of image if it cannot be recognized by the 68 * Defines the type of image if it cannot be recognized by the 69 69 * Symbian image conversion library. 70 70 */ … … 84 84 85 85 /** 86 * The MBrDialogsProvider class provides functions implemented by 87 * the Browser Control to display dialogs, such as error notifications, 88 * authentication requests, and selection lists. 86 * The MBrDialogsProvider class provides functions implemented by 87 * the Browser Control to display dialogs, such as error notifications, 88 * authentication requests, and selection lists. 89 89 * 90 90 * Usage: … … 93 93 * #include <BrCtlDialogsProvider.h> 94 94 * 95 * 95 * 96 96 * @see S60 Platform: Browser Control API Developer's Guide Version 2.0 97 97 * @lib BrowserEngine.lib … … 102 102 { 103 103 public: // New functions 104 105 /** 106 * Notifies the user of an error encountered during a download. 104 105 /** 106 * Notifies the user of an error encountered during a download. 107 107 * Some examples are: insufficient memory, unrecognized URL, and DNS not found. 108 108 * @since 2.8 … … 113 113 114 114 /** 115 * Notifies the user of an error from the HTTP server 115 * Notifies the user of an error from the HTTP server 116 116 * during a download. Some examples are: file not found, redirect error. 117 117 * @since 2.8 … … 123 123 124 124 /** 125 * Navigates through your file system and selects a file; 125 * Navigates through your file system and selects a file; 126 126 * analogous to the Browse command in Windows. 127 127 * @since 2.8 … … 144 144 * Values: One of the following: 145 145 * Check boxes (multiple selections allowed) 146 * Radio buttons (single selection only). For example, highlight a URL listed 146 * Radio buttons (single selection only). For example, highlight a URL listed 147 147 * in the session History. 148 148 * No buttons (single selection only) 149 149 * No buttons (single selection only), OK softkey available 150 * For example, if you are about to download a plug-in, you can choose 151 * to display the content in the Web page or in a viewer application. 150 * For example, if you are about to download a plug-in, you can choose 151 * to display the content in the Web page or in a viewer application. 152 152 * @param aOptions A list of options to display 153 153 * @return EFalse if the user canceled the dialog selection 154 154 * ETrue if the user selected an option. 155 155 */ 156 virtual TBool DialogSelectOptionL(const TDesC& aTitle, 157 TBrCtlSelectOptionType aBrCtlSelectOptionType, 156 virtual TBool DialogSelectOptionL(const TDesC& aTitle, 157 TBrCtlSelectOptionType aBrCtlSelectOptionType, 158 158 CArrayFix<TBrCtlSelectOptionData>& aOptions) = 0; 159 159 160 160 /** 161 * User Authentication dialog. 161 * User Authentication dialog. 162 162 * @since 2.8 163 163 * @param aUrl The url requiring authentication … … 167 167 * @param aReturnedPasswd The password entered by the user 168 168 * @param aBasicAuthentication ETrue if basic authentication is required. 169 * EFalse if another type of authentication is required; for example, Digest. 169 * EFalse if another type of authentication is required; for example, Digest. 170 170 * Default: EFalse 171 171 * @return EFalse if the user cancelled the selection … … 173 173 @ attiontion User name and password are returned on cleanup stack. 174 174 */ 175 virtual TBool DialogUserAuthenticationLC(const TDesC& aUrl, 176 const TDesC& aRealm, 177 const TDesC& aDefaultUserName, 178 HBufC*& aReturnedUserName, 175 virtual TBool DialogUserAuthenticationLC(const TDesC& aUrl, 176 const TDesC& aRealm, 177 const TDesC& aDefaultUserName, 178 HBufC*& aReturnedUserName, 179 179 HBufC*& aReturnedPasswd, 180 180 TBool aBasicAuthentication = EFalse) = 0; 181 181 182 182 /** 183 * Displays a message to the user. 184 * For example, the message may inform the user 183 * Displays a message to the user. 184 * For example, the message may inform the user 185 185 * about an error encountered while processing a request. 186 186 * @since 2.8 … … 190 190 * The message disappears after a time out. 191 191 */ 192 virtual void DialogNoteL(const TDesC& aMessage) = 0; 192 virtual void DialogNoteL(const TDesC& aMessage) = 0; 193 193 194 194 /** … … 201 201 * The message displays until the user presses OK. 202 202 */ 203 virtual void DialogAlertL(const TDesC& aTitle, const TDesC& aMessage) = 0; 203 virtual void DialogAlertL(const TDesC& aTitle, const TDesC& aMessage) = 0; 204 204 205 205 /** … … 225 225 * @param aMessage The message to display 226 226 * @param aDefaultInput The default input if available 227 * @param aReturnedInput The input entered by the user. 227 * @param aReturnedInput The input entered by the user. 228 228 * @return EFalse if the user cancelled the selection 229 229 * ETrue if the user selected an option. … … 236 236 237 237 /** 238 * Displays information about the Netscape plug-in object and 238 * Displays information about the Netscape plug-in object and 239 239 * requests confirmation before downloading the object. 240 240 * @since 2.8 … … 244 244 * Size 245 245 * Flag to indicate whether a viewer application exists for this content 246 * Flag to indicate whether a Netscape plug-in exists that supports this content 246 * Flag to indicate whether a Netscape plug-in exists that supports this content 247 247 * Name of the application or Netscape plug-in with which the content can 248 * be viewed on the mobile phone 248 * be viewed on the mobile phone 249 249 * @return EFalse if the user cancelled the selection 250 250 * ETrue if the user selected an option. … … 255 255 * Display the images that appear in the current page 256 256 * @since 2.8 257 * @param aPageImages Array describing the images that appear in the current page. 257 * @param aPageImages Array describing the images that appear in the current page. 258 258 * The array contains the following elements for each image: 259 259 * Image data … … 261 261 * Title for the image 262 262 * Image type 263 * If the image type is WBMP or OTA, it must be specified. 264 * Symbian can detect any other image type. 263 * If the image type is WBMP or OTA, it must be specified. 264 * Symbian can detect any other image type. 265 265 * @return void 266 266 */ … … 273 273 */ 274 274 virtual void CancelAll() = 0; 275 275 276 276 /** 277 277 * Displays a dialog for searching on the page. … … 279 279 * @return void 280 280 */ 281 virtual void DialogFindL() = 0; 282 283 /** 284 * Navigates through your file system and selects a file of specific mime type; 285 * analogous to the Browse command in Windows. 286 * @since 3.2 287 * @param aSelectedFileName The selected file name. 288 * @param aMimeType The accepted mime type. 289 * @return ETrue if the user selected a file 290 * EFalse if the user cancelled the transaction and did not select a file. 291 * @attiontion Returned on cleanup stack. Browser control will free the buffer. 292 */ 293 virtual TBool DialogMimeFileSelectLC(HBufC*& aSelectedFileName, 294 const TDesC& aMimeType) = 0; 295 281 virtual void DialogFindL() = 0; 282 296 283 }; 297 284 298 285 299 286 /** 300 * The TBrCtlSelectOptionData class represents a list of elements 287 * The TBrCtlSelectOptionData class represents a list of elements 301 288 * to display in the list box. This class is used for the List Selection Dialog. 302 289 * @code … … 316 303 */ 317 304 inline TBrCtlSelectOptionData() 318 { 305 { 319 306 iText.Set(NULL, 0); 320 307 iIsSelected = EFalse; … … 332 319 * @return TbrCtlSelectOptionData object 333 320 */ 334 inline TBrCtlSelectOptionData( const TDesC& aText, 321 inline TBrCtlSelectOptionData( const TDesC& aText, 335 322 TBool aIsSelected, 336 TBool aIsOptGroup, 323 TBool aIsOptGroup, 337 324 TBool aHasOnPick ) 338 325 { … … 340 327 iIsSelected = aIsSelected; 341 328 iIsOptGroup = aIsOptGroup; 342 iHasOnPick = aHasOnPick; 329 iHasOnPick = aHasOnPick; 343 330 } 344 331 /** 345 332 * Gets the display text associated with a specified option. 346 333 * @since 2.8 347 * @return A reference to a Symbian TDesC object that 348 * contains the text associated with this option. 334 * @return A reference to a Symbian TDesC object that 335 * contains the text associated with this option. 349 336 */ 350 337 inline const TDesC& Text() const {return iText;} 351 338 /** 352 * Indicates whether or not an option is selected. 339 * Indicates whether or not an option is selected. 353 340 * @since 2.8 354 341 * @return ETrue if the option is selected … … 357 344 inline TBool IsSelected() const {return iIsSelected;} 358 345 /** 359 * Indicates whether an option group member 360 * variable is a group title or a selectable option. 346 * Indicates whether an option group member 347 * variable is a group title or a selectable option. 361 348 * @since 2.8 362 349 * @return ETrue if the listed item is the title of an option group 363 * EFalse if the listed item is one of the options from which to select 350 * EFalse if the listed item is one of the options from which to select 364 351 */ 365 352 inline TBool IsOptGroup() const {return iIsOptGroup;} 366 353 /** 367 * Indicates whether or not the dialog closes when an option is selected. 368 * @since 2.8 369 * @return ETrue if the dialog closes when the element is selected. 354 * Indicates whether or not the dialog closes when an option is selected. 355 * @since 2.8 356 * @return ETrue if the dialog closes when the element is selected. 370 357 * This is known as having OnPick capability. 371 358 * EFalse if the dialog does not close when the element is selected … … 373 360 inline TBool HasOnPick() const {return iHasOnPick;} 374 361 /** 375 * Sets the text of the option object. 376 * @since 2.8 377 * @param aText A reference to a TDesC object that contains the 362 * Sets the text of the option object. 363 * @since 2.8 364 * @param aText A reference to a TDesC object that contains the 378 365 * text to associate with a particular option. 379 366 * @return None … … 382 369 inline void SetText( TDesC& aText ) { iText.Set( aText ); } 383 370 /** 384 * Sets the selection state of an option. 371 * Sets the selection state of an option. 385 372 * @since 2.8 386 373 * @param aIsSelected The state of the IsSelected member variable. … … 388 375 * ETrue if the option is selected 389 376 * EFalse if the option is not selected 390 * @return None 377 * @return None 391 378 */ 392 379 inline void SetIsSelected( TBool aIsSelected ) { iIsSelected = aIsSelected; } 393 380 /** 394 * Sets the state of the option group member variable. 395 * Indicates whether an option group member variable is a group title 381 * Sets the state of the option group member variable. 382 * Indicates whether an option group member variable is a group title 396 383 * or a selectable option. 397 384 * @since 2.8 398 * @param aIsOptGroup The state of the option group. 385 * @param aIsOptGroup The state of the option group. 399 386 * Value: 400 387 * ETrue if the listed item is the title of an option group. … … 404 391 inline void SetIsOptGroup( TBool aIsOptGroup ) { iIsOptGroup = aIsOptGroup; } 405 392 /** 406 * Sets the state of the hasOnPick member variable. 393 * Sets the state of the hasOnPick member variable. 407 394 * Indicates whether or not the dialog closes when an option is selected. 408 395 * @since 2.8 409 * @param aHasOnPick 410 * ETrue if the dialog closes when the element is selected. This 396 * @param aHasOnPick 397 * ETrue if the dialog closes when the element is selected. This 411 398 * is known as having OnPick capability. 412 399 * EFalse if the dialog does not close when the element is selected … … 423 410 TBool iIsOptGroup; 424 411 // Flag if the element has onPick 425 TBool iHasOnPick; 412 TBool iHasOnPick; 426 413 }; 427 414 … … 444 431 */ 445 432 CBrCtlObjectInfo(); 446 433 447 434 /** 448 435 * Constructor … … 468 455 inline void SetAppSupported(TBool aAppSupported) {iAppSupported = aAppSupported;} 469 456 /** 470 * Sets the flag if there is a netscape plugin for this object 457 * Sets the flag if there is a netscape plugin for this object 471 458 * @since 3.0 472 459 * @param aPluginSupported ETrue if there is a netscape plugin for this object … … 485 472 * Sets the name of the viewer app or netscape plugin that supports this object 486 473 * @since 3.0 487 * @param aAppName Symbian descriptor containing the name of 474 * @param aAppName Symbian descriptor containing the name of 488 475 * the viewer app or netscape plugin that supports this object. 489 476 * @return None … … 491 478 inline void SetAppName(const TDesC& aAppName) {iAppName.Set(aAppName);} 492 479 /** 493 * Sets the content type of the object 494 * @since 3.0 495 * @param aFileType Symbian descriptor holding content type of the object 480 * Sets the content type of the object 481 * @since 3.0 482 * @param aFileType Symbian descriptor holding content type of the object 496 483 * @return None 497 484 */ … … 506 493 inline TBool AppSupported() {return iAppSupported;} 507 494 /** 508 * Tells if there is a netscape plugin for this object 495 * Tells if there is a netscape plugin for this object 509 496 * @since 3.0 510 497 * @param None 511 498 * @return ETrue if there is a netscape plugin for this object 512 * EFalse if there is not a netscape plugin for this object. 499 * EFalse if there is not a netscape plugin for this object. 513 500 */ 514 501 inline TBool PluginSupported() {return iPluginSupported;} … … 517 504 * @since 3.0 518 505 * @param None 519 * @return Symbian descriptor containing the size of the object 506 * @return Symbian descriptor containing the size of the object 520 507 */ 521 508 inline const TDesC& Size() const {return iSize;} … … 524 511 * @since 3.0 525 512 * @param None 526 * @return Symbian descriptor containing the name of 513 * @return Symbian descriptor containing the name of 527 514 * the viewer app or netscape plugin that supports this object. 528 515 */ 529 516 inline const TDesC& AppName() const {return iAppName;} 530 517 /** 531 * Gets the content type of the object 532 * @since 3.0 533 * @param None 534 * @return Symbian descriptor holding content type of the object 518 * Gets the content type of the object 519 * @since 3.0 520 * @param None 521 * @return Symbian descriptor holding content type of the object 535 522 */ 536 523 inline const TDesC& FileType() const {return iFileType;} … … 568 555 * @param aAltText The alt text of the image 569 556 * @param aImageType The type of the image 570 */ 557 */ 571 558 TBrCtlImageCarrier(const TDesC8& aRawData, const TDesC& aUrl, 572 const TDesC& aAltText, TBrCtlImageType aImageType, const TDesC& aContentType ) : 559 const TDesC& aAltText, TBrCtlImageType aImageType, const TDesC& aContentType ) : 573 560 iRawData( aRawData ), 574 561 iUrl( aUrl ), … … 589 576 * @since 3.0 590 577 * @param None 591 * @return Symbian descriptor containing url of the image 578 * @return Symbian descriptor containing url of the image 592 579 */ 593 580 inline const TDesC& Url() const {return iUrl;} … … 596 583 * @since 3.0 597 584 * @param None 598 * @return Symbian descriptor containing alt text of the image 585 * @return Symbian descriptor containing alt text of the image 599 586 */ 600 587 inline const TDesC& AltText() const {return iAltText;} … … 610 597 * @since 3.1 611 598 * @param None 612 * @return Symbian descriptor containing content type of the image 599 * @return Symbian descriptor containing content type of the image 613 600 */ 614 601 inline const TDesC& ContentType() const {return iContentType;} 615 private: 602 private: 616 603 TPtrC8 iRawData; 617 604 TPtrC iUrl; … … 622 609 623 610 624 #endif // BRCTLDIALOGSPROVIDER_H 625 611 #endif // BRCTLDIALOGSPROVIDER_H 612 626 613 // End of File -
S60/trunk/WebKit/BrowserControl/inc/BrCtlInterface.h
r18891 r21033 72 72 class MBrCtlStateChangeObserver; 73 73 class MBrCtlCommandObserver; 74 #ifdef RD_BROWSER_WIDGETS75 74 class MWidgetCallback; 76 75 class MWidgetExtension; 77 #endif //RD_BROWSER_WIDGETS78 76 class CBrCtlInterface; 79 77 class CPluginInfo; … … 600 598 IMPORT_C virtual void RemoveCommandObserver(MBrCtlCommandObserver* aBrCtlCommandObserver) = 0;