OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 cr.define('help', function() { | 5 cr.define('help', function() { |
6 var Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
8 | 8 |
9 /** | 9 /** |
10 * Encapsulated handling of the About page. Called 'help' internally to avoid | 10 * Encapsulated handling of the About page. Called 'help' internally to avoid |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 channelChangeDisallowedError.appendChild(channelChangeDisallowedText); | 150 channelChangeDisallowedError.appendChild(channelChangeDisallowedText); |
151 | 151 |
152 $('channel-change-disallowed-icon').onclick = function() { | 152 $('channel-change-disallowed-icon').onclick = function() { |
153 PageManager.showBubble(channelChangeDisallowedError, | 153 PageManager.showBubble(channelChangeDisallowedError, |
154 $('channel-change-disallowed-icon'), | 154 $('channel-change-disallowed-icon'), |
155 $('help-container'), | 155 $('help-container'), |
156 cr.ui.ArrowLocation.TOP_END); | 156 cr.ui.ArrowLocation.TOP_END); |
157 }; | 157 }; |
158 } | 158 } |
159 | 159 |
| 160 var logo = $('product-logo'); |
| 161 logo.onclick = function(e) { |
| 162 logo.classList.remove('spin'); |
| 163 setTimeout(function() { logo.classList.add('spin'); }); |
| 164 }; |
| 165 |
160 // Attempt to update. | 166 // Attempt to update. |
161 chrome.send('onPageLoaded'); | 167 chrome.send('onPageLoaded'); |
162 }, | 168 }, |
163 | 169 |
164 /** @override */ | 170 /** @override */ |
165 didClosePage: function() { | 171 didClosePage: function() { |
166 this.setMoreInfoVisible_(false); | 172 this.setMoreInfoVisible_(false); |
167 }, | 173 }, |
168 | 174 |
169 /** | 175 /** |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 | 636 |
631 HelpPage.setBuildDate = function(buildDate) { | 637 HelpPage.setBuildDate = function(buildDate) { |
632 HelpPage.getInstance().setBuildDate_(buildDate); | 638 HelpPage.getInstance().setBuildDate_(buildDate); |
633 }; | 639 }; |
634 | 640 |
635 // Export | 641 // Export |
636 return { | 642 return { |
637 HelpPage: HelpPage | 643 HelpPage: HelpPage |
638 }; | 644 }; |
639 }); | 645 }); |
OLD | NEW |