blob: 42c914e20d2937556efaf4767f67d8e6af8f939a [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 "ash/ash_export.h"
namespace ash {
// ImmersiveFocusWatcher is responsible for grabbing a reveal lock based on
// activation and/or focus.
class ASH_EXPORT ImmersiveFocusWatcher {
virtual ~ImmersiveFocusWatcher() {}
// Forces updating the status of the lock. That is, this determines whether
// a lock should be held and updates accordingly. The lock is automatically
// maintained, but this function may be called to force an update.
virtual void UpdateFocusRevealedLock() = 0;
// Explicitly releases the lock, does nothing if a lock is not held.
virtual void ReleaseLock() = 0;
} // namespace ash