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

Unified Diff: chrome/browser/resources/chromeos/switch_access/switch_access.js

Issue 2818503002: Improved isInteresting heuristic, made more AutomationNodes focusable (Closed)
Patch Set: Responded to comment Created 3 years, 8 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
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/switch_access/tree_walker.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/chromeos/switch_access/switch_access.js
diff --git a/chrome/browser/resources/chromeos/switch_access/switch_access.js b/chrome/browser/resources/chromeos/switch_access/switch_access.js
index 0adc858c037bb505fb6a7ae3de1ee80a169dfce8..58bcb3a7b0c2c8ccf72ccda79a5f617f95ae4da9 100644
--- a/chrome/browser/resources/chromeos/switch_access/switch_access.js
+++ b/chrome/browser/resources/chromeos/switch_access/switch_access.js
@@ -107,14 +107,6 @@ SwitchAccess.prototype = {
if (!this.node_)
return;
- let state = this.node_.state;
- if (state && state.focusable)
- console.log('Node was focusable, doing default on it')
- else if (state)
- console.log('Node was not focusable, but still doing default');
- else
- console.log('Node has no state, still doing default');
- console.log('\n');
this.node_.doDefault();
},
@@ -170,6 +162,7 @@ SwitchAccess.prototype = {
if (node) {
console.log('Name = ' + node.name);
console.log('Role = ' + node.role);
+ console.log('Root role = ' + node.root.role);
if (!node.parent)
console.log('At index ' + node.indexInParent + ', has no parent');
else {
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/switch_access/tree_walker.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698