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

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

Issue 3859003: FBTF: Even more ctor/virtual deinlining. (Closed) Base URL: http://git.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 29 matching lines...) Expand all
40 // is enabled or disabled. 40 // is enabled or disabled.
41 void SetAccessibilityEnabled(bool enabled); 41 void SetAccessibilityEnabled(bool enabled);
42 bool IsAccessibilityEnabled() const; 42 bool IsAccessibilityEnabled() const;
43 typedef Callback0::Type Callback; 43 typedef Callback0::Type Callback;
44 void AddOnEnabledListener(Callback* callback); 44 void AddOnEnabledListener(Callback* callback);
45 void AddOnDisabledListener(Callback* callback); 45 void AddOnDisabledListener(Callback* callback);
46 46
47 private: 47 private:
48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>; 48 friend struct DefaultSingletonTraits<ExtensionAccessibilityEventRouter>;
49 49
50 ExtensionAccessibilityEventRouter() 50 ExtensionAccessibilityEventRouter();
51 : enabled_(false) {}
52 virtual ~ExtensionAccessibilityEventRouter(); 51 virtual ~ExtensionAccessibilityEventRouter();
53 52
54 // NotificationObserver::Observe. 53 // NotificationObserver::Observe.
55 virtual void Observe(NotificationType type, 54 virtual void Observe(NotificationType type,
56 const NotificationSource& source, 55 const NotificationSource& source,
57 const NotificationDetails& details); 56 const NotificationDetails& details);
58 57
59 void OnWindowOpened(const AccessibilityWindowInfo* details); 58 void OnWindowOpened(const AccessibilityWindowInfo* details);
60 void OnWindowClosed(const AccessibilityWindowInfo* details); 59 void OnWindowClosed(const AccessibilityWindowInfo* details);
61 void OnControlFocused(const AccessibilityControlInfo* details); 60 void OnControlFocused(const AccessibilityControlInfo* details);
(...skipping 30 matching lines...) Expand all
92 91
93 // API function that returns the most recent focused control. 92 // API function that returns the most recent focused control.
94 class GetFocusedControlFunction : public SyncExtensionFunction { 93 class GetFocusedControlFunction : public SyncExtensionFunction {
95 virtual ~GetFocusedControlFunction() {} 94 virtual ~GetFocusedControlFunction() {}
96 virtual bool RunImpl(); 95 virtual bool RunImpl();
97 DECLARE_EXTENSION_FUNCTION_NAME( 96 DECLARE_EXTENSION_FUNCTION_NAME(
98 "experimental.accessibility.getFocusedControl") 97 "experimental.accessibility.getFocusedControl")
99 }; 98 };
100 99
101 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_ 100 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_ACCESSIBILITY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698