aboutsummaryrefslogtreecommitdiff
path: root/sp/src/public/html/htmlmessages.h
blob: bfdc34758c5f89ffe07c4de6fca6e879979af2d5 (plain) (blame)
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: 
//=============================================================================//

#ifndef HTMLMESSAGES_H
#define HTMLMESSAGES_H

#ifdef _WIN32
#pragma once
#endif

//-----------------------------------------------------------------------------
// Purpose: Commands we IPC across to the html thread and get responses for
//-----------------------------------------------------------------------------
enum EHTMLCommands
{
	// input events
	eHTMLCommands_KeyUp,
	eHTMLCommands_KeyDown,
	eHTMLCommands_KeyChar,
	eHTMLCommands_MouseDown,
	eHTMLCommands_MouseUp,
	eHTMLCommands_MouseDblClick,
	eHTMLCommands_MouseWheel,	
	eHTMLCommands_MouseMove,
	eHTMLCommands_MouseLeave,

	// command events
	eHTMLCommands_BrowserCreate,
	eHTMLCommands_BrowserRemove,
	eHTMLCommands_BrowserErrorStrings,
	eHTMLCommands_BrowserSize,
	eHTMLCommands_BrowserPosition,
	eHTMLCommands_PostURL,
	eHTMLCommands_StopLoad,
	eHTMLCommands_Reload,
	eHTMLCommands_GoForward,
	eHTMLCommands_GoBack,
	eHTMLCommands_Copy,
	eHTMLCommands_Paste,
	eHTMLCommands_ExecuteJavaScript,
	eHTMLCommands_SetFocus,
	eHTMLCommands_HorizontalScrollBarSize,
	eHTMLCommands_VerticalScrollBarSize,
	eHTMLCommands_Find,
	eHTMLCommands_StopFind,
	eHTMLCommands_SetHorizontalScroll,
	eHTMLCommands_SetVerticalScroll,
	eHTMLCommands_SetZoomLevel,
	eHTMLCommands_ViewSource,
	eHTMLCommands_NeedsPaintResponse,
	eHTMLCommands_AddHeader,
	eHTMLCommands_GetZoom,
	eHTMLCommands_FileLoadDialogResponse,
	eHTMLCommands_LinkAtPosition,
	eHTMLCommands_ZoomToElementAtPosition,
	eHTMLCommands_SavePageToJPEG,
	eHTMLCommands_JSAlert,
	eHTMLCommands_JSConfirm,
	eHTMLCommands_CanGoBackandForward,
	eHTMLCommands_OpenSteamURL,
	eHTMLCommands_SizePopup,
	eHTMLCommands_SetCookie,
	eHTMLCommands_SetTargetFrameRate,
	eHTMLCommands_FullRepaint,
	eHTMLCommands_SetPageScale,
	eHTMLCommands_RequestFullScreen,
	eHTMLCommands_ExitFullScreen,
	eHTMLCommands_GetCookiesForURL,
	eHTMLCommands_ZoomToCurrentlyFocusedNode,
	eHTMLCommands_CloseFullScreenFlashIfOpen,
	eHTMLCommands_PauseFullScreenFlashMovieIfOpen,
	eHTMLCommands_GetFocusedNodeValue,

	// output back to the main thread
	eHTMLCommands_BrowserCreateResponse,
	eHTMLCommands_BrowserReady,
	eHTMLCommands_URLChanged,
	eHTMLCommands_FinishedRequest,
	eHTMLCommands_StartRequest,
	eHTMLCommands_ShowPopup,
	eHTMLCommands_HidePopup,
	eHTMLCommands_OpenNewTab,
	eHTMLCommands_PopupHTMLWindow,
	eHTMLCommands_PopupHTMLWindowResponse,
	eHTMLCommands_SetHTMLTitle,
	eHTMLCommands_LoadingResource,
	eHTMLCommands_StatusText,
	eHTMLCommands_SetCursor,
	eHTMLCommands_FileLoadDialog,
	eHTMLCommands_ShowToolTip,
	eHTMLCommands_UpdateToolTip,
	eHTMLCommands_HideToolTip,
	eHTMLCommands_SearchResults,
	eHTMLCommands_Close,
	eHTMLCommands_VerticalScrollBarSizeResponse,
	eHTMLCommands_HorizontalScrollBarSizeResponse,
	eHTMLCommands_GetZoomResponse,
	eHTMLCommands_StartRequestResponse,
	eHTMLCommands_NeedsPaint,
	eHTMLCommands_LinkAtPositionResponse,
	eHTMLCommands_ZoomToElementAtPositionResponse,
	eHTMLCommands_JSDialogResponse,
	eHTMLCommands_ScaleToValueResponse,
	eHTMLCommands_RequestFullScreenResponse,
	eHTMLCommands_GetCookiesForURLResponse,
	eHTMLCommands_NodeGotFocus,
	eHTMLCommands_SavePageToJPEGResponse,
	eHTMLCommands_GetFocusedNodeValueResponse,

	eHTMLCommands_None,

};

#endif // HTMLMESSAGES_H