Debian Codegraph @

contrib/externs/api/gadgets/plusone.js

raw symbols SCIP
1 /*
2 * Copyright 2011 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 Extern declarations for namespaces and functions that the
19 * plusone widget defines.
20 *
21 * Contact [email protected] for any changes.
22 *
23 * @see https://code.google.com/apis/+1button/#jsapi
24 * @externs
25 */
26
27 /**
28 * Namespace associated with Google APIs.
29 * @type {Object}
30 */
31 var gapi = {};
32
33
34 /**
35 * Namespace associated with Plusone API.
36 * @type {Object}
37 */
38 gapi.plusone = {};
39
40
41 /**
42 * This renders all +1 tags/classes in the specified container, which may be
43 * either an element (by value) or a string element ID. This function would be
44 * used only if the <script> tag sets parsetags to explicit, which you might do
45 * for performance reasons.
46 * @param {Element=} opt_container The container for which to render +1 buttons.
47 * If the container parameter is omitted, all +1 tags and classes on the
48 * page will be rendered.
49 */
50 gapi.plusone.go = function(opt_container) {};
51
52
53 /**
54 * This renders a +1 button widget within the specified container element.
55 * @param {Element|string} id An element by value or a string element ID.
56 * @param {Object} params +1 tag parameters.
57 */
58 gapi.plusone.render = function(id, params) {};
59
60
61 /**
62 * Container to define user supplied configuration for the plusone button.
63 */
64 var ___gcfg = {};