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

Side by Side Diff: chrome/browser/resources/help/help_page.js

Issue 672073002: help: add important animation to Chrome logo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/help/help_content.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help_content.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698