• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
3 // found in the LICENSE file.
4 
5 #include "chrome/browser/accessibility/browser_accessibility_state.h"
6 
7 #include "base/memory/singleton.h"
8 
BrowserAccessibilityState()9 BrowserAccessibilityState::BrowserAccessibilityState()
10     : screen_reader_active_(false) {
11 }
12 
~BrowserAccessibilityState()13 BrowserAccessibilityState::~BrowserAccessibilityState() {
14 }
15 
16 // static
GetInstance()17 BrowserAccessibilityState* BrowserAccessibilityState::GetInstance() {
18   return Singleton<BrowserAccessibilityState>::get();
19 }
20 
OnScreenReaderDetected()21 void BrowserAccessibilityState::OnScreenReaderDetected() {
22   screen_reader_active_ = true;
23 }
24 
IsAccessibleBrowser()25 bool BrowserAccessibilityState::IsAccessibleBrowser() {
26   return screen_reader_active_;
27 }
28