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

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

Issue 18640003: Updates some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months 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
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/chrome_notification_types.h"
11 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" 12 #include "chrome/browser/extensions/api/tabs/tabs_constants.h"
12 #include "chrome/browser/extensions/event_router.h" 13 #include "chrome/browser/extensions/event_router.h"
13 #include "chrome/browser/extensions/extension_system.h" 14 #include "chrome/browser/extensions/extension_system.h"
14 #include "chrome/browser/extensions/extension_tab_util.h" 15 #include "chrome/browser/extensions/extension_tab_util.h"
15 #include "chrome/browser/infobars/confirm_infobar_delegate.h" 16 #include "chrome/browser/infobars/confirm_infobar_delegate.h"
16 #include "chrome/browser/infobars/infobar_delegate.h" 17 #include "chrome/browser/infobars/infobar_delegate.h"
17 #include "chrome/browser/infobars/infobar_service.h" 18 #include "chrome/browser/infobars/infobar_service.h"
18 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
19 #include "chrome/common/chrome_notification_types.h"
20 #include "content/public/browser/browser_accessibility_state.h" 20 #include "content/public/browser/browser_accessibility_state.h"
21 #include "content/public/browser/notification_service.h" 21 #include "content/public/browser/notification_service.h"
22 #include "extensions/common/error_utils.h" 22 #include "extensions/common/error_utils.h"
23 23
24 namespace keys = extension_accessibility_api_constants; 24 namespace keys = extension_accessibility_api_constants;
25 25
26 // Returns the AccessibilityControlInfo serialized into a JSON string, 26 // Returns the AccessibilityControlInfo serialized into a JSON string,
27 // consisting of an array of a single object of type AccessibilityObject, 27 // consisting of an array of a single object of type AccessibilityObject,
28 // as defined in the accessibility extension api's json schema. 28 // as defined in the accessibility extension api's json schema.
29 scoped_ptr<ListValue> ControlInfoToEventArguments( 29 scoped_ptr<ListValue> ControlInfoToEventArguments(
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 DictionaryValue* alert_value = new DictionaryValue; 235 DictionaryValue* alert_value = new DictionaryValue;
236 const string16 message_text = confirm_infobar_delegate->GetMessageText(); 236 const string16 message_text = confirm_infobar_delegate->GetMessageText();
237 alert_value->SetString(keys::kMessageKey, message_text); 237 alert_value->SetString(keys::kMessageKey, message_text);
238 alerts_value->Append(alert_value); 238 alerts_value->Append(alert_value);
239 } 239 }
240 } 240 }
241 241
242 SetResult(alerts_value); 242 SetResult(alerts_value);
243 return true; 243 return true;
244 } 244 }
OLDNEW
« no previous file with comments | « chrome/browser/accessibility/accessibility_events.cc ('k') | chrome/browser/android/chrome_web_contents_delegate_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698