- add sources.
[platform/framework/web/crosswalk.git] / src / ozone / wayland / window_change_observer.h
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.
4
5 #ifndef WINDOW_CHANGE_OBSERVER_H_
6 #define WINDOW_CHANGE_OBSERVER_H_
7
8 namespace ozonewayland {
9
10 // A simple observer interface for all clients interested in recieving various
11 // window state change notifications like when the pointer enters a
12 // particular window.
13 class WindowChangeObserver {
14  public:
15   // Called when the pointer enters a window and recieves a button down
16   // notification.
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;
22
23  protected:
24   virtual ~WindowChangeObserver() {}
25 };
26
27 }  // namespace ozonewayland
28
29 #endif  // WINDOW_CHANGE_OBSERVER_H_