OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/input_method/accessibility.h" | 5 #include "chrome/browser/chromeos/input_method/accessibility.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "chrome/browser/accessibility/accessibility_events.h" | 10 #include "chrome/browser/accessibility/accessibility_events.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 const InputMethodDescriptor descriptor = imm_->GetCurrentInputMethod(); | 47 const InputMethodDescriptor descriptor = imm_->GetCurrentInputMethod(); |
48 const std::string medium_name = base::UTF16ToUTF8( | 48 const std::string medium_name = base::UTF16ToUTF8( |
49 imm_->GetInputMethodUtil()->GetInputMethodMediumName(descriptor)); | 49 imm_->GetInputMethodUtil()->GetInputMethodMediumName(descriptor)); |
50 | 50 |
51 AccessibilityAlertInfo event(ProfileManager::GetActiveUserProfile(), | 51 AccessibilityAlertInfo event(ProfileManager::GetActiveUserProfile(), |
52 medium_name); | 52 medium_name); |
53 SendControlAccessibilityNotification( | 53 SendControlAccessibilityNotification( |
54 ui::AccessibilityTypes::EVENT_ALERT, &event); | 54 ui::AccessibilityTypes::EVENT_ALERT, &event); |
55 } | 55 } |
56 | 56 |
57 void Accessibility::InputMethodPropertyChanged(InputMethodManager* imm) { | |
58 // Do nothing. | |
59 } | |
60 | |
61 } // namespace input_method | 57 } // namespace input_method |
62 } // namespace chromeos | 58 } // namespace chromeos |
OLD | NEW |