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

Side by Side Diff: content/public/browser/browser_accessibility_state.h

Issue 667713006: Implement automatic load of composed/embedded automation trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Created 6 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
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 CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 9
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 15 matching lines...) Expand all
26 26
27 // Disables accessibility for all running tabs. (Only if accessibility is not 27 // Disables accessibility for all running tabs. (Only if accessibility is not
28 // required by a command line flag or by a platform requirement.) 28 // required by a command line flag or by a platform requirement.)
29 virtual void DisableAccessibility() = 0; 29 virtual void DisableAccessibility() = 0;
30 30
31 // Resets accessibility to the platform default for all running tabs. 31 // Resets accessibility to the platform default for all running tabs.
32 // This is probably off, but may be on, if --force_renderer_accessibility is 32 // This is probably off, but may be on, if --force_renderer_accessibility is
33 // passed, or EditableTextOnly if this is Win7. 33 // passed, or EditableTextOnly if this is Win7.
34 virtual void ResetAccessibilityMode() = 0; 34 virtual void ResetAccessibilityMode() = 0;
35 35
36 // Enables automation for all running tabs.
37 virtual void EnableAutomation() = 0;
38
39 // Disables automation for all running tabs. (Only if accessibility is not
dmazzoni 2014/10/29 06:53:30 nit: finish comment
40 virtual void DisableAutomation() = 0;
41
36 // Called when screen reader client is detected. 42 // Called when screen reader client is detected.
37 virtual void OnScreenReaderDetected() = 0; 43 virtual void OnScreenReaderDetected() = 0;
38 44
39 // Returns true if the browser should be customized for accessibility. 45 // Returns true if the browser should be customized for accessibility.
40 virtual bool IsAccessibleBrowser() = 0; 46 virtual bool IsAccessibleBrowser() = 0;
41 47
42 // Add a callback method that will be called once, a small while after the 48 // Add a callback method that will be called once, a small while after the
43 // browser starts up, when accessibility state histograms are updated. 49 // browser starts up, when accessibility state histograms are updated.
44 // Use this to register a method to update additional accessibility 50 // Use this to register a method to update additional accessibility
45 // histograms. 51 // histograms.
46 virtual void AddHistogramCallback(base::Closure callback) = 0; 52 virtual void AddHistogramCallback(base::Closure callback) = 0;
47 53
48 virtual void UpdateHistogramsForTesting() = 0; 54 virtual void UpdateHistogramsForTesting() = 0;
49 }; 55 };
50 56
51 } // namespace content 57 } // namespace content
52 58
53 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 59 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698