Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_api.cc

Issue 65123002: Move chrome/common/extensions/background_info.h to src/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase2 background_info Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/event_router.h" 12 #include "chrome/browser/extensions/event_router.h"
13 #include "chrome/browser/extensions/extension_host.h" 13 #include "chrome/browser/extensions/extension_host.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h" 15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/extensions/extension_tab_util.h" 16 #include "chrome/browser/extensions/extension_tab_util.h"
17 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 17 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
18 #include "chrome/browser/infobars/infobar_delegate.h" 18 #include "chrome/browser/infobars/infobar_delegate.h"
19 #include "chrome/browser/infobars/infobar_service.h" 19 #include "chrome/browser/infobars/infobar_service.h"
20 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/extensions/api/experimental_accessibility.h" 21 #include "chrome/common/extensions/api/experimental_accessibility.h"
22 #include "chrome/common/extensions/background_info.h"
23 #include "content/public/browser/browser_accessibility_state.h" 22 #include "content/public/browser/browser_accessibility_state.h"
24 #include "extensions/browser/lazy_background_task_queue.h" 23 #include "extensions/browser/lazy_background_task_queue.h"
25 #include "extensions/common/error_utils.h" 24 #include "extensions/common/error_utils.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;
28 namespace experimental_accessibility = 28 namespace experimental_accessibility =
29 extensions::api::experimental_accessibility; 29 extensions::api::experimental_accessibility;
30 30
31 // Returns the AccessibilityControlInfo serialized into a JSON string, 31 // Returns the AccessibilityControlInfo serialized into a JSON string,
32 // consisting of an array of a single object of type AccessibilityObject, 32 // consisting of an array of a single object of type AccessibilityObject,
33 // as defined in the accessibility extension api's json schema. 33 // as defined in the accessibility extension api's json schema.
34 scoped_ptr<ListValue> ControlInfoToEventArguments( 34 scoped_ptr<ListValue> ControlInfoToEventArguments(
35 const AccessibilityEventInfo* info) { 35 const AccessibilityEventInfo* info) {
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 DictionaryValue* alert_value = new DictionaryValue; 276 DictionaryValue* alert_value = new DictionaryValue;
277 const string16 message_text = confirm_infobar_delegate->GetMessageText(); 277 const string16 message_text = confirm_infobar_delegate->GetMessageText();
278 alert_value->SetString(keys::kMessageKey, message_text); 278 alert_value->SetString(keys::kMessageKey, message_text);
279 alerts_value->Append(alert_value); 279 alerts_value->Append(alert_value);
280 } 280 }
281 } 281 }
282 282
283 SetResult(alerts_value); 283 SetResult(alerts_value);
284 return true; 284 return true;
285 } 285 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698