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

Unified Diff: chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js

Issue 2768703002: Wire up an api to darken screen for accessibility (Closed)
Patch Set: Rebase. Created 3 years, 9 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: chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js
diff --git a/chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js b/chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js
index b5345cabe3b170734ddd007ef60a1f1f0409412b..3386354e78175ce51806da2a820bf44314e3ddae 100644
--- a/chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js
+++ b/chrome/browser/resources/chromeos/chromevox/cvox2/background/braille_command_handler.js
@@ -134,6 +134,10 @@ BrailleCommandHandler.init_ = function() {
// Question.
map([1, 4, 5, 6], 'toggleKeyboardHelp');
+
+ // All cells (with 7 as mod).
+ map([1, 2, 3, 4, 5, 6, 7], 'darkenScreen');
+ map([1, 2, 3, 4, 5, 6], 'undarkenScreen');
};
BrailleCommandHandler.init_();

Powered by Google App Engine
This is Rietveld 408576698