Ignore:
Timestamp:
Jun 5, 2012, 9:51:10 AM (13 years ago)
Author:
dmik
Message:

icedtea-web: Wrap OS/2 HWND in WinOS2 HWND.

Java expects WinOS2 HWNDs while the plugin gets the OS/2 HWND
from the browser.

This commit also includes some source file reorganization (for clarity).

Location:
trunk/icedtea-web/plugin/icedteanp/os2
Files:
2 added
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.cc

    r357 r377  
    1 /* OS.cc
     1/* OS_OS2.cc
    22
    33   Copyright (C) 2009, 2010  Red Hat
     
    3737exception statement from your version. */
    3838
     39#define INCL_DOS
     40#define INCL_PM
     41#include <os2.h>
     42
    3943#include <stdlib.h>
    4044
    41 #include "OS.h"
    42 
    43 #ifdef __OS2__
     45#include "OS_OS2.h"
     46#include "OS_OS2_WinOS2.h"
    4447
    4548const char *icedtea_web_data_dir()
    4649{
    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;
    5154}
    5255
    5356const char *icedtea_web_jre_dir()
    5457{
    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;
    5962}
    6063
    61 #endif // __OS2__
     64bool init_os()
     65{
     66    return init_os_winos2();
     67}
  • trunk/icedtea-web/plugin/icedteanp/os2/OS_OS2.h

    r357 r377  
    1 /* OS.h
     1/* OS_OS2.h
    22
    33   Copyright (C) 2009, 2010  Red Hat
     
    3737exception statement from your version. */
    3838
    39 #ifndef __OS_H__
    40 #define __OS_H__
     39#ifndef __OS_OS2_H__
     40#define __OS_OS2_H__
    4141
    42 #ifdef __OS2__
    4342const char *icedtea_web_data_dir();
    4443const char *icedtea_web_jre_dir();
    45 #endif
    4644
    47 #endif // __OS_H__
     45bool init_os();
     46
     47void *wrap_window_handle (void *handle);
     48
     49#endif // __OS_OS2_H__
Note: See TracChangeset for help on using the changeset viewer.