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()9BrowserAccessibilityState::BrowserAccessibilityState() 10 : screen_reader_active_(false) { 11 } 12 ~BrowserAccessibilityState()13BrowserAccessibilityState::~BrowserAccessibilityState() { 14 } 15 16 // static GetInstance()17BrowserAccessibilityState* BrowserAccessibilityState::GetInstance() { 18 return Singleton<BrowserAccessibilityState>::get(); 19 } 20 OnScreenReaderDetected()21void BrowserAccessibilityState::OnScreenReaderDetected() { 22 screen_reader_active_ = true; 23 } 24 IsAccessibleBrowser()25bool BrowserAccessibilityState::IsAccessibleBrowser() { 26 return screen_reader_active_; 27 } 28