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

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

Issue 1585011: Add menu and menu item events to the accessibility extension api, and... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 // NotificationObserver::Observe. 52 // NotificationObserver::Observe.
53 virtual void Observe(NotificationType type, 53 virtual void Observe(NotificationType type,
54 const NotificationSource& source, 54 const NotificationSource& source,
55 const NotificationDetails& details); 55 const NotificationDetails& details);
56 56
57 void OnWindowOpened(const AccessibilityWindowInfo* details); 57 void OnWindowOpened(const AccessibilityWindowInfo* details);
58 void OnWindowClosed(const AccessibilityWindowInfo* details); 58 void OnWindowClosed(const AccessibilityWindowInfo* details);
59 void OnControlFocused(const AccessibilityControlInfo* details); 59 void OnControlFocused(const AccessibilityControlInfo* details);
60 void OnControlAction(const AccessibilityControlInfo* details); 60 void OnControlAction(const AccessibilityControlInfo* details);
61 void OnTextChanged(const AccessibilityControlInfo* details); 61 void OnTextChanged(const AccessibilityControlInfo* details);
62 void OnMenuOpened(const AccessibilityMenuInfo* details);
63 void OnMenuClosed(const AccessibilityMenuInfo* details);
62 64
63 void DispatchEvent(Profile* profile, 65 void DispatchEvent(Profile* profile,
64 const char* event_name, 66 const char* event_name,
65 const std::string& json_args); 67 const std::string& json_args);
66 68
67 // Used for tracking registrations to history service notifications. 69 // Used for tracking registrations to history service notifications.
68 NotificationRegistrar registrar_; 70 NotificationRegistrar registrar_;
69 71
70 DictionaryValue last_focused_control_dict_; 72 DictionaryValue last_focused_control_dict_;
71 73
(...skipping 16 matching lines...) Expand all
88 90
89 // API function that returns the most recent focused control. 91 // API function that returns the most recent focused control.
90 class GetFocusedControlFunction : public SyncExtensionFunction { 92 class GetFocusedControlFunction : public SyncExtensionFunction {
91 virtual ~GetFocusedControlFunction() {} 93 virtual ~GetFocusedControlFunction() {}
92 virtual bool RunImpl(); 94 virtual bool RunImpl();
93 DECLARE_EXTENSION_FUNCTION_NAME( 95 DECLARE_EXTENSION_FUNCTION_NAME(
94 "experimental.accessibility.getFocusedControl") 96 "experimental.accessibility.getFocusedControl")
95 }; 97 };
96 98
97 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 99 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/accessibility_events.cc ('k') | chrome/browser/extensions/extension_accessibility_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698