~ubuntu-branches/ubuntu/jaunty/moon/jaunty

« back to all changes in this revision

Viewing changes to plugin/plugin.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-03-06 10:09:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090306100949-pgxjxjqltaxi12rz
Tags: 1.0.1-0ubuntu1
New upstream release (LP: #338665)

Show diffs side-by-side

added added

removed removed

Lines of Context:
393
393
        background = NULL;
394
394
        id = NULL;
395
395
 
 
396
        relaxed_media_mode = false;
396
397
        windowless = false;
397
 
        
 
398
        xembed_supported = false;
 
399
 
398
400
        bridge = NULL;
399
401
 
400
402
        // MSDN says the default is 24: http://msdn2.microsoft.com/en-us/library/bb979688.aspx
559
561
                else if (!g_ascii_strcasecmp (argn [i], "id")) {
560
562
                        id = g_strdup (argv [i]);
561
563
                }
 
564
                else if (!g_ascii_strcasecmp (argn [i], "moonlight-relaxed-media-mode")) {
 
565
                        relaxed_media_mode = !g_ascii_strcasecmp (argv [i], "true");
 
566
                        g_debug ("Enabling relaxed mode");
 
567
                } 
562
568
                else {
563
569
                  //fprintf (stderr, "unhandled attribute %s='%s' in PluginInstance::Initialize\n", argn[i], argv[i]);
564
570
                }
565
571
        }
566
572
 
567
 
        NPBool supportsWindowless = FALSE;
 
573
        guint32 supportsWindowless = FALSE; // NPBool + padding
568
574
 
569
575
        int plugin_major, plugin_minor;
570
576
        int netscape_major, netscape_minor;
822
828
        surface->SetFPSReportFunc (ReportFPS, this);
823
829
        surface->SetCacheReportFunc (ReportCache, this);
824
830
        surface->SetDownloaderContext (this);
 
831
        surface->SetRelaxedMediaMode (relaxed_media_mode);
825
832
        
826
833
        //SetPageURL ();
827
834
        UpdateSource ();