blob: 3b934bb4a89e0c53031230f2d8ebc929c1c335fc [file] [log] [blame]
// Copyright 2016 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 "services/ui/ws/accessibility_manager.h"
#include "services/ui/ws/window_server.h"
namespace ui {
namespace ws {
AccessibilityManager::AccessibilityManager(WindowServer* window_server,
const UserId& user)
: window_server_(window_server), user_(user), binding_(this) {
DCHECK(window_server_);
}
AccessibilityManager::~AccessibilityManager() {}
void AccessibilityManager::Bind(mojom::AccessibilityManagerRequest request) {
binding_.Close();
binding_.Bind(std::move(request));
}
void AccessibilityManager::SetHighContrastMode(bool enabled) {
window_server_->SetHighContrastMode(user_, enabled);
}
} // namespace ws
} // namespace ui