blob: d3dcbacbcdb29215b932dd4976ae97a793022bc0 [file] [log] [blame]
// Copyright 2018 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 "base/component_export.h"
#include "services/ws/common/types.h"
namespace ws {
class COMPONENT_EXPORT(WINDOW_SERVICE) WindowServiceObserver {
// Called when an event is sent to the client identified by |client_id|.
// |event_id| is a unique identifier for the event. Once the client responds
// to the event OnClientAckedEvent() is called.
virtual void OnWillSendEventToClient(ClientSpecificId client_id,
uint32_t event_id) {}
// Called when the client identified by |client_id| responds to an event. See
// OnWillSendEventToClient() for more details.
virtual void OnClientAckedEvent(ClientSpecificId client_id,
uint32_t event_id) {}
// Client when the connection to a client is about to be destroyed.
virtual void OnWillDestroyClient(ClientSpecificId client_id) {}
virtual ~WindowServiceObserver() {}
} // namespace ws