Changeset 17042 in webkit


Ignore:
Timestamp:
Oct 13, 2006 2:18:38 PM (18 years ago)
Author:
spadma
Message:

2006-10-13 sareen <shyam.sareen@nokia.com>

Reviewed by (Sachin.padma@nokia.com).
DESC: New Enum need to add for finding the whether the plugin

is interactive or not.

http://bugs.webkit.org/show_bug.cgi?id=11281.

  • Plugin/inc/PluginAdapterInterface.h: (MPluginAdapter::SetOptionMenuHandler):
  • Plugin/inc/PluginSkin.h:
  • Plugin/inc/PluginWin.h:
  • Plugin/inc/npapi.h:
  • Plugin/src/PluginSkin.cpp:
  • Plugin/src/PluginWin.cpp: (CPluginWin::ConstructL): (CPluginWin::IsContentInteractive):
Location:
S60/trunk/WebKit
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • S60/trunk/WebKit/ChangeLog

    r17012 r17042  
     12006-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
    1182006-10-12  brmorris  <thisisbradley@gmail.com>
    219
  • S60/trunk/WebKit/Plugin/inc/PluginAdapterInterface.h

    r15973 r17042  
    125125        */
    126126    virtual void SetOptionMenuHandler(MOptionMenuHandler* /*aOptionMenuHandler*/) {};
    127 #ifdef RD_32_BROWSER
    128         /**
    129         * Tells the plugin adapter if plugin content can accept user interaction.  This function
    130         * is called from the plugin.
    131         * @since Series 60 3nd Edition
    132         * @param None
    133         * @return None
    134         */
    135     virtual void SetContentInteractive(TBool /*aInteractive*/ ) = 0;
    136 #endif
    137127    };
    138128
  • S60/trunk/WebKit/Plugin/inc/PluginSkin.h

    r15885 r17042  
    278278        void SetRect(const TRect& aRect);
    279279
    280 #ifdef RD_32_BROWSER
     280
    281281        /**
    282282        * IsFocusable
     
    289289        TBool IsFocusable() const;
    290290
    291         
     291#ifdef RD_32_BROWSER       
    292292        HBufC* Url()                            { return iUrl; }
    293293#endif
  • S60/trunk/WebKit/Plugin/inc/PluginWin.h

    r16256 r17042  
    237237        void ResizePluginRect(TRect& aRect);
    238238
    239 #ifdef RD_32_BROWSER
    240239        /**
    241240        * Check if the plugin content is able to accept user interaction
     
    245244        * @return void
    246245        */
    247         TBool IsContentInteractive() const                  { return iContentInteractive; }
    248 #endif
     246        TBool IsContentInteractive() const ;               
    249247    public: // Functions from CCoeControl
    250248
     
    450448        void SetOptionMenuHandler(MOptionMenuHandler* aOptionMenuHandler) {iOptionMenuHandler = aOptionMenuHandler;}
    451449#ifdef RD_32_BROWSER
    452         /**
    453         * Tells the plugin adapter that plugin content can accept user interaction.  This function
    454         * is called from the plugin.
    455         * @since Series 60 3nd Edition
    456         * @param None
    457         * @return None
    458         */
    459         void SetContentInteractive( TBool aInteractive )            { iContentInteractive = aInteractive; }
    460 
    461450        HBufC* PluginDataUrl();
    462451#endif
     
    611600                                                               // browser to send option menu commands to plugin
    612601        TBool                               iDeleted;       // Flag to check if plugin control has been deleted
    613 #ifdef RD_32_BROWSER
    614         TBool                               iContentInteractive;
    615 #endif
    616602    };
    617603
  • S60/trunk/WebKit/Plugin/inc/npapi.h

    r14562 r17042  
    404404  /* 12 and over are available on Mozilla builds starting with 0.9.9 */
    405405  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
    407413} NPPVariable;
    408414
  • S60/trunk/WebKit/Plugin/src/PluginSkin.cpp

    r16969 r17042  
    652652    }
    653653   
    654 #ifdef RD_32_BROWSER
    655654// -----------------------------------------------------------------------------
    656655// CPluginSkin::IsFocusable
     
    665664        return EFalse;
    666665    }
    667 #endif
     666
  • S60/trunk/WebKit/Plugin/src/PluginWin.cpp

    r16260 r17042  
    147147    // Add the focus/foreground observer   
    148148    ControlEnv()->AddForegroundObserverL( *this ) ;
    149 #ifdef RD_32_BROWSER   
    150     iContentInteractive = ETrue;
    151 #endif
    152149    }
    153150
     
    12031200  }
    12041201
     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//
     1214TBool 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    }
    12051232// -----------------------------------------------------------------------------
    12061233// CPluginData::CPluginData
Note: See TracChangeset for help on using the changeset viewer.