NPCallbacksBlackBerry.h [plain text]
#ifndef NPCallbacksBlackBerry_h
#define NPCallbacksBlackBerry_h
#include "PluginView.h"
#include <pthread.h>
namespace WebCore {
struct PthreadMutexLocker {
PthreadMutexLocker(pthread_mutex_t*);
~PthreadMutexLocker();
pthread_mutex_t* m_mutex;
};
struct PthreadReadLocker {
PthreadReadLocker(pthread_rwlock_t*);
~PthreadReadLocker();
pthread_rwlock_t* m_rwlock;
};
struct PthreadWriteLocker {
PthreadWriteLocker(pthread_rwlock_t*);
~PthreadWriteLocker();
pthread_rwlock_t* m_rwlock;
};
#if USE(ACCELERATED_COMPOSITING)
struct HolePunchData {
int x, y;
int w, h;
RefPtr<PlatformLayer> layer;
};
void npSetHolePunchHandler(void* holePunchData);
#endif
void setVisibleRects(NPP, const NPRect rects[], int32_t count);
void clearVisibleRects(NPP);
void showKeyboard(NPP, bool value);
void requestFullScreen(NPP);
void exitFullScreen(NPP);
void requestCenterFitZoom(NPP);
void lockOrientation(NPP, bool landscape);
void unlockOrientation(NPP);
void preventIdle(NPP, bool preventIdle);
NPSurface lockBackBuffer(NPP);
void unlockBackBuffer(NPP);
NPSurface lockReadFrontBuffer(NPP);
void unlockReadFrontBuffer(NPP);
void swapBuffers(NPP);
bool createBuffers(NPP, NPSurfaceFormat, int width, int height);
bool destroyBuffers(NPP);
bool resizeBuffers(NPP, NPSurfaceFormat, int width, int height);
void setHolePunch(NPP, int x, int y, int width, int height);
extern NPCallbacks s_NpCallbacks;
}
#endif