Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(77)

Side by Side Diff: polymer_1.0.4/bower_components/google-apis/google-realtime-api.html

Issue 1205703007: Add polymer 1.0 to npm_modules (Closed) Base URL: https://chromium.googlesource.com/infra/third_party/npm_modules.git@master
Patch Set: Renamed folder to 1.0.4 Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!--
2 Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
3 This code may only be used under the BSD style license found at https://polymer. github.io/LICENSE.txt
4 The complete set of authors may be found at https://polymer.github.io/AUTHORS.tx t
5 The complete set of contributors may be found at https://polymer.github.io/CONTR IBUTORS.txt
6 Code distributed by Google as part of the polymer project is also
7 subject to an additional IP rights grant found at https://polymer.github.io/PATE NTS.txt
8 -->
9
10 <link rel="import" href="../polymer/polymer.html">
11 <link rel="import" href="../iron-jsonp-library/iron-jsonp-library.html">
12
13 <script>
14 /**
15 Dynamically loads the Google Drive Realtime API, firing the `api-load` event whe n ready.
16
17 Any number of components can use `<google-realtime-api>` elements, and the libra ry will only be loaded once.
18
19 */
20 Polymer({
21
22 is: 'google-realtime-api',
23
24 behaviors: [
25 Polymer.IronJsonpLibraryBehavior
26 ],
27
28 properties: {
29
30 /** @private */
31 libraryUrl: {
32 type: String,
33 value: 'https://apis.google.com/js/drive-realtime.js?onload=%%callback%% '
34 },
35
36 /**
37 * Fired when the API library is loaded and available.
38 * @event api-load
39 */
40 /**
41 * Name of event fired when library is loaded and available.
42 */
43 notifyEvent: {
44 type: String,
45 value: 'api-load'
46 }
47
48 },
49
50 /**
51 * Returns `gapi.drive.realtime`
52 */
53 get api() {
54 return gapi.drive.realtime;
55 }
56
57 });
58 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698