FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/javascript/externs/web/window.js at main · github/codeql · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github
/
codeql
Public
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
10k
Code
Issues
997
Pull requests
463
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
javascript
/
externs
/
web
/
window.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
208 lines (179 loc) · 5.1 KB
Breadcrumbs
codeql
/
javascript
/
externs
/
web
/
window.js
Copy path
File metadata and controls
208 lines (179 loc) · 5.1 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
/*
* Copyright 2008 The Closure Compiler Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
@fileoverview
JavaScript Built-Ins for windows properties.
*
*
@externs
*
@author
stevey@google.com (Steve Yegge)
*/
// Window properties
// Only common properties are here. Others such as open()
// should be used with an explicit Window object.
/**
*
@type
{
!Window
}
*
@see
https://developer.mozilla.org/en/DOM/window.top
*
@const
*/
var
top
;
/**
*
@type
{
!Navigator
}
*
@see
https://developer.mozilla.org/en/DOM/window.navigator
*
@const
*/
var
navigator
;
/**
*
@type
{
!HTMLDocument
}
*
@see
https://developer.mozilla.org/en/DOM/window.document
*
@const
*/
var
document
;
/**
*
@type
{
!Location
}
*
@see
https://developer.mozilla.org/en/DOM/window.location
*
@const
*
@suppress
{duplicate}
*
@implicitCast
*/
var
location
;
/**
*
@type
{
!Screen
}
*
@see
https://developer.mozilla.org/En/DOM/window.screen
*
@const
*/
var
screen
;
/**
*
@type
{
!Window
}
*
@see
https://developer.mozilla.org/En/DOM/Window.self
*
@const
*/
var
self
;
// Magic functions for Firefox's LiveConnect.
// We'll probably never use these in practice. But redefining them
// will fire up the JVM, so we want to reserve the symbol names.
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaArray
*/
var
JavaArray
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaClass
*/
var
JavaClass
;
// We just ripped this from the FF source; it doesn't appear to be
// publicly documented.
var
JavaMember
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaObject
*/
var
JavaObject
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/JavaPackage
*/
var
JavaPackage
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/Packages
*/
var
Packages
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/java
*/
var
java
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/netscape
*/
var
netscape
;
/**
*
@see
https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/sun
*/
var
sun
;
/**
*
@param
{
*
} message
*
@see
https://developer.mozilla.org/en/DOM/window.alert
*
@return
{
undefined
}
*/
function
alert
(
message
)
{
}
/**
*
@param
{
number|undefined|null
} immediateID
*
@see
https://developer.mozilla.org/en-US/docs/DOM/window.clearImmediate
*
@see
http://msdn.microsoft.com/en-us/library/ie/hh924825(v=vs.85).aspx
*
@return
{
undefined
}
*/
function
clearImmediate
(
immediateID
)
{
}
/**
*
@param
{
number|undefined?
} intervalID
*
@see
https://developer.mozilla.org/en/DOM/window.clearInterval
*
@suppress
{duplicate}
*
@return
{
undefined
}
*/
function
clearInterval
(
intervalID
)
{
}
/**
*
@param
{
number|undefined?
} timeoutID
*
@see
https://developer.mozilla.org/en/DOM/window.clearTimeout
*
@suppress
{duplicate}
*
@return
{
undefined
}
*/
function
clearTimeout
(
timeoutID
)
{
}
/**
*
@param
{
*
} message
*
@return
{
boolean
}
*
@see
https://developer.mozilla.org/en/DOM/window.confirm
*/
function
confirm
(
message
)
{
}
/**
*
@see
https://developer.mozilla.org/en/DOM/window.dump
*
@param
{
*
} x
*
@return
{
undefined
}
*/
function
dump
(
x
)
{
}
/**
*
@param
{
string
} message
*
@param
{
string=
} opt_value
*
@return
{
?string
}
*
@see
https://developer.mozilla.org/en/DOM/window.prompt
*/
function
prompt
(
message
,
opt_value
)
{
}
/**
*
@param
{
function()
} callback
*
@return
{
number
}
*
@see
https://developer.mozilla.org/en-US/docs/DOM/window.setImmediate
*
@see
http://msdn.microsoft.com/en-us/library/ie/hh773176(v=vs.85).aspx
*/
function
setImmediate
(
callback
)
{
}
/**
*
@param
{
Function|string
} callback
*
@param
{
number=
} opt_delay
*
@return
{
number
}
*
@see
https://developer.mozilla.org/en/DOM/window.setInterval
*
@see
https://html.spec.whatwg.org/multipage/webappapis.html#timers
*/
function
setInterval
(
callback
,
opt_delay
)
{
}
/**
*
@param
{
Function|string
} callback
*
@param
{
number=
} opt_delay
*
@param
{
...*
} var_args
*
@return
{
number
}
*
@see
https://developer.mozilla.org/en/DOM/window.setTimeout
*
@see
https://html.spec.whatwg.org/multipage/webappapis.html#timers
*/
function
setTimeout
(
callback
,
opt_delay
,
var_args
)
{
}
/**
* Returns whether the object has a property with the specified name.
*
*
@param
{
*
} propertyName Implicitly cast to a string.
*
@return
{
boolean
}
*
@nosideeffects
*
@see
http://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwnProperty
*/
function
hasOwnProperty
(
propertyName
)
{
}
Back
|
FazBrowse Home
|
New Git URL