2002-04-27 20:26:10 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
|
|
|
/* vim:expandtab:shiftwidth=4:tabstop=4:
|
|
|
|
*/
|
2012-05-21 15:12:37 +04: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/. */
|
2001-10-14 23:02:05 +04:00
|
|
|
|
|
|
|
#ifndef nsAppShell_h__
|
|
|
|
#define nsAppShell_h__
|
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
#include <glib.h>
|
|
|
|
#include "nsBaseAppShell.h"
|
2001-10-14 23:02:05 +04:00
|
|
|
#include "nsCOMPtr.h"
|
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
class nsAppShell : public nsBaseAppShell {
|
2002-04-27 20:26:10 +04:00
|
|
|
public:
|
2006-05-10 21:30:15 +04:00
|
|
|
nsAppShell() : mTag(0) {
|
|
|
|
mPipeFDs[0] = mPipeFDs[1] = 0;
|
|
|
|
}
|
2001-10-14 23:02:05 +04:00
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
// nsBaseAppShell overrides:
|
|
|
|
nsresult Init();
|
|
|
|
virtual void ScheduleNativeEventCallback();
|
2011-09-29 10:19:26 +04:00
|
|
|
virtual bool ProcessNextNativeEvent(bool mayWait);
|
2001-10-14 23:02:05 +04:00
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
private:
|
|
|
|
virtual ~nsAppShell();
|
2003-07-02 23:27:38 +04:00
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
static gboolean EventProcessorCallback(GIOChannel *source,
|
|
|
|
GIOCondition condition,
|
|
|
|
gpointer data);
|
2001-10-14 23:02:05 +04:00
|
|
|
|
2006-05-10 21:30:15 +04:00
|
|
|
int mPipeFDs[2];
|
2012-08-22 19:56:38 +04:00
|
|
|
unsigned mTag;
|
2001-10-14 23:02:05 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsAppShell_h__ */
|