2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: c++; tab-width: 2; indent-tabs-mode: nil; -*- */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef nsAppShell_h__
|
|
|
|
#define nsAppShell_h__
|
|
|
|
|
|
|
|
#include "nsBaseAppShell.h"
|
|
|
|
#define INCL_DEV
|
|
|
|
#define INCL_WIN
|
|
|
|
#define INCL_DOS
|
|
|
|
#include <os2.h>
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Native OS/2 Application shell wrapper
|
|
|
|
*/
|
|
|
|
|
|
|
|
class nsAppShell : public nsBaseAppShell
|
|
|
|
{
|
|
|
|
public:
|
2013-10-08 11:47:49 -07:00
|
|
|
nsAppShell() : mEventWnd(nullptr) {}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
nsresult Init();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void ScheduleNativeEventCallback();
|
2011-09-28 23:19:26 -07:00
|
|
|
virtual bool ProcessNextNativeEvent(bool mayWait);
|
2007-03-22 10:30:00 -07:00
|
|
|
virtual ~nsAppShell();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
HWND mEventWnd;
|
|
|
|
|
|
|
|
friend MRESULT EXPENTRY EventWindowProc(HWND, ULONG, MPARAM, MPARAM);
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // nsAppShell_h__
|
|
|
|
|