OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 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 UI_BASE_WIN_OSK_OBSERVER_H_ |
| 6 #define UI_BASE_WIN_OSK_OBSERVER_H_ |
| 7 |
| 8 namespace gfx { |
| 9 class Rect; |
| 10 } |
| 11 |
| 12 namespace ui { |
| 13 |
| 14 // Implemented by classes who wish to get notified about the on screen keyboard |
| 15 // becoming visible/hidden. |
| 16 class UI_BASE_EXPORT OnScreenKeyboardObserver { |
| 17 public: |
| 18 virtual ~OnScreenKeyboardObserver() {} |
| 19 |
| 20 // The |keyboard_rect| parameter contains the bounds of the keyboard in |
| 21 // pixels. |
| 22 virtual void OnKeyboardVisible(const gfx::Rect& keyboard_rect_in_pixels) {} |
| 23 virtual void OnKeyboardHidden(const gfx::Rect& keyboard_rect_in_pixels) {} |
| 24 }; |
| 25 |
| 26 } // namespace ui |
| 27 |
| 28 #endif // UI_BASE_WIN_OSK_OBSERVER_H_ |
OLD | NEW |