Index: ui/aura/client/virtual_keyboard_client.h |
diff --git a/ui/aura/client/virtual_keyboard_client.h b/ui/aura/client/virtual_keyboard_client.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1ef36b8fd2cd13c46297f1d4956ade8eb16200fa |
--- /dev/null |
+++ b/ui/aura/client/virtual_keyboard_client.h |
@@ -0,0 +1,42 @@ |
+// Copyright 2014 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_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ |
+#define UI_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ |
+ |
+#include "ui/aura/aura_export.h" |
+ |
+namespace ui { |
+class Event; |
+} |
+ |
+namespace aura { |
+ |
+class Window; |
+ |
+namespace client { |
+class VirtualKeyboardObserver; |
+ |
+// An interface implemented by an object that manages window focus. |
+class AURA_EXPORT VirtualKeyboardClient { |
sadrul
2014/03/26 17:19:18
Why do we need to introduce this client, and add t
kevers
2014/03/26 17:43:46
RWHVA implements several observers in aura::client
sadrul
2014/03/26 18:26:21
I don't think adding a new aura-client interface i
kevers
2014/04/09 20:06:28
Removed. Now using singleton keyboard controller.
|
+ public: |
+ virtual ~VirtualKeyboardClient() {} |
+ |
+ virtual void AddObserver(VirtualKeyboardObserver* observer) = 0; |
+ virtual void RemoveObserver(VirtualKeyboardObserver* observer) = 0; |
+ |
+ // Returns TRUE if keyboard overscroll mode is enabled. |
+ virtual bool IsOverscrollEnabled() = 0; |
+}; |
+ |
+// Sets/Gets the virtual keyboard client on the root Window. |
+AURA_EXPORT void SetVirtualKeyboardClient(Window* root_window, |
+ VirtualKeyboardClient* client); |
+AURA_EXPORT VirtualKeyboardClient* GetVirtualKeyboardClient( |
+ const Window* window); |
+ |
+} // namespace clients |
+} // namespace aura |
+ |
+#endif // UI_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ |