OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/accessibility/accessibility_extension_api.h" | 5 #include "chrome/browser/accessibility/accessibility_extension_api.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/strings/string_number_conversions.h" | 8 #include "base/strings/string_number_conversions.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" | 10 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" |
11 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 11 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
12 #include "chrome/browser/extensions/extension_service.h" | 12 #include "chrome/browser/extensions/extension_service.h" |
13 #include "chrome/browser/extensions/extension_tab_util.h" | 13 #include "chrome/browser/extensions/extension_tab_util.h" |
14 #include "chrome/browser/infobars/confirm_infobar_delegate.h" | |
15 #include "chrome/browser/infobars/infobar_service.h" | 14 #include "chrome/browser/infobars/infobar_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/common/extensions/api/accessibility_private.h" | 16 #include "chrome/common/extensions/api/accessibility_private.h" |
| 17 #include "components/infobars/core/confirm_infobar_delegate.h" |
18 #include "components/infobars/core/infobar.h" | 18 #include "components/infobars/core/infobar.h" |
19 #include "content/public/browser/browser_accessibility_state.h" | 19 #include "content/public/browser/browser_accessibility_state.h" |
20 #include "extensions/browser/event_router.h" | 20 #include "extensions/browser/event_router.h" |
21 #include "extensions/browser/extension_host.h" | 21 #include "extensions/browser/extension_host.h" |
22 #include "extensions/browser/extension_system.h" | 22 #include "extensions/browser/extension_system.h" |
23 #include "extensions/browser/lazy_background_task_queue.h" | 23 #include "extensions/browser/lazy_background_task_queue.h" |
24 #include "extensions/common/error_utils.h" | 24 #include "extensions/common/error_utils.h" |
25 #include "extensions/common/manifest_handlers/background_info.h" | 25 #include "extensions/common/manifest_handlers/background_info.h" |
26 | 26 |
27 namespace keys = extension_accessibility_api_constants; | 27 namespace keys = extension_accessibility_api_constants; |
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 const base::string16 message_text = | 286 const base::string16 message_text = |
287 confirm_infobar_delegate->GetMessageText(); | 287 confirm_infobar_delegate->GetMessageText(); |
288 alert_value->SetString(keys::kMessageKey, message_text); | 288 alert_value->SetString(keys::kMessageKey, message_text); |
289 alerts_value->Append(alert_value); | 289 alerts_value->Append(alert_value); |
290 } | 290 } |
291 } | 291 } |
292 | 292 |
293 SetResult(alerts_value); | 293 SetResult(alerts_value); |
294 return true; | 294 return true; |
295 } | 295 } |
OLD | NEW |