2016-12-01 01:59:57 +03:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* 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/. */
|
|
|
|
|
|
|
|
#ifndef AndroidUiThread_h__
|
|
|
|
#define AndroidUiThread_h__
|
|
|
|
|
2016-12-29 01:12:41 +03:00
|
|
|
#include <mozilla/RefPtr.h>
|
|
|
|
#include <nsThread.h>
|
|
|
|
|
2016-12-01 01:59:57 +03:00
|
|
|
class MessageLoop;
|
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
|
|
|
|
void CreateAndroidUiThread();
|
|
|
|
void DestroyAndroidUiThread();
|
2017-06-02 21:03:14 +03:00
|
|
|
int64_t RunAndroidUiTasks();
|
2016-12-01 01:59:57 +03:00
|
|
|
|
|
|
|
MessageLoop* GetAndroidUiThreadMessageLoop();
|
2016-12-29 01:12:41 +03:00
|
|
|
RefPtr<nsThread> GetAndroidUiThread();
|
2016-12-01 01:59:57 +03:00
|
|
|
|
|
|
|
} // namespace mozilla
|
|
|
|
|
|
|
|
#endif // AndroidUiThread_h__
|