Debian Codegraph @

contrib/externs/api/gadgets/shindig.js

raw symbols SCIP
1 /*
2 * Copyright 2010 Google Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17 /**
18 * @fileoverview Externs file for OpenSocial shindig libraries.
19 * Note this may not be comprehensive.
20 *
21 * @see http://incubator.apache.org/shindig/shindig-1.1.x/shindig-features/jsdoc
22 * @externs
23 */
24
25 // Root namespace for shindig related functionality.
26 var shindig = {};
27
28 /**
29 * Implements a safer random() method that is seeded from
30 * screen width/height and (presumably random/unguessable) mouse
31 * movement, in an effort to create a better seed for random().
32 * @return {number} The random number.
33 */
34 shindig.random = function() {};
35
36 /**
37 * Implements a SHA1 hasher.
38 * @return {{reset: function(), update:
39 * function((Array.<number>|string),number=), digest:
40 * function():Array.<number>, digestString: function():string}} SHA1
41 * hasher object. Methods of the returned object are: reset() which
42 * resets the internal accumulator, update(bytes, opt_length) which
43 * adds a byte array or string to the internal accumulator (or
44 * optionally just a prefix of length opt_length), digest() which
45 * returns a finalized hash as an array of 20 byte values, and
46 * digestString() which returns a hex-encoded string containing a
47 * finalized hash.
48 */
49 shindig.sha1 = function() {};