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

Side by Side Diff: appengine/swarming/elements/res/imp/stats/load-charts-api.html

Issue 2177353002: Add top level app element (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-py@hello-oauth
Patch Set: Address feedback and introduce new res/ layer of direction Created 4 years, 4 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
1 <!-- 1 <!--
2 # Copyright 2016 The LUCI Authors. All rights reserved. 2 # Copyright 2016 The LUCI Authors. All rights reserved.
3 # Use of this source code is governed by the Apache v2.0 license that can be 3 # Use of this source code is governed by the Apache v2.0 license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 --> 5 -->
6 <!-- 6 <!--
7 This in an HTML Import-able file that contains the definition 7 This in an HTML Import-able file that contains the definition
8 of the following elements: 8 of the following elements:
9 9
10 <load-charts-api> 10 <load-charts-api>
(...skipping 11 matching lines...) Expand all
22 loaded: Boolean, true if the charts api has been loaded. 22 loaded: Boolean, true if the charts api has been loaded.
23 23
24 Methods: 24 Methods:
25 None. 25 None.
26 26
27 Events: 27 Events:
28 None. 28 None.
29 --> 29 -->
30 30
31 <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></ script> 31 <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></ script>
32 <link rel="import" href="../bower_components/google-apis/google-legacy-loader.ht ml"> 32 <link rel="import" href="/imp/bower_components/google-apis/google-legacy-loader. html">
33 33
34 <dom-module id="load-charts-api"> 34 <dom-module id="load-charts-api">
35 <template> 35 <template>
36 36
37 <google-legacy-loader on-api-load="_readyForAction"></google-legacy-loader> 37 <google-legacy-loader on-api-load="_readyForAction"></google-legacy-loader>
38 38
39 </template> 39 </template>
40 <script> 40 <script>
41 Polymer({ 41 Polymer({
42 is: 'load-charts-api', 42 is: 'load-charts-api',
43 properties: { 43 properties: {
44 loaded: { 44 loaded: {
45 type: Boolean, 45 type: Boolean,
46 notify: true, 46 notify: true,
47 } 47 }
48 }, 48 },
49 49
50 _readyForAction: function() { 50 _readyForAction: function() {
51 google.load("visualization", "1", { 51 google.load("visualization", "1", {
52 packages: {packages: ['corechart']}, 52 packages: {packages: ['corechart']},
53 callback: function() { 53 callback: function() {
54 this.set("loaded", true); 54 this.set("loaded", true);
55 }.bind(this) 55 }.bind(this)
56 }); 56 });
57 } 57 }
58 }); 58 });
59 </script> 59 </script>
60 </dom-module> 60 </dom-module>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698