blob: 86cf6026a57e1d11efa223f2d10a1dfdb558d2ec [file] [log] [blame]
// Copyright 2019 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/ash/arc/instance_throttle/arc_active_window_throttle_observer.h"
#include "ash/public/cpp/app_types_util.h"
namespace arc {
ArcActiveWindowThrottleObserver::ArcActiveWindowThrottleObserver()
: WindowThrottleObserverBase(ThrottleObserver::PriorityLevel::CRITICAL,
"ArcWindowIsActiveWindow") {}
bool ArcActiveWindowThrottleObserver::ProcessWindowActivation(
ActivationReason reason,
aura::Window* gained_active,
aura::Window* lost_active) {
return ash::IsArcWindow(gained_active);
}
} // namespace arc