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

Side by Side Diff: chrome/browser/extensions/extension_accessibility_api.h

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
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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void AddOnEnabledListener(Callback* callback); 44 void AddOnEnabledListener(Callback* callback);
45 void AddOnDisabledListener(Callback* callback); 45 void AddOnDisabledListener(Callback* callback);
46 46
47 private: 47 private:
48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>; 48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>;
49 49
50 ExtensionAccessibilityEventRouter(); 50 ExtensionAccessibilityEventRouter();
51 virtual ~ExtensionAccessibilityEventRouter(); 51 virtual ~ExtensionAccessibilityEventRouter();
52 52
53 // NotificationObserver::Observe. 53 // NotificationObserver::Observe.
54 virtual void Observe(NotificationType type, 54 virtual void Observe(int type,
55 const NotificationSource& source, 55 const NotificationSource& source,
56 const NotificationDetails& details); 56 const NotificationDetails& details);
57 57
58 void OnWindowOpened(const AccessibilityWindowInfo* details); 58 void OnWindowOpened(const AccessibilityWindowInfo* details);
59 void OnWindowClosed(const AccessibilityWindowInfo* details); 59 void OnWindowClosed(const AccessibilityWindowInfo* details);
60 void OnControlFocused(const AccessibilityControlInfo* details); 60 void OnControlFocused(const AccessibilityControlInfo* details);
61 void OnControlAction(const AccessibilityControlInfo* details); 61 void OnControlAction(const AccessibilityControlInfo* details);
62 void OnTextChanged(const AccessibilityControlInfo* details); 62 void OnTextChanged(const AccessibilityControlInfo* details);
63 void OnMenuOpened(const AccessibilityMenuInfo* details); 63 void OnMenuOpened(const AccessibilityMenuInfo* details);
64 void OnMenuClosed(const AccessibilityMenuInfo* details); 64 void OnMenuClosed(const AccessibilityMenuInfo* details);
(...skipping 26 matching lines...) Expand all
91 91
92 // API function that returns the most recent focused control. 92 // API function that returns the most recent focused control.
93 class GetFocusedControlFunction : public SyncExtensionFunction { 93 class GetFocusedControlFunction : public SyncExtensionFunction {
94 virtual ~GetFocusedControlFunction() {} 94 virtual ~GetFocusedControlFunction() {}
95 virtual bool RunImpl(); 95 virtual bool RunImpl();
96 DECLARE_EXTENSION_FUNCTION_NAME( 96 DECLARE_EXTENSION_FUNCTION_NAME(
97 "experimental.accessibility.getFocusedControl") 97 "experimental.accessibility.getFocusedControl")
98 }; 98 };
99 99
100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crx_installer.cc ('k') | chrome/browser/extensions/extension_accessibility_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698