~didrocks/+junk/face-detection-15.04

« back to all changes in this revision

Viewing changes to facedetection/www/bower_components/google-apis/google-legacy-loader.html

  • Committer: Didier Roche
  • Date: 2016-05-10 23:09:11 UTC
  • Revision ID: didier.roche@canonical.com-20160510230911-c7xr490zrj3yrzxd
New version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.txt
 
5
The complete set of contributors may be found at https://polymer.github.io/CONTRIBUTORS.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/PATENTS.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
<!--
 
14
Dynamically loads the legacy Google JavaScript API Loader (https://developers.google.com/loader/).
 
15
 
 
16
Fires `api-load` event when ready.
 
17
-->
 
18
<script>
 
19
  Polymer({
 
20
 
 
21
    is: 'google-legacy-loader',
 
22
 
 
23
    behaviors: [
 
24
      Polymer.IronJsonpLibraryBehavior
 
25
    ],
 
26
 
 
27
    properties: {
 
28
 
 
29
      /** @private */
 
30
      libraryUrl: {
 
31
        type: String,
 
32
        value: 'https://www.google.com/jsapi?callback=%%callback%%'
 
33
      },
 
34
 
 
35
      /**
 
36
       * Fired when the API library is loaded and available.
 
37
       * @event js-api-load
 
38
       */
 
39
      /**
 
40
       * Name of event fired when library is loaded and available.
 
41
       */
 
42
      notifyEvent: {
 
43
        type: String,
 
44
        value: 'api-load'
 
45
      }
 
46
    },
 
47
 
 
48
    /**
 
49
     * Wrapper for `google` API namespace.
 
50
     */
 
51
    get api() {
 
52
      return google;
 
53
    }
 
54
  });
 
55
</script>