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

Unified Diff: ui/keyboard/resources/elements/kb-key.html

Issue 98073012: Add unit test for lock and unlock virtual keyboard feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/resources/elements/kb-key.html
diff --git a/ui/keyboard/resources/elements/kb-key.html b/ui/keyboard/resources/elements/kb-key.html
index 447c491af889bc4ac05b16abe006545a50dbb271..811f375e6402552881baed65253d5177f72207d5 100644
--- a/ui/keyboard/resources/elements/kb-key.html
+++ b/ui/keyboard/resources/elements/kb-key.html
@@ -190,11 +190,10 @@
longPressTimer: undefined,
down: function(event) {
- var self = this;
- this.longPressTimer = this.asyncMethod(function() {
- if (self.longPressTimer) {
- clearTimeout(self.longPressTimer);
- self.longPressTimer = undefined;
+ this.longPressTimer = this.async(function() {
+ if (this.longPressTimer) {
+ clearTimeout(this.longPressTimer);
+ this.longPressTimer = undefined;
var details = {
left: this.offsetLeft,
top: this.offsetTop,

Powered by Google App Engine
This is Rietveld 408576698