blob: bc818d3f942345ac7c8ac6d0b32a7bf744c00fb3 [file] [log] [blame]
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/accessibility/browser_accessibility_state.h"
#include "base/memory/singleton.h"
BrowserAccessibilityState::BrowserAccessibilityState()
: screen_reader_active_(false) {
}
BrowserAccessibilityState::~BrowserAccessibilityState() {
}
// static
BrowserAccessibilityState* BrowserAccessibilityState::GetInstance() {
return Singleton<BrowserAccessibilityState>::get();
}
void BrowserAccessibilityState::OnScreenReaderDetected() {
screen_reader_active_ = true;
}
bool BrowserAccessibilityState::IsAccessibleBrowser() {
return screen_reader_active_;
}