Changeset 17042 in webkit
- Timestamp:
- Oct 13, 2006 2:18:38 PM (18 years ago)
- Location:
- S60/trunk/WebKit
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
S60/trunk/WebKit/ChangeLog
r17012 r17042 1 2006-10-13 sareen <shyam.sareen@nokia.com> 2 3 Reviewed by (Sachin.padma@nokia.com). 4 DESC: New Enum need to add for finding the whether the plugin 5 is interactive or not. 6 http://bugs.webkit.org/show_bug.cgi?id=11281. 7 8 * Plugin/inc/PluginAdapterInterface.h: 9 (MPluginAdapter::SetOptionMenuHandler): 10 * Plugin/inc/PluginSkin.h: 11 * Plugin/inc/PluginWin.h: 12 * Plugin/inc/npapi.h: 13 * Plugin/src/PluginSkin.cpp: 14 * Plugin/src/PluginWin.cpp: 15 (CPluginWin::ConstructL): 16 (CPluginWin::IsContentInteractive): 17 1 18 2006-10-12 brmorris <thisisbradley@gmail.com> 2 19 -
S60/trunk/WebKit/Plugin/inc/PluginAdapterInterface.h
r15973 r17042 125 125 */ 126 126 virtual void SetOptionMenuHandler(MOptionMenuHandler* /*aOptionMenuHandler*/) {}; 127 #ifdef RD_32_BROWSER128 /**129 * Tells the plugin adapter if plugin content can accept user interaction. This function130 * is called from the plugin.131 * @since Series 60 3nd Edition132 * @param None133 * @return None134 */135 virtual void SetContentInteractive(TBool /*aInteractive*/ ) = 0;136 #endif137 127 }; 138 128 -
S60/trunk/WebKit/Plugin/inc/PluginSkin.h
r15885 r17042 278 278 void SetRect(const TRect& aRect); 279 279 280 #ifdef RD_32_BROWSER 280 281 281 /** 282 282 * IsFocusable … … 289 289 TBool IsFocusable() const; 290 290 291 291 #ifdef RD_32_BROWSER 292 292 HBufC* Url() { return iUrl; } 293 293 #endif -
S60/trunk/WebKit/Plugin/inc/PluginWin.h
r16256 r17042 237 237 void ResizePluginRect(TRect& aRect); 238 238 239 #ifdef RD_32_BROWSER240 239 /** 241 240 * Check if the plugin content is able to accept user interaction … … 245 244 * @return void 246 245 */ 247 TBool IsContentInteractive() const { return iContentInteractive; } 248 #endif 246 TBool IsContentInteractive() const ; 249 247 public: // Functions from CCoeControl 250 248 … … 450 448 void SetOptionMenuHandler(MOptionMenuHandler* aOptionMenuHandler) {iOptionMenuHandler = aOptionMenuHandler;} 451 449 #ifdef RD_32_BROWSER 452 /**453 * Tells the plugin adapter that plugin content can accept user interaction. This function454 * is called from the plugin.455 * @since Series 60 3nd Edition456 * @param None457 * @return None458 */459 void SetContentInteractive( TBool aInteractive ) { iContentInteractive = aInteractive; }460 461 450 HBufC* PluginDataUrl(); 462 451 #endif … … 611 600 // browser to send option menu commands to plugin 612 601 TBool iDeleted; // Flag to check if plugin control has been deleted 613 #ifdef RD_32_BROWSER614 TBool iContentInteractive;615 #endif616 602 }; 617 603 -
S60/trunk/WebKit/Plugin/inc/npapi.h
r14562 r17042 404 404 /* 12 and over are available on Mozilla builds starting with 0.9.9 */ 405 405 NPPVjavascriptPushCallerBool = 12, 406 NPPVpluginKeepLibraryInMemory = 13 /* available in Mozilla 1.0 */ 406 NPPVpluginKeepLibraryInMemory = 13, /* available in Mozilla 1.0 */ 407 /* The following is specific to Nokia, so value is 408 * started from 100. The numbers 13 to 1000 are left 409 * for standarization and other future use. Value return is zero for 410 * ineteractive and 'one' for non-interactive. 411 */ 412 NPPVpluginInteractiveBool = 1000 407 413 } NPPVariable; 408 414 -
S60/trunk/WebKit/Plugin/src/PluginSkin.cpp
r16969 r17042 652 652 } 653 653 654 #ifdef RD_32_BROWSER655 654 // ----------------------------------------------------------------------------- 656 655 // CPluginSkin::IsFocusable … … 665 664 return EFalse; 666 665 } 667 #endif 666 -
S60/trunk/WebKit/Plugin/src/PluginWin.cpp
r16260 r17042 147 147 // Add the focus/foreground observer 148 148 ControlEnv()->AddForegroundObserverL( *this ) ; 149 #ifdef RD_32_BROWSER150 iContentInteractive = ETrue;151 #endif152 149 } 153 150 … … 1203 1200 } 1204 1201 1202 1203 // ----------------------------------------------------------------------------- 1204 // CPluginWin::IsContentInteractive() 1205 // Tells that plugin content can accept user interaction. 1206 // The return value of iPluginFuncs->getvalue "0" or false means plugin is interactive. 1207 // If return value of iPluginFuncs->getvalue is true or 1 then plugin is 1208 // not interactive. This is due to the backword functional compatibility. 1209 // 1210 // CPluginWin::IsContentInteractive() return value = 0 implies plug is not interactive 1211 // CPluginWin::IsContentInteractive() return value = 1 implies plug is interactive 1212 // ----------------------------------------------------------------------------- 1213 // 1214 TBool CPluginWin::IsContentInteractive() const 1215 { 1216 TBool retVal = ETrue; 1217 if ( iPluginFuncs && (iPluginFuncs->getvalue) ) 1218 { 1219 NPError err( NPERR_NO_ERROR ); 1220 TBool isNotInteractive = EFalse; 1221 1222 err = iPluginFuncs->getvalue (iInstance, NPPVpluginInteractiveBool, &isNotInteractive); 1223 1224 if( err == NPERR_NO_ERROR) 1225 { 1226 retVal = !isNotInteractive; 1227 } 1228 1229 } 1230 return retVal; 1231 } 1205 1232 // ----------------------------------------------------------------------------- 1206 1233 // CPluginData::CPluginData
Note: See TracChangeset
for help on using the changeset viewer.