summaryrefslogtreecommitdiff
path: root/vcl/inc/android/androidinst.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/android/androidinst.hxx')
-rw-r--r--vcl/inc/android/androidinst.hxx29
1 files changed, 28 insertions, 1 deletions
diff --git a/vcl/inc/android/androidinst.hxx b/vcl/inc/android/androidinst.hxx
index 3b026b0d9357..10d17c53b8b5 100644
--- a/vcl/inc/android/androidinst.hxx
+++ b/vcl/inc/android/androidinst.hxx
@@ -30,22 +30,49 @@
#ifndef ANDROID_SALINST_H
#define ANDROID_SALINST_H
+#include <EGL/egl.h>
+#include <GLES/gl.h>
+
+#include <android/input.h>
+#include <android/native_window.h>
#include <headless/svpinst.hxx>
+#include <headless/svpframe.hxx>
class AndroidSalInstance : public SvpSalInstance
{
+ void BlitFrameToWindow(ANativeWindow_Buffer *pOutBuffer,
+ const basebmp::BitmapDeviceSharedPtr& aDev);
public:
AndroidSalInstance( SalYieldMutex *pMutex );
virtual ~AndroidSalInstance();
+ static AndroidSalInstance *getInstance();
virtual SalSystem* CreateSalSystem();
+ // frame management
+ void GetWorkArea( Rectangle& rRect );
+ SalFrame* CreateFrame( SalFrame* pParent, sal_uLong nStyle );
+ SalFrame* CreateChildFrame( SystemParentData* pParent, sal_uLong nStyle );
+
// mainloop pieces
virtual void Wakeup();
virtual bool AnyInput( sal_uInt16 nType );
+
+ // incoming android event handlers:
+ void onAppCmd (struct android_app* app, int32_t cmd);
+ int32_t onInputEvent (struct android_app* app, AInputEvent* event);
+ void RedrawWindows(ANativeWindow *pWindow);
+ SalFrame *getFocusFrame() const;
+
protected:
virtual void DoReleaseYield( int nTimeoutMS );
- struct android_app *app;
+ struct android_app *mpApp;
+ bool mbQueueReDraw;
+
+private:
+ EGLDisplay mxDisplay;
+ EGLSurface mxSurface;
+ EGLContext mxContext;
};
#endif // ANDROID_SALINST_H