1 // Copyright 2013 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WINDOW_CHANGE_OBSERVER_H_
6 #define WINDOW_CHANGE_OBSERVER_H_
8 namespace ozonewayland {
10 // A simple observer interface for all clients interested in recieving various
11 // window state change notifications like when the pointer enters a
13 class WindowChangeObserver {
15 // Called when the pointer enters a window and recieves a button down
17 virtual void OnWindowFocused(unsigned windowhandle) = 0;
18 // Called when the pointer enters a window.
19 virtual void OnWindowEnter(unsigned windowhandle) = 0;
20 // Called when the pointer leaves a window.
21 virtual void OnWindowLeave(unsigned windowhandle) = 0;
24 virtual ~WindowChangeObserver() {}
27 } // namespace ozonewayland
29 #endif // WINDOW_CHANGE_OBSERVER_H_