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

Side by Side Diff: ui/keyboard/resources/elements/kb-key-base.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 7 years 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
OLDNEW
1 <!-- 1 <!--
2 -- Copyright 2013 The Chromium Authors. All rights reserved. 2 -- Copyright 2013 The Chromium Authors. All rights reserved.
3 -- Use of this source code is governed by a BSD-style license that can be 3 -- Use of this source code is governed by a BSD-style license that can be
4 -- found in the LICENSE file. 4 -- found in the LICENSE file.
5 --> 5 -->
6 6
7 <polymer-element name="kb-key-base" 7 <polymer-element name="kb-key-base"
8 on-pointerdown="{{down}}" on-pointerup="{{up}}" on-pointerout="{{out}}" 8 on-pointerdown="{{down}}" on-pointerup="{{up}}" on-pointerout="{{out}}"
9 attributes="char invert repeat hintText toKeyset toLayout"> 9 attributes="char invert repeat hintText toKeyset toLayout">
10 <script> 10 <script>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 detail.nextKeyset = this.keysetRules.down[NEXT_KEYSET - OFFSET]; 200 detail.nextKeyset = this.keysetRules.down[NEXT_KEYSET - OFFSET];
201 } 201 }
202 break; 202 break;
203 default: 203 default:
204 break; 204 break;
205 } 205 }
206 return detail; 206 return detail;
207 }, 207 },
208 208
209 generateLongPressTimer: function() { 209 generateLongPressTimer: function() {
210 return this.asyncMethod(function() { 210 return this.async(function() {
211 var detail = { 211 var detail = {
212 char: this.charValue, 212 char: this.charValue,
213 hintText: this.hintTextValue 213 hintText: this.hintTextValue
214 }; 214 };
215 if (this.keysetRules && this.keysetRules.long != undefined) { 215 if (this.keysetRules && this.keysetRules.long != undefined) {
216 detail.toKeyset = this.keysetRules.long[TO_KEYSET - OFFSET]; 216 detail.toKeyset = this.keysetRules.long[TO_KEYSET - OFFSET];
217 detail.nextKeyset = this.keysetRules.long[NEXT_KEYSET - OFFSET]; 217 detail.nextKeyset = this.keysetRules.long[NEXT_KEYSET - OFFSET];
218 } 218 }
219 this.fire('key-longpress', detail); 219 this.fire('key-longpress', detail);
220 }, null, LONGPRESS_DELAY_MSEC); 220 }, null, LONGPRESS_DELAY_MSEC);
221 }, 221 },
222 }); 222 });
223 </script> 223 </script>
224 </polymer-element> 224 </polymer-element>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698