OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_helper.h" | 5 #include "chrome/browser/chromeos/login/wizard_accessibility_helper.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 9 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
11 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" | 11 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" |
12 #include "chrome/browser/prefs/pref_service.h" | 12 #include "chrome/browser/prefs/pref_service.h" |
13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/profiles/profile_manager.h" | 14 #include "chrome/browser/profiles/profile_manager.h" |
15 #include "chrome/common/chrome_notification_types.h" | 15 #include "chrome/common/chrome_notification_types.h" |
16 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
19 #include "grit/generated_resources.h" | 19 #include "grit/generated_resources.h" |
20 #include "ui/base/accelerators/accelerator.h" | 20 #include "ui/base/accelerators/accelerator.h" |
21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
22 #include "views/view.h" | 22 #include "ui/views/view.h" |
23 | 23 |
24 namespace chromeos { | 24 namespace chromeos { |
25 | 25 |
26 // static | 26 // static |
27 ui::Accelerator WizardAccessibilityHelper::GetAccelerator() { | 27 ui::Accelerator WizardAccessibilityHelper::GetAccelerator() { |
28 return ui::Accelerator(ui::VKEY_Z, false, true, true); | 28 return ui::Accelerator(ui::VKEY_Z, false, true, true); |
29 } | 29 } |
30 | 30 |
31 // static | 31 // static |
32 WizardAccessibilityHelper* WizardAccessibilityHelper::GetInstance() { | 32 WizardAccessibilityHelper* WizardAccessibilityHelper::GetInstance() { |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 if (registered_notifications_) | 105 if (registered_notifications_) |
106 UnregisterNotifications(); | 106 UnregisterNotifications(); |
107 } | 107 } |
108 } | 108 } |
109 | 109 |
110 void WizardAccessibilityHelper::SetAccessibilityEnabled(bool enabled) { | 110 void WizardAccessibilityHelper::SetAccessibilityEnabled(bool enabled) { |
111 accessibility::EnableAccessibility(enabled, NULL); | 111 accessibility::EnableAccessibility(enabled, NULL); |
112 } | 112 } |
113 | 113 |
114 } // namespace chromeos | 114 } // namespace chromeos |
OLD | NEW |