| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/accessibility/accessibility_manager.h" | 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "ash/audio/sounds.h" | 11 #include "ash/audio/sounds.h" |
| 12 #include "ash/autoclick/autoclick_controller.h" | 12 #include "ash/autoclick/autoclick_controller.h" |
| 13 #include "ash/high_contrast/high_contrast_controller.h" | 13 #include "ash/high_contrast/high_contrast_controller.h" |
| 14 #include "ash/metrics/user_metrics_recorder.h" | 14 #include "ash/metrics/user_metrics_recorder.h" |
| 15 #include "ash/session/session_state_delegate.h" | 15 #include "ash/session/session_state_delegate.h" |
| 16 #include "ash/shelf/shelf_layout_manager.h" | 16 #include "ash/shelf/shelf_layout_manager.h" |
| 17 #include "ash/shell.h" | 17 #include "ash/shell.h" |
| 18 #include "ash/sticky_keys/sticky_keys_controller.h" | 18 #include "ash/sticky_keys/sticky_keys_controller.h" |
| 19 #include "ash/system/tray/system_tray_notifier.h" | 19 #include "ash/system/tray/system_tray_notifier.h" |
| 20 #include "base/callback.h" | 20 #include "base/callback.h" |
| 21 #include "base/callback_helpers.h" | 21 #include "base/callback_helpers.h" |
| 22 #include "base/command_line.h" | 22 #include "base/command_line.h" |
| 23 #include "base/macros.h" | 23 #include "base/macros.h" |
| 24 #include "base/memory/scoped_ptr.h" | 24 #include "base/memory/scoped_ptr.h" |
| 25 #include "base/memory/singleton.h" | 25 #include "base/memory/singleton.h" |
| 26 #include "base/metrics/histogram.h" | 26 #include "base/metrics/histogram.h" |
| 27 #include "base/path_service.h" | 27 #include "base/path_service.h" |
| 28 #include "base/prefs/pref_member.h" | |
| 29 #include "base/prefs/pref_service.h" | |
| 30 #include "base/strings/string_split.h" | 28 #include "base/strings/string_split.h" |
| 31 #include "base/strings/string_util.h" | 29 #include "base/strings/string_util.h" |
| 32 #include "base/time/time.h" | 30 #include "base/time/time.h" |
| 33 #include "base/values.h" | 31 #include "base/values.h" |
| 34 #include "chrome/browser/accessibility/accessibility_extension_api.h" | 32 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
| 35 #include "chrome/browser/browser_process.h" | 33 #include "chrome/browser/browser_process.h" |
| 36 #include "chrome/browser/chrome_notification_types.h" | 34 #include "chrome/browser/chrome_notification_types.h" |
| 37 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 35 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
| 38 #include "chrome/browser/chromeos/login/lock/screen_locker.h" | 36 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
| 39 #include "chrome/browser/chromeos/login/ui/login_display_host.h" | 37 #include "chrome/browser/chromeos/login/ui/login_display_host.h" |
| 40 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" | 38 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" |
| 41 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 39 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 42 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" | 40 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" |
| 43 #include "chrome/browser/extensions/api/braille_display_private/stub_braille_con
troller.h" | 41 #include "chrome/browser/extensions/api/braille_display_private/stub_braille_con
troller.h" |
| 44 #include "chrome/browser/extensions/component_loader.h" | 42 #include "chrome/browser/extensions/component_loader.h" |
| 45 #include "chrome/browser/extensions/extension_service.h" | 43 #include "chrome/browser/extensions/extension_service.h" |
| 46 #include "chrome/browser/extensions/tab_helper.h" | 44 #include "chrome/browser/extensions/tab_helper.h" |
| 47 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 45 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 48 #include "chrome/browser/profiles/profile.h" | 46 #include "chrome/browser/profiles/profile.h" |
| 49 #include "chrome/browser/profiles/profile_manager.h" | 47 #include "chrome/browser/profiles/profile_manager.h" |
| 50 #include "chrome/common/chrome_paths.h" | 48 #include "chrome/common/chrome_paths.h" |
| 51 #include "chrome/common/extensions/api/accessibility_private.h" | 49 #include "chrome/common/extensions/api/accessibility_private.h" |
| 52 #include "chrome/common/extensions/extension_constants.h" | 50 #include "chrome/common/extensions/extension_constants.h" |
| 53 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" | 51 #include "chrome/common/extensions/manifest_handlers/content_scripts_handler.h" |
| 54 #include "chrome/common/pref_names.h" | 52 #include "chrome/common/pref_names.h" |
| 55 #include "chrome/grit/browser_resources.h" | 53 #include "chrome/grit/browser_resources.h" |
| 56 #include "chromeos/audio/chromeos_sounds.h" | 54 #include "chromeos/audio/chromeos_sounds.h" |
| 57 #include "chromeos/login/login_state.h" | 55 #include "chromeos/login/login_state.h" |
| 56 #include "components/prefs/pref_member.h" |
| 57 #include "components/prefs/pref_service.h" |
| 58 #include "components/user_manager/user_manager.h" | 58 #include "components/user_manager/user_manager.h" |
| 59 #include "content/public/browser/browser_accessibility_state.h" | 59 #include "content/public/browser/browser_accessibility_state.h" |
| 60 #include "content/public/browser/browser_thread.h" | 60 #include "content/public/browser/browser_thread.h" |
| 61 #include "content/public/browser/notification_details.h" | 61 #include "content/public/browser/notification_details.h" |
| 62 #include "content/public/browser/notification_service.h" | 62 #include "content/public/browser/notification_service.h" |
| 63 #include "content/public/browser/notification_source.h" | 63 #include "content/public/browser/notification_source.h" |
| 64 #include "content/public/browser/render_process_host.h" | 64 #include "content/public/browser/render_process_host.h" |
| 65 #include "content/public/browser/render_view_host.h" | 65 #include "content/public/browser/render_view_host.h" |
| 66 #include "content/public/browser/web_contents.h" | 66 #include "content/public/browser/web_contents.h" |
| 67 #include "content/public/browser/web_ui.h" | 67 #include "content/public/browser/web_ui.h" |
| (...skipping 1164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1232 content::BrowserContext* context) { | 1232 content::BrowserContext* context) { |
| 1233 keyboard_listener_extension_id_ = id; | 1233 keyboard_listener_extension_id_ = id; |
| 1234 | 1234 |
| 1235 extensions::ExtensionRegistry* registry = | 1235 extensions::ExtensionRegistry* registry = |
| 1236 extensions::ExtensionRegistry::Get(context); | 1236 extensions::ExtensionRegistry::Get(context); |
| 1237 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1237 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
| 1238 extension_registry_observer_.Add(registry); | 1238 extension_registry_observer_.Add(registry); |
| 1239 } | 1239 } |
| 1240 | 1240 |
| 1241 } // namespace chromeos | 1241 } // namespace chromeos |
| OLD | NEW |