blob: dad1d9c2127b42bc71fc5ea6fbc9b08870d4fb42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// 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.
#ifndef COMPONENTS_EXO_SEAT_OBSERVER_H_
#define COMPONENTS_EXO_SEAT_OBSERVER_H_
namespace exo {
class Surface;
// Observers can listen to various events on the Seats.
class SeatObserver {
public:
// Called when a new surface receives keyboard focus and before
// OnSurfaceFocused.
virtual void OnSurfaceFocusing(Surface* gaining_focus) = 0;
// Called when a new surface receives keyboard focus.
virtual void OnSurfaceFocused(Surface* gained_focus) = 0;
protected:
virtual ~SeatObserver() {}
};
} // namespace exo
#endif // COMPONENTS_EXO_SEAT_OBSERVER_H_
|