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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 2493923002: Select-to-speak event handler (Closed)
Patch Set: Created 4 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: chrome/browser/chromeos/accessibility/accessibility_manager.cc
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.cc b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
index fe448ff44ee1c26008faa9449737dc071db1479d..bbc4b3e941f38fa4391f2ba267dd9dbdfc0ac5bd 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.cc
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.cc
@@ -38,6 +38,7 @@
#include "chrome/browser/chromeos/accessibility/accessibility_extension_loader.h"
#include "chrome/browser/chromeos/accessibility/accessibility_highlight_manager.h"
#include "chrome/browser/chromeos/accessibility/magnification_manager.h"
+#include "chrome/browser/chromeos/accessibility/select_to_speak_event_handler.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h"
#include "chrome/browser/extensions/api/braille_display_private/stub_braille_controller.h"
@@ -850,8 +851,11 @@ void AccessibilityManager::UpdateSelectToSpeakFromPref() {
if (enabled) {
select_to_speak_loader_->Load(profile_, "" /* init_script_str */,
base::Closure() /* done_cb */);
+ select_to_speak_event_handler_.reset(
+ new chromeos::SelectToSpeakEventHandler());
} else {
select_to_speak_loader_->Unload();
+ select_to_speak_event_handler_.reset(nullptr);
}
}

Powered by Google App Engine
This is Rietveld 408576698