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

Unified Diff: chrome/browser/extensions/extension_accessibility_api.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_accessibility_api.cc
===================================================================
--- chrome/browser/extensions/extension_accessibility_api.cc (revision 91968)
+++ chrome/browser/extensions/extension_accessibility_api.cc (working copy)
@@ -16,6 +16,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
+#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/extensions/extension.h"
#include "content/common/notification_service.h"
@@ -52,53 +53,53 @@
if (registrar_.IsEmpty()) {
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_WINDOW_OPENED,
+ chrome::NOTIFICATION_ACCESSIBILITY_WINDOW_OPENED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_WINDOW_CLOSED,
+ chrome::NOTIFICATION_ACCESSIBILITY_WINDOW_CLOSED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_CONTROL_FOCUSED,
+ chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_CONTROL_ACTION,
+ chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_ACTION,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_TEXT_CHANGED,
+ chrome::NOTIFICATION_ACCESSIBILITY_TEXT_CHANGED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_MENU_OPENED,
+ chrome::NOTIFICATION_ACCESSIBILITY_MENU_OPENED,
NotificationService::AllSources());
registrar_.Add(this,
- NotificationType::ACCESSIBILITY_MENU_CLOSED,
+ chrome::NOTIFICATION_ACCESSIBILITY_MENU_CLOSED,
NotificationService::AllSources());
}
}
void ExtensionAccessibilityEventRouter::Observe(
- NotificationType type,
+ int type,
const NotificationSource& source,
const NotificationDetails& details) {
- switch (type.value) {
- case NotificationType::ACCESSIBILITY_WINDOW_OPENED:
+ switch (type) {
+ case chrome::NOTIFICATION_ACCESSIBILITY_WINDOW_OPENED:
OnWindowOpened(Details<const AccessibilityWindowInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_WINDOW_CLOSED:
+ case chrome::NOTIFICATION_ACCESSIBILITY_WINDOW_CLOSED:
OnWindowClosed(Details<const AccessibilityWindowInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_CONTROL_FOCUSED:
+ case chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_FOCUSED:
OnControlFocused(Details<const AccessibilityControlInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_CONTROL_ACTION:
+ case chrome::NOTIFICATION_ACCESSIBILITY_CONTROL_ACTION:
OnControlAction(Details<const AccessibilityControlInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_TEXT_CHANGED:
+ case chrome::NOTIFICATION_ACCESSIBILITY_TEXT_CHANGED:
OnTextChanged(Details<const AccessibilityControlInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_MENU_OPENED:
+ case chrome::NOTIFICATION_ACCESSIBILITY_MENU_OPENED:
OnMenuOpened(Details<const AccessibilityMenuInfo>(details).ptr());
break;
- case NotificationType::ACCESSIBILITY_MENU_CLOSED:
+ case chrome::NOTIFICATION_ACCESSIBILITY_MENU_CLOSED:
OnMenuClosed(Details<const AccessibilityMenuInfo>(details).ptr());
break;
default:
« no previous file with comments | « chrome/browser/extensions/extension_accessibility_api.h ('k') | chrome/browser/extensions/extension_apitest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698