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

Unified Diff: ui/keyboard/keyboard_controller_observer.h

Issue 14477010: Partial fix for keyboard occlusion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: gyp fix Created 7 years, 8 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/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/keyboard/keyboard_controller_observer.h
diff --git a/ui/keyboard/keyboard_controller_observer.h b/ui/keyboard/keyboard_controller_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..2c7de7b016b4a00dafe86f6283c9da8aab48e597
--- /dev/null
+++ b/ui/keyboard/keyboard_controller_observer.h
@@ -0,0 +1,26 @@
+// Copyright (c) 2013 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_KEYBOARD_KEYBOARD_CONTROLLER_OBSERVER_H_
+#define UI_KEYBOARD_KEYBOARD_CONTROLLER_OBSERVER_H_
+
+#include "ui/keyboard/keyboard_export.h"
+
+namespace gfx {
+class Rect;
+}
+
+namespace keyboard {
+
+// Observers to the KeyboardController are notified of significant events that
+// occur with the keyboard, such as the bounds or visiility changing.
+class KEYBOARD_EXPORT KeyboardControllerObserver {
+ public:
+ // Called when the keyboard bounds or visibility are about to change.
+ virtual void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) = 0;
+};
+
+} // namespace keyboard
+
+#endif // UI_KEYBOARD_KEYBOARD_CONTROLLER_OBSERVER_H_
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698