| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ | 5 #ifndef WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ |
| 6 #define WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ | 6 #define WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <Windows.h> | 8 #include <Windows.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | |
| 11 | 10 |
| 12 namespace metro_driver { | 11 namespace metro_driver { |
| 13 | 12 |
| 14 // An observer interface implemented by objects that want to be informed | 13 // An observer interface implemented by objects that want to be informed |
| 15 // when the active language profile is changed. | 14 // when the active language profile is changed. |
| 16 class InputSourceObserver { | 15 class InputSourceObserver { |
| 17 public: | 16 public: |
| 18 virtual ~InputSourceObserver() {} | 17 virtual ~InputSourceObserver() {} |
| 19 | 18 |
| 20 // Called when the active language profile is changed. | 19 // Called when the active language profile is changed. |
| 21 virtual void OnInputSourceChanged() = 0; | 20 virtual void OnInputSourceChanged() = 0; |
| 22 }; | 21 }; |
| 23 | 22 |
| 24 } // namespace metro_driver | 23 } // namespace metro_driver |
| 25 | 24 |
| 26 #endif // WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ | 25 #endif // WIN8_METRO_DRIVER_IME_INPUT_SOURCE_OBSERVER_H_ |
| OLD | NEW |