2018-11-30 22:52:05 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2002-04-27 20:26:10 +04:00
|
|
|
/* 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();
|
2017-11-06 06:37:28 +03:00
|
|
|
virtual void ScheduleNativeEventCallback() override;
|
|
|
|
virtual bool ProcessNextNativeEvent(bool mayWait) override;
|
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__ */
|