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

Side by Side Diff: chrome/browser/resources/chromeos/keyboard_overlay.js

Issue 10442044: Fix the white flicker of the keyboard overlay when it first appearing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/keyboard_overlay_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <include src="keyboard_overlay_data.js"/> 5 <include src="keyboard_overlay_data.js"/>
6 <include src="keyboard_overlay_accessibility_helper.js"/> 6 <include src="keyboard_overlay_accessibility_helper.js"/>
7 7
8 var BASE_KEYBOARD = { 8 var BASE_KEYBOARD = {
9 top: 0, 9 top: 0,
10 left: 0, 10 left: 0,
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 } 526 }
527 if (!keyboardOverlayId) { 527 if (!keyboardOverlayId) {
528 console.error('No keyboard overlay ID for ' + inputMethodId); 528 console.error('No keyboard overlay ID for ' + inputMethodId);
529 keyboardOverlayId = 'en_US'; 529 keyboardOverlayId = 'en_US';
530 } 530 }
531 while (document.body.firstChild) { 531 while (document.body.firstChild) {
532 document.body.removeChild(document.body.firstChild); 532 document.body.removeChild(document.body.firstChild);
533 } 533 }
534 initLayout(); 534 initLayout();
535 update([]); 535 update([]);
536 window.webkitRequestAnimationFrame(function() {
537 chrome.send('didPaint');
538 });
536 } 539 }
537 540
538 /** 541 /**
539 * Handles click events of the learn more link. 542 * Handles click events of the learn more link.
540 * @param {Event} e Mouse click event. 543 * @param {Event} e Mouse click event.
541 */ 544 */
542 function learnMoreClicked(e) { 545 function learnMoreClicked(e) {
543 chrome.send('openLearnMorePage'); 546 chrome.send('openLearnMorePage');
544 chrome.send('DialogClose'); 547 chrome.send('DialogClose');
545 e.preventDefault(); 548 e.preventDefault();
546 } 549 }
547 550
548 document.addEventListener('DOMContentLoaded', init); 551 document.addEventListener('DOMContentLoaded', init);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/keyboard_overlay_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698