OLD | NEW |
| (Empty) |
1 // Copyright 2013 The Chromium Authors. 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 WIN8_METRO_DRIVER_IME_IME_POPUP_OBSERVER_H_ | |
6 #define WIN8_METRO_DRIVER_IME_IME_POPUP_OBSERVER_H_ | |
7 | |
8 namespace metro_driver { | |
9 | |
10 // An observer interface implemented by objects that want to be informed when | |
11 // an IME shows or hides its popup window. | |
12 class ImePopupObserver { | |
13 public: | |
14 enum EventType { | |
15 kPopupShown, | |
16 kPopupHidden, | |
17 kPopupUpdated, | |
18 }; | |
19 virtual ~ImePopupObserver() {} | |
20 | |
21 // Called whenever an IME's popup window is changed. | |
22 virtual void OnImePopupChanged(EventType type) = 0; | |
23 }; | |
24 | |
25 } // namespace metro_driver | |
26 | |
27 #endif // WIN8_METRO_DRIVER_IME_IME_POPUP_OBSERVER_H_ | |
OLD | NEW |