]> git.sesse.net Git - vlc/commitdiff
Allow future control toolbar to be hidden (default) or shown.
authorthannoy@actech-innovation.com <thannoy@actech-innovation.com>
Thu, 27 Mar 2008 15:43:51 +0000 (16:43 +0100)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 11 Apr 2008 15:02:57 +0000 (17:02 +0200)
 Even if no control toolbar is implemented for ActiveX yet, we already
 provide the code to enable/disable it for compatibility with Firefox
 API behaviour.
 The getter used to know if toolbar is shown will always return FALSE
 until a toolbar is implemented. (getter which will be available soon
 for Firefox)

To use it:
- ActiveX global property named "toolbar":
   For HTML : <param name="toolbar" value="True" />

- API on IVLCControl2 interface, property "toolbar" (RW):
   For Javascript : yourvlcobject.toolbar = false;
                    isToolBarShown = yourvlcobject.toolbar;

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
projects/activex/axvlc.idl

index b1647180aef23f99d4662bf48e4812bb59de797c..94dcaff492f2f112ce919485caa28496fdf27759 100644 (file)
@@ -134,6 +134,15 @@ library AXVLC
 ** for compatibility with some scripting language (JScript)\r
 */\r
 \r
+        /*\r
+         * caution: vlcobject.toolbar:bool does not yet exists in Firefox\r
+         * plugin. Official usage is through "toolbar" property for now,\r
+         * which is compatibile with Firefox.\r
+         */\r
+        [id(DISPID_Toolbar), propget, helpstring("Returns/sets visibility of the toolbar")]\r
+        HRESULT Toolbar([out, retval] VARIANT_BOOL* visible);\r
+        [id(DISPID_Toolbar), propput, helpstring("Returns/sets visibility of the toolbar")]\r
+        HRESULT Toolbar([in] VARIANT_BOOL visible);\r
         HRESULT addTarget([in] BSTR uri, [in] VARIANT options, [in] enum VLCPlaylistMode mode, [in] int position);\r
         [propget, helpstring("Returns index of current item in playlist.")]\r
         HRESULT PlaylistIndex([out, retval] int* index);\r