Chromium Code Reviews| Index: ui/base/win/osk_display_observer.h |
| diff --git a/ui/base/win/osk_display_observer.h b/ui/base/win/osk_display_observer.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..989ae77c6866641da7d6756a179c0973cc6a550b |
| --- /dev/null |
| +++ b/ui/base/win/osk_display_observer.h |
| @@ -0,0 +1,24 @@ |
| +// Copyright 2016 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 UI_BASE_WIN_OSK_OBSERVER_H_ |
| +#define UI_BASE_WIN_OSK_OBSERVER_H_ |
| + |
| +namespace ui { |
| + |
| +// Implemented by classes who wish to get notified about the on screen keyboard |
| +// becoming visible/hidden. |
| +class UI_BASE_EXPORT OnScreenKeyboardObserver { |
| + public: |
| + virtual ~OnScreenKeyboardObserver() {} |
|
ananta
2016/05/23 19:32:07
Could not make this protected as per your previous
|
| + |
| + // The |keyboard_rect| parameter contains the bounds of the keyboard in |
| + // pixels. |
| + virtual void OnKeyboardVisible(const gfx::Rect& keyboard_rect_in_pixels) {} |
| + virtual void OnKeyboardHidden(const gfx::Rect& keyboard_rect_in_pixels) {} |
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // UI_BASE_WIN_OSK_OBSERVER_H_ |