Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mobile
Path: blob/master/src/jdk.accessibility/windows/native/jaccessinspector/jaccessinspector.h
40957 views
1
/*
2
* Copyright (c) 2005, 2015, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation. Oracle designates this
8
* particular file as subject to the "Classpath" exception as provided
9
* by Oracle in the LICENSE file that accompanied this code.
10
*
11
* This code is distributed in the hope that it will be useful, but WITHOUT
12
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14
* version 2 for more details (a copy is included in the LICENSE file that
15
* accompanied this code).
16
*
17
* You should have received a copy of the GNU General Public License version
18
* 2 along with this work; if not, write to the Free Software Foundation,
19
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20
*
21
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22
* or visit www.oracle.com if you need additional information or have any
23
* questions.
24
*/
25
26
#define JACCESSINSPECTOR_LOG "jaccessinspector.log"
27
28
void CALLBACK TimerProc(HWND hWnd, UINT uTimerMsg, UINT uTimerID, DWORD dwTime);
29
LRESULT CALLBACK KeyboardProc(int code, WPARAM wParam, LPARAM lParam);
30
LRESULT CALLBACK MouseProc(int code, WPARAM wParam, LPARAM lParam);
31
32
BOOL InitWindow(HANDLE hInstance);
33
INT_PTR CALLBACK jaccessinspectorDialogProc( HWND hDlg, UINT message,
34
WPARAM wParam, LPARAM lParam );
35
36
void HandleJavaPropertyChange( long vmID, PropertyChangeEvent event,
37
AccessibleContext ac,
38
wchar_t *name, wchar_t *oldValue,
39
wchar_t *newValue );
40
41
void HandleJavaShutdown(long vmID);
42
void HandleJavaFocusGained(long vmID, FocusEvent event, AccessibleContext ac);
43
void HandleJavaFocusLost(long vmID, FocusEvent event, AccessibleContext ac);
44
45
void HandleJavaCaretUpdate(long vmID, CaretEvent event, AccessibleContext ac);
46
47
void HandleMouseClicked(long vmID, MouseEvent event, AccessibleContext ac);
48
void HandleMouseEntered(long vmID, MouseEvent event, AccessibleContext ac);
49
void HandleMouseExited(long vmID, MouseEvent event, AccessibleContext ac);
50
void HandleMousePressed(long vmID, MouseEvent event, AccessibleContext ac);
51
void HandleMouseReleased(long vmID, MouseEvent event, AccessibleContext ac);
52
53
void HandleMenuCanceled(long vmID, MenuEvent event, AccessibleContext ac);
54
void HandleMenuDeselected(long vmID, MenuEvent event, AccessibleContext ac);
55
void HandleMenuSelected(long vmID, MenuEvent event, AccessibleContext ac);
56
void HandlePopupMenuCanceled(long vmID, MenuEvent event, AccessibleContext ac);
57
void HandlePopupMenuWillBecomeInvisible( long vmID, MenuEvent event,
58
AccessibleContext ac );
59
void HandlePopupMenuWillBecomeVisible( long vmID, MenuEvent event,
60
AccessibleContext ac );
61
62
void HandlePropertyNameChange( long vmID, PropertyChangeEvent event,
63
AccessibleContext ac,
64
wchar_t *oldName, wchar_t *newName);
65
void HandlePropertyDescriptionChange( long vmID, PropertyChangeEvent event,
66
AccessibleContext ac,
67
wchar_t *oldDescription,
68
wchar_t *newDescription );
69
void HandlePropertyStateChange( long vmID, PropertyChangeEvent event,
70
AccessibleContext ac,
71
wchar_t *oldState, wchar_t *newState );
72
void HandlePropertyValueChange( long vmID, PropertyChangeEvent event,
73
AccessibleContext ac,
74
wchar_t *oldValue, wchar_t *newValue );
75
void HandlePropertySelectionChange( long vmID, PropertyChangeEvent event,
76
AccessibleContext ac );
77
void HandlePropertyTextChange( long vmID, PropertyChangeEvent event,
78
AccessibleContext ac );
79
void HandlePropertyCaretChange( long vmID, PropertyChangeEvent event,
80
AccessibleContext ac,
81
int oldPosition, int newPosition );
82
void HandlePropertyVisibleDataChange( long vmID, PropertyChangeEvent event,
83
AccessibleContext ac );
84
void HandlePropertyChildChange( long vmID, PropertyChangeEvent event,
85
AccessibleContext ac,
86
jobject oldChild, jobject newChild );
87
void HandlePropertyActiveDescendentChange(long vmID, PropertyChangeEvent event,
88
AccessibleContext ac,
89
jobject oldActiveDescendent,
90
jobject newActiveDescendent);
91
92
void HandlePropertyTableModelChange( long vmID, PropertyChangeEvent event,
93
AccessibleContext ac,
94
wchar_t *oldValue, wchar_t *newValue );
95
96
char *getAccessibleInfo( long vmID, AccessibleContext ac,
97
int x, int y, char *buffer, int bufsize );
98
99
char *getTimeAndDate();
100
void displayAndLogText(char *buffer, ...);
101
102
const char * const jaccessinspectorOptionsRegistryKey =
103
"Software\\JavaSoft\\Java Development Kit\\jaccessinspector";
104
BOOL SaveActiveEventOptionsToRegistry();
105
BOOL ReadActiveEventOptionsFromRegistry();
106
void ApplyEventOptions(HWND hWnd);
107
BOOL EnableDlgItem(HWND hDlg, int nIDDlgItem, BOOL bEnable);
108
void EnableMessageNavButtons();
109
void WINAPI AddToMessageHistory(const char * message);
110
BOOL UpdateMessageNumber();
111
INT_PTR CALLBACK GoToMessageDialogProc( HWND hDlg, UINT message, WPARAM wParam,
112
LPARAM lParam );
113
BOOL InitGoToMessageDialogBox(HANDLE hInstance);
114
BOOL ShouldCheckMonitorTheSameEventsAsJAWS();
115
void MaybeCheckMonitorTheSameEventsAsJAWS(HMENU menu);
116
BOOL ShouldCheckMonitorAllEvents();
117
void MaybeCheckMonitorAllEvents(HMENU menu);
118
119