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

Side by Side Diff: chrome/browser/accessibility/accessibility_extension_api.h

Issue 10694085: Refactor extension event distribution to use Values instead of JSON strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixing memory leak in a test. Created 8 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
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 5 #ifndef CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 6 #define CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void OnWindowOpened(const AccessibilityWindowInfo* details); 49 void OnWindowOpened(const AccessibilityWindowInfo* details);
50 void OnWindowClosed(const AccessibilityWindowInfo* details); 50 void OnWindowClosed(const AccessibilityWindowInfo* details);
51 void OnControlFocused(const AccessibilityControlInfo* details); 51 void OnControlFocused(const AccessibilityControlInfo* details);
52 void OnControlAction(const AccessibilityControlInfo* details); 52 void OnControlAction(const AccessibilityControlInfo* details);
53 void OnTextChanged(const AccessibilityControlInfo* details); 53 void OnTextChanged(const AccessibilityControlInfo* details);
54 void OnMenuOpened(const AccessibilityMenuInfo* details); 54 void OnMenuOpened(const AccessibilityMenuInfo* details);
55 void OnMenuClosed(const AccessibilityMenuInfo* details); 55 void OnMenuClosed(const AccessibilityMenuInfo* details);
56 56
57 void DispatchEvent(Profile* profile, 57 void DispatchEvent(Profile* profile,
58 const char* event_name, 58 const char* event_name,
59 const std::string& json_args); 59 scoped_ptr<base::ListValue> event_args);
60 60
61 // Used for tracking registrations to history service notifications. 61 // Used for tracking registrations to history service notifications.
62 content::NotificationRegistrar registrar_; 62 content::NotificationRegistrar registrar_;
63 63
64 DictionaryValue last_focused_control_dict_; 64 DictionaryValue last_focused_control_dict_;
65 65
66 bool enabled_; 66 bool enabled_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter); 68 DISALLOW_COPY_AND_ASSIGN(ExtensionAccessibilityEventRouter);
69 }; 69 };
(...skipping 18 matching lines...) Expand all
88 88
89 // API function that returns alerts being shown on the give tab. 89 // API function that returns alerts being shown on the give tab.
90 class GetAlertsForTabFunction : public SyncExtensionFunction { 90 class GetAlertsForTabFunction : public SyncExtensionFunction {
91 virtual ~GetAlertsForTabFunction() {} 91 virtual ~GetAlertsForTabFunction() {}
92 virtual bool RunImpl() OVERRIDE; 92 virtual bool RunImpl() OVERRIDE;
93 DECLARE_EXTENSION_FUNCTION_NAME( 93 DECLARE_EXTENSION_FUNCTION_NAME(
94 "experimental.accessibility.getAlertsForTab") 94 "experimental.accessibility.getAlertsForTab")
95 }; 95 };
96 96
97 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_ 97 #endif // CHROME_BROWSER_ACCESSIBILITY_ACCESSIBILITY_EXTENSION_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/accessibility/accessibility_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698