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

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

Issue 7708025: Adds extension APIs of events on changing volume. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix (to be commited) Created 9 years, 3 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
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);
65 void OnVolumeChanged(const AccessibilityVolumeInfo* details);
65 66
66 void DispatchEvent(Profile* profile, 67 void DispatchEvent(Profile* profile,
67 const char* event_name, 68 const char* event_name,
68 const std::string& json_args); 69 const std::string& json_args);
69 70
70 // Used for tracking registrations to history service notifications. 71 // Used for tracking registrations to history service notifications.
71 NotificationRegistrar registrar_; 72 NotificationRegistrar registrar_;
72 73
73 DictionaryValue last_focused_control_dict_; 74 DictionaryValue last_focused_control_dict_;
74 75
(...skipping 16 matching lines...) Expand all
91 92
92 // API function that returns the most recent focused control. 93 // API function that returns the most recent focused control.
93 class GetFocusedControlFunction : public SyncExtensionFunction { 94 class GetFocusedControlFunction : public SyncExtensionFunction {
94 virtual ~GetFocusedControlFunction() {} 95 virtual ~GetFocusedControlFunction() {}
95 virtual bool RunImpl(); 96 virtual bool RunImpl();
96 DECLARE_EXTENSION_FUNCTION_NAME( 97 DECLARE_EXTENSION_FUNCTION_NAME(
97 "experimental.accessibility.getFocusedControl") 98 "experimental.accessibility.getFocusedControl")
98 }; 99 };
99 100
100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 101 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system_key_event_listener.cc ('k') | chrome/browser/extensions/extension_accessibility_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698