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

Side by Side Diff: chrome/browser/accessibility_events.cc

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « chrome/browser/accessibility_events.h ('k') | chrome/browser/alternate_nav_url_fetcher.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_events.h" 5 #include "chrome/browser/accessibility_events.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 #include "chrome/browser/extensions/extension_accessibility_api_constants.h" 9 #include "chrome/browser/extensions/extension_accessibility_api_constants.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "content/common/content_notification_types.h"
11 #include "content/common/notification_service.h" 12 #include "content/common/notification_service.h"
12 #include "content/common/notification_type.h"
13 13
14 namespace keys = extension_accessibility_api_constants; 14 namespace keys = extension_accessibility_api_constants;
15 15
16 void SendAccessibilityNotification( 16 void SendAccessibilityNotification(
17 NotificationType type, AccessibilityControlInfo* info) { 17 int type, AccessibilityControlInfo* info) {
18 Profile *profile = info->profile(); 18 Profile *profile = info->profile();
19 if (profile->ShouldSendAccessibilityEvents()) { 19 if (profile->ShouldSendAccessibilityEvents()) {
20 NotificationService::current()->Notify( 20 NotificationService::current()->Notify(
21 type, 21 type,
22 Source<Profile>(profile), 22 Source<Profile>(profile),
23 Details<AccessibilityControlInfo>(info)); 23 Details<AccessibilityControlInfo>(info));
24 } 24 }
25 } 25 }
26 26
27 AccessibilityControlInfo::AccessibilityControlInfo( 27 AccessibilityControlInfo::AccessibilityControlInfo(
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 const char* AccessibilityMenuItemInfo::type() const { 211 const char* AccessibilityMenuItemInfo::type() const {
212 return keys::kTypeMenuItem; 212 return keys::kTypeMenuItem;
213 } 213 }
214 214
215 void AccessibilityMenuItemInfo::SerializeToDict(DictionaryValue *dict) const { 215 void AccessibilityMenuItemInfo::SerializeToDict(DictionaryValue *dict) const {
216 AccessibilityControlInfo::SerializeToDict(dict); 216 AccessibilityControlInfo::SerializeToDict(dict);
217 dict->SetBoolean(keys::kHasSubmenuKey, has_submenu_); 217 dict->SetBoolean(keys::kHasSubmenuKey, has_submenu_);
218 dict->SetInteger(keys::kItemIndexKey, item_index_); 218 dict->SetInteger(keys::kItemIndexKey, item_index_);
219 dict->SetInteger(keys::kItemCountKey, item_count_); 219 dict->SetInteger(keys::kItemCountKey, item_count_);
220 } 220 }
OLDNEW
« no previous file with comments | « chrome/browser/accessibility_events.h ('k') | chrome/browser/alternate_nav_url_fetcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698