2010-06-04 00:56:36 +04:00
|
|
|
/* -*- Mode: c++; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
|
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/. */
|
2010-06-04 00:56:36 +04:00
|
|
|
|
2011-11-02 19:35:11 +04:00
|
|
|
#include "mozilla/Hal.h"
|
2012-06-06 06:08:30 +04:00
|
|
|
#include "nsIFile.h"
|
2010-06-15 06:17:37 +04:00
|
|
|
#include "nsString.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
#include "AndroidBridge.h"
|
2015-04-25 05:26:51 +03:00
|
|
|
#include "AndroidContentController.h"
|
2011-12-21 23:05:23 +04:00
|
|
|
#include "AndroidGraphicBuffer.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
#include <jni.h>
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <dlfcn.h>
|
2011-11-15 07:12:14 +04:00
|
|
|
#include <stdio.h>
|
2012-04-28 00:04:47 +04:00
|
|
|
#include <unistd.h>
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
#include "nsAppShell.h"
|
|
|
|
#include "nsWindow.h"
|
|
|
|
#include <android/log.h>
|
2010-08-31 21:37:54 +04:00
|
|
|
#include "nsIObserverService.h"
|
|
|
|
#include "mozilla/Services.h"
|
2013-09-25 00:45:13 +04:00
|
|
|
#include "nsThreadUtils.h"
|
2010-06-04 00:56:36 +04:00
|
|
|
|
2012-01-13 17:26:50 +04:00
|
|
|
#include "mozilla/unused.h"
|
2015-08-05 00:47:28 +03:00
|
|
|
#include "mozilla/MathAlgorithms.h"
|
2014-08-05 20:41:10 +04:00
|
|
|
#include "mozilla/UniquePtr.h"
|
2012-01-13 17:26:50 +04:00
|
|
|
|
2013-07-30 22:03:40 +04:00
|
|
|
#include "mozilla/layers/APZCTreeManager.h"
|
2012-05-30 20:10:49 +04:00
|
|
|
#include "nsPluginInstanceOwner.h"
|
2014-10-21 17:53:00 +04:00
|
|
|
#include "AndroidSurfaceTexture.h"
|
2013-06-14 20:42:10 +04:00
|
|
|
|
2010-06-04 00:56:36 +04:00
|
|
|
using namespace mozilla;
|
2013-03-01 12:38:47 +04:00
|
|
|
using namespace mozilla::dom;
|
2013-04-26 21:24:28 +04:00
|
|
|
using namespace mozilla::layers;
|
2015-01-10 03:33:57 +03:00
|
|
|
using namespace mozilla::widget;
|
2010-06-04 00:56:36 +04:00
|
|
|
|
|
|
|
/* Forward declare all the JNI methods as extern "C" */
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
/*
|
|
|
|
* Incoming JNI methods
|
|
|
|
*/
|
2012-07-20 23:20:51 +04:00
|
|
|
|
2012-04-25 02:53:57 +04:00
|
|
|
}
|