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

Side by Side Diff: chrome/browser/accessibility/accessibility_events.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
« no previous file with comments | « apps/shortcut_manager.cc ('k') | chrome/browser/accessibility/accessibility_extension_api.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_events.h" 5 #include "chrome/browser/accessibility/accessibility_events.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h" 9 #include "chrome/browser/accessibility/accessibility_extension_api_constants.h"
10 #include "chrome/browser/chrome_notification_types.h"
10 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
12 #include "chrome/common/chrome_notification_types.h"
13 #include "content/public/browser/notification_service.h" 13 #include "content/public/browser/notification_service.h"
14 #include "content/public/browser/notification_types.h" 14 #include "content/public/browser/notification_types.h"
15 15
16 namespace keys = extension_accessibility_api_constants; 16 namespace keys = extension_accessibility_api_constants;
17 17
18 void SendAccessibilityNotification(int type, AccessibilityEventInfo* info) { 18 void SendAccessibilityNotification(int type, AccessibilityEventInfo* info) {
19 Profile *profile = info->profile(); 19 Profile *profile = info->profile();
20 if (profile->ShouldSendAccessibilityEvents()) { 20 if (profile->ShouldSendAccessibilityEvents()) {
21 content::NotificationService::current()->Notify( 21 content::NotificationService::current()->Notify(
22 type, 22 type,
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 } 251 }
252 252
253 const char* AccessibilitySliderInfo::type() const { 253 const char* AccessibilitySliderInfo::type() const {
254 return keys::kTypeSlider; 254 return keys::kTypeSlider;
255 } 255 }
256 256
257 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const { 257 void AccessibilitySliderInfo::SerializeToDict(DictionaryValue *dict) const {
258 AccessibilityControlInfo::SerializeToDict(dict); 258 AccessibilityControlInfo::SerializeToDict(dict);
259 dict->SetString(keys::kStringValueKey, value_); 259 dict->SetString(keys::kStringValueKey, value_);
260 } 260 }
OLDNEW
« no previous file with comments | « apps/shortcut_manager.cc ('k') | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698