webKit.h
1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/*
This file is a part of the NVDA project.
URL: http://www.nvda-project.org/
Copyright 2011 NV Access Inc
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2.0, as published by
the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This license can be found at:
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
*/
#ifndef VIRTUALBUFFER_BACKENDS_WEBKIT_H
#define VIRTUALBUFFER_BACKENDS_WEBKIT_H
#include <map>
#include <vbufBase/backend.h>
class WebKitVBufStorage_controlFieldNode_t;
class WebKitVBufBackend_t: public VBufBackend_t {
private:
VBufStorage_fieldNode_t* fillVBuf(int docHandle, IAccessible* pacc, VBufStorage_buffer_t* buffer,
VBufStorage_controlFieldNode_t* parentNode, VBufStorage_fieldNode_t* previousNode
);
int idCounter;
protected:
static void CALLBACK renderThread_winEventProcHook(HWINEVENTHOOK hookID, DWORD eventID, HWND hwnd, long objectID, long childID, DWORD threadID, DWORD time);
virtual void renderThread_initialize();
virtual void renderThread_terminate();
virtual void render(VBufStorage_buffer_t* buffer, int docHandle, int ID, VBufStorage_controlFieldNode_t* oldNode);
//virtual ~WebKitVBufBackend_t();
std::map<IAccessible*, WebKitVBufStorage_controlFieldNode_t*> accessiblesToNodes;
friend class WebKitVBufStorage_controlFieldNode_t;
public:
WebKitVBufBackend_t(int docHandle, int ID);
virtual int getNativeHandleForNode(VBufStorage_controlFieldNode_t* node);
virtual VBufStorage_controlFieldNode_t* getNodeForNativeHandle(int nativeHandle);
};
#endif