dom/plugins/base/android/ANPBase.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/plugins/base/android/ANPBase.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,43 @@
     1.4 +/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include <stdlib.h>
    1.10 +#include "android_npapi.h"
    1.11 +#include "nsAutoPtr.h"
    1.12 +#include "nsISupportsImpl.h"
    1.13 +
    1.14 +#define NOT_IMPLEMENTED_FATAL() do {                                    \
    1.15 +    __android_log_print(ANDROID_LOG_ERROR, "GeckoPlugins",              \
    1.16 +                        "%s not implemented %s, %d",                    \
    1.17 +                        __PRETTY_FUNCTION__, __FILE__, __LINE__);       \
    1.18 +    abort();                                                            \
    1.19 +  } while(0)
    1.20 +
    1.21 +#define NOT_IMPLEMENTED()                                               \
    1.22 +    __android_log_print(ANDROID_LOG_ERROR, "GeckoPlugins",              \
    1.23 +                        "!!!!!!!!!!!!!!  %s not implemented %s, %d",    \
    1.24 +                        __PRETTY_FUNCTION__, __FILE__, __LINE__);       \
    1.25 +
    1.26 +void InitAudioTrackInterfaceV0(ANPAudioTrackInterfaceV0 *i);
    1.27 +void InitAudioTrackInterfaceV1(ANPAudioTrackInterfaceV1* i);
    1.28 +void InitBitmapInterface(ANPBitmapInterfaceV0 *i);
    1.29 +void InitCanvasInterface(ANPCanvasInterfaceV0 *i);
    1.30 +void InitEventInterface(ANPEventInterfaceV0 *i);
    1.31 +void InitLogInterface(ANPLogInterfaceV0 *i);
    1.32 +void InitMatrixInterface(ANPMatrixInterfaceV0 *i);
    1.33 +void InitPaintInterface(ANPPaintInterfaceV0 *i);
    1.34 +void InitPathInterface(ANPPathInterfaceV0 *i);
    1.35 +void InitSurfaceInterface(ANPSurfaceInterfaceV0 *i);
    1.36 +void InitSystemInterface(ANPSystemInterfaceV0 *i);
    1.37 +void InitSystemInterfaceV1(ANPSystemInterfaceV1 *i);
    1.38 +void InitSystemInterfaceV2(ANPSystemInterfaceV2 *i);
    1.39 +void InitTypeFaceInterface(ANPTypefaceInterfaceV0 *i);
    1.40 +void InitWindowInterface(ANPWindowInterfaceV0 *i);
    1.41 +void InitWindowInterfaceV1(ANPWindowInterfaceV1 *i);
    1.42 +void InitWindowInterfaceV2(ANPWindowInterfaceV2 *i);
    1.43 +void InitVideoInterfaceV0(ANPVideoInterfaceV0 *i);
    1.44 +void InitVideoInterfaceV1(ANPVideoInterfaceV1 *i);
    1.45 +void InitOpenGLInterface(ANPOpenGLInterfaceV0 *i);
    1.46 +void InitNativeWindowInterface(ANPNativeWindowInterfaceV0 *i);

mercurial