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

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: Created 9 years, 4 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 OnVolumeUp(const AccessibilityVolumeInfo* details);
66 void OnVolumeDown(const AccessibilityVolumeInfo* details);
67 void OnVolumeMute(const AccessibilityVolumeInfo* details);
65 68
66 void DispatchEvent(Profile* profile, 69 void DispatchEvent(Profile* profile,
67 const char* event_name, 70 const char* event_name,
68 const std::string& json_args); 71 const std::string& json_args);
69 72
70 // Used for tracking registrations to history service notifications. 73 // Used for tracking registrations to history service notifications.
71 NotificationRegistrar registrar_; 74 NotificationRegistrar registrar_;
72 75
73 DictionaryValue last_focused_control_dict_; 76 DictionaryValue last_focused_control_dict_;
74 77
(...skipping 16 matching lines...) Expand all
91 94
92 // API function that returns the most recent focused control. 95 // API function that returns the most recent focused control.
93 class GetFocusedControlFunction : public SyncExtensionFunction { 96 class GetFocusedControlFunction : public SyncExtensionFunction {
94 virtual ~GetFocusedControlFunction() {} 97 virtual ~GetFocusedControlFunction() {}
95 virtual bool RunImpl(); 98 virtual bool RunImpl();
96 DECLARE_EXTENSION_FUNCTION_NAME( 99 DECLARE_EXTENSION_FUNCTION_NAME(
97 "experimental.accessibility.getFocusedControl") 100 "experimental.accessibility.getFocusedControl")
98 }; 101 };
99 102
100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 103 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698