| OLD | NEW |
| 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_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ |
| 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ | 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 10 #include "base/timer.h" | 11 #include "base/timer.h" |
| 11 #include "content/public/browser/browser_accessibility_state.h" | 12 #include "content/public/browser/browser_accessibility_state.h" |
| 12 | 13 |
| 13 template <typename T> struct DefaultSingletonTraits; | 14 template <typename T> struct DefaultSingletonTraits; |
| 14 | 15 |
| 15 // The BrowserAccessibilityState class is used to determine if Chrome should be | 16 // The BrowserAccessibilityState class is used to determine if Chrome should be |
| 16 // customized for users with assistive technology, such as screen readers. We | 17 // customized for users with assistive technology, such as screen readers. We |
| 17 // modify the behavior of certain user interfaces to provide a better experience | 18 // modify the behavior of certain user interfaces to provide a better experience |
| 18 // for screen reader users. The way we detect a screen reader program is | 19 // for screen reader users. The way we detect a screen reader program is |
| 19 // different for each platform. | 20 // different for each platform. |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Set to true when full accessibility features should be enabled. | 53 // Set to true when full accessibility features should be enabled. |
| 53 bool accessibility_enabled_; | 54 bool accessibility_enabled_; |
| 54 | 55 |
| 55 // Timer to update the histogram a short while after startup. | 56 // Timer to update the histogram a short while after startup. |
| 56 base::OneShotTimer<BrowserAccessibilityStateImpl> update_histogram_timer_; | 57 base::OneShotTimer<BrowserAccessibilityStateImpl> update_histogram_timer_; |
| 57 | 58 |
| 58 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityStateImpl); | 59 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityStateImpl); |
| 59 }; | 60 }; |
| 60 | 61 |
| 61 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ | 62 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_STATE_IMPL_H_ |
| OLD | NEW |