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

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

Issue 8558014: Add experimental extension APIs to notify about wakeup and screen unlock (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Codereview Created 9 years, 1 month 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 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 const content::NotificationDetails& details) OVERRIDE; 48 const content::NotificationDetails& details) OVERRIDE;
49 49
50 void OnWindowOpened(const AccessibilityWindowInfo* details); 50 void OnWindowOpened(const AccessibilityWindowInfo* details);
51 void OnWindowClosed(const AccessibilityWindowInfo* details); 51 void OnWindowClosed(const AccessibilityWindowInfo* details);
52 void OnControlFocused(const AccessibilityControlInfo* details); 52 void OnControlFocused(const AccessibilityControlInfo* details);
53 void OnControlAction(const AccessibilityControlInfo* details); 53 void OnControlAction(const AccessibilityControlInfo* details);
54 void OnTextChanged(const AccessibilityControlInfo* details); 54 void OnTextChanged(const AccessibilityControlInfo* details);
55 void OnMenuOpened(const AccessibilityMenuInfo* details); 55 void OnMenuOpened(const AccessibilityMenuInfo* details);
56 void OnMenuClosed(const AccessibilityMenuInfo* details); 56 void OnMenuClosed(const AccessibilityMenuInfo* details);
57 void OnVolumeChanged(const AccessibilityVolumeInfo* details); 57 void OnVolumeChanged(const AccessibilityVolumeInfo* details);
58 void OnScreenUnlocked(const AccessibilityEmptyEventInfo* details);
59 void OnWokeUp(const AccessibilityEmptyEventInfo* details);
58 60
59 void DispatchEvent(Profile* profile, 61 void DispatchEvent(Profile* profile,
60 const char* event_name, 62 const char* event_name,
61 const std::string& json_args); 63 const std::string& json_args);
62 64
63 // Used for tracking registrations to history service notifications. 65 // Used for tracking registrations to history service notifications.
64 content::NotificationRegistrar registrar_; 66 content::NotificationRegistrar registrar_;
65 67
66 DictionaryValue last_focused_control_dict_; 68 DictionaryValue last_focused_control_dict_;
67 69
(...skipping 14 matching lines...) Expand all
82 84
83 // API function that returns the most recent focused control. 85 // API function that returns the most recent focused control.
84 class GetFocusedControlFunction : public SyncExtensionFunction { 86 class GetFocusedControlFunction : public SyncExtensionFunction {
85 virtual ~GetFocusedControlFunction() {} 87 virtual ~GetFocusedControlFunction() {}
86 virtual bool RunImpl() OVERRIDE; 88 virtual bool RunImpl() OVERRIDE;
87 DECLARE_EXTENSION_FUNCTION_NAME( 89 DECLARE_EXTENSION_FUNCTION_NAME(
88 "experimental.accessibility.getFocusedControl") 90 "experimental.accessibility.getFocusedControl")
89 }; 91 };
90 92
91 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 93 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698