Lines Matching refs:if
45 if ($Object.hasOwnProperty(this.unavailableApiFunctions_, apiName))
47 if (!$Object.hasOwnProperty(this.apiFunctions_, apiName))
58 // Logs API calls to the Activity Log if it doesn't go through an
60 if (!sendRequestHandler.getCalledSendRequest())
130 if ($RegExp.test(platforms[i][0], navigator.appVersion)) {
205 if (!isSchemaNodeSupported(this.schema_, platform, manifestVersion))
208 if (!hook)
226 if (shouldCheck)
230 if ($Object.hasOwnProperty(schema, type)) {
232 if ('unprivileged' in node)
237 if (shouldCheck)
241 if ($Object.hasOwnProperty(schema, property) &&
253 if (!isSchemaNodeSupported(schema, platform, manifestVersion)) {
269 if (schema.types) {
271 if (!isSchemaNodeSupported(t, platform, manifestVersion))
288 if (schema.functions) {
290 if (functionDef.name in mod) {
295 if (!isSchemaNodeSupported(functionDef, platform, manifestVersion)) {
304 if (!GetAvailability(apiFunction.name).is_available ||
313 if (logging.DCHECK_IS_ON() &&
325 if (this.updateArgumentsPreValidate)
329 if (this.updateArgumentsPostValidate) {
338 if (this.handleRequest) {
350 // Validate return value if in sanity check mode.
351 if (logging.DCHECK_IS_ON() && this.definition.returns)
359 if (schema.events) {
361 if (eventDef.name in mod) {
365 if (!isSchemaNodeSupported(eventDef, platform, manifestVersion))
369 if (!GetAvailability(eventName).is_available ||
375 if (eventDef.filters && eventDef.filters.length > 0)
379 if (this.customEvent_) {
390 if (!properties)
394 if (propertyName in m)
396 if (!isSchemaNodeSupported(propertyDef, platform, manifestVersion))
398 if (!GetAvailability(schema.namespace + "." +
405 if (value) {
411 if (type === 'integer' || type === 'number') {
413 } else if (type === 'boolean') {
415 } else if (propertyDef['$ref']) {
429 } else if (type === 'object') {
432 } else if (type !== 'string') {
443 // This generate() call is considered successful if any functions,
450 if we did these checks after the
455 if (schema.namespace == 'webViewRequest') {
461 if (schema.namespace == 'runtime' &&
466 if (!success) {
468 // If an API was available it should have been successfully generated.