| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright 2009, Google Inc. |    2  * Copyright 2009, Google Inc. | 
|    3  * All rights reserved. |    3  * All rights reserved. | 
|    4  * |    4  * | 
|    5  * Redistribution and use in source and binary forms, with or without |    5  * Redistribution and use in source and binary forms, with or without | 
|    6  * modification, are permitted provided that the following conditions are |    6  * modification, are permitted provided that the following conditions are | 
|    7  * met: |    7  * met: | 
|    8  * |    8  * | 
|    9  *     * Redistributions of source code must retain the above copyright |    9  *     * Redistributions of source code must retain the above copyright | 
|   10  * notice, this list of conditions and the following disclaimer. |   10  * notice, this list of conditions and the following disclaimer. | 
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  217     return painted; |  217     return painted; | 
|  218   } |  218   } | 
|  219   bool got_dblclick() const { return got_dblclick_; } |  219   bool got_dblclick() const { return got_dblclick_; } | 
|  220   void set_got_dblclick(bool got_dblclick) { got_dblclick_ = got_dblclick; } |  220   void set_got_dblclick(bool got_dblclick) { got_dblclick_ = got_dblclick; } | 
|  221 #elif defined(OS_LINUX) |  221 #elif defined(OS_LINUX) | 
|  222   void SetGtkEventSource(GtkWidget *widget); |  222   void SetGtkEventSource(GtkWidget *widget); | 
|  223   gboolean OnGtkConfigure(GtkWidget *widget, |  223   gboolean OnGtkConfigure(GtkWidget *widget, | 
|  224                           GdkEventConfigure *configure_event); |  224                           GdkEventConfigure *configure_event); | 
|  225   gboolean OnGtkDelete(GtkWidget *widget, |  225   gboolean OnGtkDelete(GtkWidget *widget, | 
|  226                        GdkEvent *configure); |  226                        GdkEvent *configure); | 
 |  227   void SetDisplay(Display *display); | 
|  227 #elif defined(OS_MACOSX) |  228 #elif defined(OS_MACOSX) | 
|  228   void SetFullscreenOverlayMacWindow(WindowRef window) { |  229   void SetFullscreenOverlayMacWindow(WindowRef window) { | 
|  229     mac_fullscreen_overlay_window_ = window; |  230     mac_fullscreen_overlay_window_ = window; | 
|  230   } |  231   } | 
|  231  |  232  | 
|  232   WindowRef GetFullscreenOverlayMacWindow() { |  233   WindowRef GetFullscreenOverlayMacWindow() { | 
|  233     return mac_fullscreen_overlay_window_; |  234     return mac_fullscreen_overlay_window_; | 
|  234   } |  235   } | 
|  235  |  236  | 
|  236   void SetFullscreenMacWindow(WindowRef window) { |  237   void SetFullscreenMacWindow(WindowRef window) { | 
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  272   // Currently its only task is to hide the fullscreen message at the right |  273   // Currently its only task is to hide the fullscreen message at the right | 
|  273   // time. |  274   // time. | 
|  274   void FullscreenIdle(); |  275   void FullscreenIdle(); | 
|  275   double  time_to_hide_overlay_; |  276   double  time_to_hide_overlay_; | 
|  276   WindowRef mac_fullscreen_window_;  // NULL if not in fullscreen modee |  277   WindowRef mac_fullscreen_window_;  // NULL if not in fullscreen modee | 
|  277   WindowRef mac_fullscreen_overlay_window_;  // NULL if not in fullscreen mode |  278   WindowRef mac_fullscreen_overlay_window_;  // NULL if not in fullscreen mode | 
|  278   Ptr mac_fullscreen_state_; |  279   Ptr mac_fullscreen_state_; | 
|  279  |  280  | 
|  280 #endif  //  OS_MACOSX |  281 #endif  //  OS_MACOSX | 
|  281 #ifdef OS_LINUX |  282 #ifdef OS_LINUX | 
|  282   Display *display_; |  | 
|  283   Window window_; |  283   Window window_; | 
 |  284   Window fullscreen_window_; | 
|  284  |  285  | 
|  285   // Xt mode |  286   // Xt mode | 
|  286   Widget xt_widget_; |  287   Widget xt_widget_; | 
|  287   XtAppContext xt_app_context_; |  288   XtAppContext xt_app_context_; | 
|  288   XtIntervalId xt_interval_; |  289   XtIntervalId xt_interval_; | 
|  289   Time last_click_time_; |  290   Time last_click_time_; | 
|  290  |  291  | 
|  291   // XEmbed mode |  292   // XEmbed mode | 
|  292   Window drawable_; |  293   Window drawable_; | 
|  293   GtkWidget *gtk_container_; |  294   GtkWidget *gtk_container_; | 
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  470   int fullscreen_region_width_; |  471   int fullscreen_region_width_; | 
|  471   int fullscreen_region_height_; |  472   int fullscreen_region_height_; | 
|  472   int fullscreen_region_mode_id_; |  473   int fullscreen_region_mode_id_; | 
|  473 #ifdef OS_WIN |  474 #ifdef OS_WIN | 
|  474   HWND hWnd_;          // The window we are currently drawing to (use this). |  475   HWND hWnd_;          // The window we are currently drawing to (use this). | 
|  475   HWND plugin_hWnd_;   // The window we were given inside the browser. |  476   HWND plugin_hWnd_;   // The window we were given inside the browser. | 
|  476   HWND content_hWnd_;  // The window containing the D3D or OpenGL content. |  477   HWND content_hWnd_;  // The window containing the D3D or OpenGL content. | 
|  477   HCURSOR cursors_[o3d::Cursor::NUM_CURSORS];  // loaded windows cursors. |  478   HCURSOR cursors_[o3d::Cursor::NUM_CURSORS];  // loaded windows cursors. | 
|  478   HCURSOR hCursor_; |  479   HCURSOR hCursor_; | 
|  479   bool painted_once_; |  480   bool painted_once_; | 
 |  481 #elif defined(OS_LINUX) | 
 |  482   Display *display_; | 
 |  483   Cursor cursors_[o3d::Cursor::NUM_CURSORS];  // loaded windows cursors. | 
|  480 #endif  // OS_WIN |  484 #endif  // OS_WIN | 
|  481  |  485  | 
|  482 #if defined(CB_SERVICE_REMOTE) |  486 #if defined(CB_SERVICE_REMOTE) | 
|  483   NPObject* gpu_plugin_object_; |  487   NPObject* gpu_plugin_object_; | 
|  484 #endif |  488 #endif | 
|  485 }; |  489 }; | 
|  486  |  490  | 
|  487 }  // namespace o3d |  491 }  // namespace o3d | 
|  488 }  // namespace glue |  492 }  // namespace glue | 
|  489  |  493  | 
|  490  |  494  | 
|  491 #endif  // O3D_PLUGIN_CROSS_O3D_GLUE_H_ |  495 #endif  // O3D_PLUGIN_CROSS_O3D_GLUE_H_ | 
| OLD | NEW |