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

Unified Diff: ui/keyboard/resources/elements/kb-altkey-container.js

Issue 730573002: Remove dead code for system VK. (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 side-by-side diff with in-line comments
Download patch
Index: ui/keyboard/resources/elements/kb-altkey-container.js
diff --git a/ui/keyboard/resources/elements/kb-altkey-container.js b/ui/keyboard/resources/elements/kb-altkey-container.js
deleted file mode 100644
index a184348a4a0c383cabe711714ee1aefb9e310874..0000000000000000000000000000000000000000
--- a/ui/keyboard/resources/elements/kb-altkey-container.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-Polymer('kb-altkey-container', {
- resetActiveElement: function() {
- var activeAccentKeySet = this.querySelector('#' + this.keyset);
- var offset = activeAccentKeySet.offset;
- var element = activeAccentKeySet.firstElementChild;
- while (offset) {
- element = element.nextElementSibling;
- offset--;
- }
- element.classList.add('active');
- },
- up: function(detail) {
- this.hidden = true;
- this.resetActiveElement();
- this.keyset = null;
- },
- out: function(event) {
- // Check if touch is outside container boundaries.
- if(!(this.compareDocumentPosition(event.relatedTarget)
- & Node.DOCUMENT_POSITION_CONTAINED_BY)) {
- this.hidden = true;
- }
- },
-
- hiddenChanged: function() {
- this.fire('stateChange', {
- state: 'candidatePopupVisibility',
- value: !!this.hidden
- });
- },
-});
« no previous file with comments | « ui/keyboard/resources/elements/kb-altkey-container.html ('k') | ui/keyboard/resources/elements/kb-altkey-data.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698