blob: 63fd274bd4ca3e5f18f5d99733a438a0b1257745 [file] [log] [blame]
// Copyright 2017 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 <stdint.h>
#include "ash/ash_export.h"
#include "base/macros.h"
namespace aura {
class WindowTreeHost;
} // namespace aura
namespace display {
class Display;
} // namespace display
namespace ash {
// A delegate for the unified window tree host as well as the mirroring display
// hosts.
class ASH_EXPORT AshWindowTreeHostMirroringDelegate {
AshWindowTreeHostMirroringDelegate() = default;
virtual ~AshWindowTreeHostMirroringDelegate() = default;
// Returns a pointer to the mirroring display with |display_id| if found, or
// nullptr if not found.
virtual const display::Display* GetMirroringDisplayById(
int64_t display_id) const = 0;
// Sets the current window tree host that is the source of events which will
// be forwarded by the unified mode event targeter to the unified host.
virtual void SetCurrentEventTargeterSourceHost(
aura::WindowTreeHost* targeter_src_host) = 0;
} // namespace ash