~ubuntu-branches/ubuntu/edgy/mplayerplug-in/edgy

« back to all changes in this revision

Viewing changes to Source/plugin.h

  • Committer: Bazaar Package Importer
  • Author(s): Daniel T Chen
  • Date: 2006-01-01 00:32:37 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060101003237-gdsph207m8ekjv0t
Tags: 3.17-1ubuntu1
* Resynchronise with Debian (partial fix for #2697):
  - debian/control: Build against firefox-dev; adjust Depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
94
94
    void GetTime(double *_retval);
95
95
    void GetDuration(double *_retval);
96
96
    void GetPercent(double *_retval);
97
 
    void GetFilename(char * *filename);
 
97
    void GetFilename(char **filename);
98
98
    void SetFilename(const char *filename);
99
 
    void GetShowControls(PRBool *_retval);
 
99
    void GetShowControls(PRBool * _retval);
100
100
    void SetShowControls(PRBool value);
101
 
    void GetFullscreen(PRBool *_retval);
 
101
    void GetFullscreen(PRBool * _retval);
102
102
    void SetFullscreen(PRBool value);
103
 
    void GetShowlogo(PRBool *_retval);
 
103
    void GetShowlogo(PRBool * _retval);
104
104
    void SetShowlogo(PRBool value);
105
 
    void GetAutoPlay(PRBool *_retval);
 
105
    void GetAutoPlay(PRBool * _retval);
106
106
    void SetAutoPlay(PRBool value);
107
 
    void GetLoop(PRBool *_retval);
 
107
    void GetLoop(PRBool * _retval);
108
108
    void SetLoop(PRBool value);
109
109
    void GetMIMEType(char **_retval);
110
 
    void GetPlaying(PRBool *_retval);
111
 
    
 
110
    void GetPlaying(PRBool * _retval);
 
111
    void PlaylistAppend(const char *item);
 
112
    void PlaylistClear(PRBool *_retval);
 
113
 
 
114
 
112
115
    // we need to provide implementation of this method as it will be
113
116
    // used by Mozilla to retrive the scriptable peer
114
117
    // and couple of other things on Unix
116
119
 
117
120
    nsScriptablePeer *getScriptablePeer();
118
121
    nsControlsScriptablePeer *getControlsScriptablePeer();
119
 
    
 
122
 
120
123
  public:
121
124
     NPP mInstance;
122
125
    NPBool mInitialized;
123
126
    nsScriptablePeer *mScriptablePeer;
124
127
    nsControlsScriptablePeer *mControlsScriptablePeer;
125
 
    
 
128
 
126
129
    // put member data here
127
130
    char *mimetype;
128
131
    int state;
145
148
    pid_t pid;
146
149
    int noredraw;
147
150
    int hrefrequested;
148
 
    int threadsetup;                    // has the child thread been setup but not signalled
149
 
    int threadlaunched;                 // only allow 1 child thread per instance
150
 
    int threadsignaled;                 // keep track if the thread has been told to start
 
151
    int threadsetup;            // has the child thread been setup but not signalled
 
152
    int threadlaunched;         // only allow 1 child thread per instance
 
153
    int threadsignaled;         // keep track if the thread has been told to start
151
154
    int cancelled;
152
155
    int autostart;
153
156
    int controlwindow;
155
158
    int showtracker;
156
159
    int showbuttons;
157
160
    int showfsbutton;
 
161
    int redrawbuttons;
158
162
    int mmsstream;
159
163
    Node *list;
160
164
    Node *currentnode;
169
173
    int panel_drawn;
170
174
    float percent;
171
175
    char *mediaCompleteCallback;
 
176
    char *mediaCompleteWithErrorCallback;
 
177
    char *mouseClickCallback;
 
178
    char *mouseDownCallback;
 
179
    char *mouseUpCallback;
 
180
    char *mouseEnterCallback;
 
181
    char *mouseLeaveCallback;
172
182
    char *onVisibleCallback;
173
183
    char *onHiddenCallback;
174
184
    char *onDestroyCallback;
175
 
    float mediaLength;                  // length of media in seconds
176
 
    int mediaPercent;                   // percentage of media played
177
 
    float mediaTime;                    // time in seconds
 
185
    float mediaLength;          // length of media in seconds
 
186
    int mediaPercent;           // percentage of media played
 
187
    float mediaTime;            // time in seconds
 
188
    float mediaPos;             // seconds into the media
178
189
    int nomediacache;
179
190
    int controlsvisible;
180
191
    int fullscreen;
181
192
    int showlogo;
 
193
    int showtime;
182
194
    int DPMSEnabled;
183
195
    int hidden;
184
196
    int black_background;
187
199
    int cookies;
188
200
    long int starttime;
189
201
    int nopauseonhide;
 
202
    int targetplayer;           // if we have this create a new window and play there
 
203
    int hidestatus;
190
204
    
191
205
#ifdef GTK_ENABLED
 
206
    gulong delete_signal_id;
192
207
    GtkWidget *gtkwidget;
 
208
    GtkWidget *button_window;
 
209
    GtkWidget *gtkplug;
193
210
    GtkWidget *image;
194
211
    GtkWidget *fixed_container;
195
212
    GtkWidget *fixed_event_box;
205
222
    GtkWidget *ff_event_box;
206
223
    GtkWidget *rew_event_box;
207
224
    GtkWidget *fs_event_box;
208
 
    
 
225
    GtkWidget *src_event_box;
 
226
 
209
227
    GtkWidget *image_play;
210
228
    GtkWidget *image_pause;
211
229
    GtkWidget *image_stop;
212
230
    GtkWidget *image_ff;
213
231
    GtkWidget *image_rew;
214
232
    GtkWidget *image_fs;
215
 
    
 
233
    GtkWidget *image_src;
 
234
 
216
235
    GtkMenu *popup_menu;
217
236
    GtkMenuItem *menuitem_play;
218
237
    GtkMenuItem *menuitem_pause;
227
246
    GtkMenuItem *menuitem_config;
228
247
 
229
248
    GtkWidget *conf_window;
230
 
        GtkWidget *conf_vo;
231
 
        GtkWidget *conf_ao;
232
 
        GtkWidget *conf_dir;
233
 
        GtkWidget *conf_cachesize;
234
 
        GtkWidget *conf_cachepercent;
235
 
    
 
249
    GtkWidget *conf_vo;
 
250
    GtkWidget *conf_ao;
 
251
    GtkWidget *conf_dir;
 
252
    GtkWidget *conf_cachesize;
 
253
    GtkWidget *conf_cachepercent;
 
254
    GtkWidget *conf_showtime;
 
255
    GtkWidget *conf_enable_smil;
 
256
    GtkWidget *conf_enable_helix;
 
257
    GtkWidget *conf_nomediacache;
 
258
    GtkWidget *conf_rtsptcp;
 
259
    GtkWidget *conf_enable_wmp;
 
260
    GtkWidget *conf_enable_qt;
 
261
    GtkWidget *conf_enable_rm;
 
262
    GtkWidget *conf_enable_gmp;
 
263
    GtkWidget *conf_enable_ogg;
 
264
    GtkWidget *conf_enable_mpeg;
 
265
    GtkWidget *conf_enable_mp3;
 
266
        
236
267
#endif
237
268
 
238
269
    pthread_t player_thread;
241
272
    pthread_mutex_t playlist_mutex;
242
273
    pthread_mutex_t playlist_cond_mutex;
243
274
    pthread_mutex_t control_mutex;
 
275
    pthread_mutex_t read_mutex;
244
276
 
245
277
#ifdef GTK2_ENABLED
246
278
    // Pixbufs - GTK1 does not use Pixbufs
258
290
    GdkPixbuf *pb_sm_rew_down;
259
291
    GdkPixbuf *pb_sm_fs_up;
260
292
    GdkPixbuf *pb_sm_fs_down;
 
293
    GdkPixbuf *pb_src;
 
294
 
261
295
    int paused_wheninvisible;
262
296
#endif
263
297
 
306
340
    int novop;
307
341
    int noembed;
308
342
    char *ao;
 
343
    char *af;
309
344
    int loop;
310
345
    int rtsp_use_tcp;
311
346
    int keep_download;
323
358
    int autosync;
324
359
    int mc;
325
360
    char *useragent;
326
 
    
 
361
    int enable_smil;
 
362
    int enable_helix;
 
363
    int enable_wmp;
 
364
    int enable_qt;
 
365
    int enable_rm;
 
366
    int enable_gmp;
 
367
    int enable_mpeg;
 
368
    int enable_mp3;
 
369
    int enable_ogg;
 
370
 
327
371
    // JavaScript State
328
372
    int paused;
329
373
    int js_state;