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