Changeset 377
- Timestamp:
- Jun 5, 2012, 9:51:10 AM (13 years ago)
- Location:
- trunk/icedtea-web/plugin/icedteanp
- Files:
-
- 2 added
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/icedtea-web/plugin/icedteanp/IcedTeaNPPlugin.cc
r374 r377 45 45 #include <emx/startup.h> 46 46 #include <sys/socket.h> 47 #include "OS_OS2.h" 47 48 #endif 48 49 … … 61 62 #include "IcedTeaScriptablePluginObject.h" 62 63 #include "IcedTeaNPPlugin.h" 63 64 #include "OS.h"65 64 66 65 #ifdef __OS2__ … … 777 776 } 778 777 778 #ifdef __OS2__ 779 void *wnd = wrap_window_handle (window->window); 780 if (!wnd) 781 return NPERR_GENERIC_ERROR; 782 783 PLUGIN_DEBUG ("ITNP_SetWindow: wrapped window handle %d (%x) in %d (%x)\n", 784 window->window, window->window, wnd, wnd); 785 #endif 786 779 787 if (data->window_handle) 780 788 { 781 789 // The window already exists. 782 if (data->window_handle == w indow->window)790 if (data->window_handle == wnd) 783 791 { 784 792 // The parent window is the same as in previous calls. … … 851 859 852 860 // Store the window handle and dimensions 853 data->window_handle = w indow->window;861 data->window_handle = wnd; 854 862 data->window_width = window->width; 855 863 data->window_height = window->height; … … 2249 2257 return NPERR_NO_ERROR; 2250 2258 2259 #ifdef __OS2__ 2260 // perform OS-specific initialization 2261 if (!init_os()) 2262 { 2263 PLUGIN_ERROR ("Failed to perform OS-specific initialization."); 2264 return NPERR_GENERIC_ERROR; 2265 } 2266 #endif 2267 2251 2268 // Make sure the plugin data directory exists, creating it if 2252 2269 // necessary. -
trunk/icedtea-web/plugin/icedteanp/Makefile.kmk
r367 r377 14 14 DLLS += npicedt 15 15 npicedt_TEMPLATE = Cxx 16 npicedt_INCS = $(PATH_ROOT)/extra $(PATH_MOZILLA_INCS) $(PATH_GLIB_INCS) 16 npicedt_INCS = $(PATH_CURRENT) $(PATH_MOZILLA_INCS) $(PATH_GLIB_INCS) 17 npicedt_INCS.os2 = os2 17 18 npicedt_DEFS = MOZILLA_VERSION_COLLAPSED=$(MOZILLA_VERSION_COLLAPSED) \ 18 19 DETECT_DATA_DIR=$(DETECT_DATA_DIR) \ … … 28 29 -DPLUGIN_BOOTCLASSPATH="$(PLUGIN_BOOTCLASSPATH)" 29 30 npicedt_LIBS = $(PATH_GLIB_LIBS) pthread 31 npicedt_LIBS.os2 = kernel32.lib user32.lib 30 32 npicedt_LIBPATH = $(PATH_GLIB_LIBPATH) 33 npicedt_LIBPATH.os2 = kernel32.lib user32.lib $(SDK_ODIN_LIBPATH) 31 34 32 35 npicedt_SOURCES = \ … … 35 38 IcedTeaJavaRequestProcessor.cc \ 36 39 IcedTeaPluginRequestProcessor.cc \ 37 IcedTeaPluginUtils.cc \ 38 $(PATH_ROOT)/extra/OS.cc \ 40 IcedTeaPluginUtils.cc 41 42 npicedt_SOURCES.os2 = \ 43 os2/OS_OS2.cc \ 44 os2/OS_OS2_WinOS2.cc \ 39 45 $(PATH_ROOT)/plugin_os2.def 46 47 os2/OS_OS2_WinOS2.cc_SDKS.os2 += ODIN 40 48 41 49 PLUGIN_RC = $(npicedt_0_OUTDIR)/plugin_os2.rc -
trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.cc
r357 r377 1 /* OS .cc1 /* OS_OS2.cc 2 2 3 3 Copyright (C) 2009, 2010 Red Hat … … 37 37 exception statement from your version. */ 38 38 39 #define INCL_DOS 40 #define INCL_PM 41 #include <os2.h> 42 39 43 #include <stdlib.h> 40 44 41 #include "OS.h" 42 43 #ifdef __OS2__ 45 #include "OS_OS2.h" 46 #include "OS_OS2_WinOS2.h" 44 47 45 48 const char *icedtea_web_data_dir() 46 49 { 47 const char *home = getenv("ICEDTEA_WEB_DATA");48 if (!home)49 home = ICEDTEA_WEB_DATA_DIR;50 return home;50 const char *home = getenv("ICEDTEA_WEB_DATA"); 51 if (!home) 52 home = ICEDTEA_WEB_DATA_DIR; 53 return home; 51 54 } 52 55 53 56 const char *icedtea_web_jre_dir() 54 57 { 55 const char *jre = getenv("ICEDTEA_WEB_JRE");56 if (!jre)57 jre = ICEDTEA_WEB_JRE_DIR;58 return jre;58 const char *jre = getenv("ICEDTEA_WEB_JRE"); 59 if (!jre) 60 jre = ICEDTEA_WEB_JRE_DIR; 61 return jre; 59 62 } 60 63 61 #endif // __OS2__ 64 bool init_os() 65 { 66 return init_os_winos2(); 67 } -
trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.h
r357 r377 1 /* OS .h1 /* OS_OS2.h 2 2 3 3 Copyright (C) 2009, 2010 Red Hat … … 37 37 exception statement from your version. */ 38 38 39 #ifndef __OS_ H__40 #define __OS_ H__39 #ifndef __OS_OS2_H__ 40 #define __OS_OS2_H__ 41 41 42 #ifdef __OS2__43 42 const char *icedtea_web_data_dir(); 44 43 const char *icedtea_web_jre_dir(); 45 #endif46 44 47 #endif // __OS_H__ 45 bool init_os(); 46 47 void *wrap_window_handle (void *handle); 48 49 #endif // __OS_OS2_H__
Note:
See TracChangeset
for help on using the changeset viewer.