Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: ui/base/win/osk_display_observer.h

Issue 1986153005: The on screen keyboard on Windows 8+ should not obscure the input field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address sky unittest review comments Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/base/win/osk_display_manager_unittest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8c5d09205e9ced1fb3dfdacbdfc45dccd98cc745
--- /dev/null
+++ b/ui/base/win/osk_display_observer.h
@@ -0,0 +1,28 @@
+// 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 gfx {
+class Rect;
+}
+
+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() {}
+
+ // 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_
« no previous file with comments | « ui/base/win/osk_display_manager_unittest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698