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

Unified Diff: ui/file_manager/file_manager/foreground/elements/files_icon_button.js

Issue 1415953006: Fix accessibility issues in AudioPlayer and VideoPlayer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix query for repeat button. Created 5 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/file_manager/file_manager/foreground/elements/files_icon_button.js
diff --git a/ui/file_manager/file_manager/foreground/elements/files_icon_button.js b/ui/file_manager/file_manager/foreground/elements/files_icon_button.js
new file mode 100644
index 0000000000000000000000000000000000000000..63039f3c6971b300f894724c354d789fbcff2ae5
--- /dev/null
+++ b/ui/file_manager/file_manager/foreground/elements/files_icon_button.js
@@ -0,0 +1,29 @@
+// Copyright 2015 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({
+ is: 'files-icon-button',
+
+ hostAttributes: {
+ role: 'button',
+ tabindex: 0
+ },
+
+ behaviors: [
+ Polymer.IronButtonState,
+ Polymer.IronControlState
+ ],
+
+ observers: [
+ '_focusedChanged(receivedFocusFromKeyboard)'
+ ],
+
+ _focusedChanged: function(receivedFocusFromKeyboard) {
+ if (receivedFocusFromKeyboard) {
+ this.classList.add('keyboard-focus');
+ } else {
+ this.classList.remove('keyboard-focus');
+ }
+ }
+});
« no previous file with comments | « ui/file_manager/file_manager/foreground/elements/files_icon_button.html ('k') | ui/file_manager/file_manager/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698