OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/login/wizard_accessibility_handler.h" | 5 #include "chrome/browser/chromeos/login/wizard_accessibility_handler.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "app/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/i18n/char_iterator.h" | 10 #include "base/i18n/char_iterator.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
14 #include "chrome/browser/accessibility_events.h" | 14 #include "chrome/browser/accessibility_events.h" |
15 #include "chrome/browser/chromeos/cros/cros_library.h" | 15 #include "chrome/browser/chromeos/cros/cros_library.h" |
16 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" | 16 #include "chrome/browser/chromeos/cros/speech_synthesis_library.h" |
17 #include "chrome/browser/extensions/extension_accessibility_api.h" | 17 #include "chrome/browser/extensions/extension_accessibility_api.h" |
18 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" | 18 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" |
19 #include "chrome/browser/profiles/profile.h" | |
20 #include "chrome/browser/profiles/profile_manager.h" | 19 #include "chrome/browser/profiles/profile_manager.h" |
21 #include "chrome/common/notification_registrar.h" | 20 #include "chrome/common/notification_registrar.h" |
22 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
23 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
24 | 23 |
25 namespace keys = extension_accessibility_api_constants; | 24 namespace keys = extension_accessibility_api_constants; |
26 | 25 |
27 namespace { | 26 namespace { |
28 | 27 |
29 static std::string SubstringUTF8(std::string str, int start, int len) { | 28 static std::string SubstringUTF8(std::string str, int start, int len) { |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 } else if (inserted.size() > 0) { | 436 } else if (inserted.size() > 0) { |
438 // Speak inserted text. | 437 // Speak inserted text. |
439 AppendUtterance(inserted, out_spoken_description); | 438 AppendUtterance(inserted, out_spoken_description); |
440 } else if (deleted.size() > 0) { | 439 } else if (deleted.size() > 0) { |
441 // Speak deleted text. | 440 // Speak deleted text. |
442 AppendUtterance(deleted, out_spoken_description); | 441 AppendUtterance(deleted, out_spoken_description); |
443 } | 442 } |
444 } | 443 } |
445 | 444 |
446 } // namespace chromeos | 445 } // namespace chromeos |
OLD | NEW |