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

Unified Diff: ui/aura/client/virtual_keyboard_client.h

Issue 195793004: Implement overscroll support for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright notice. Created 6 years, 9 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/aura/aura.gyp ('k') | ui/aura/client/virtual_keyboard_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/virtual_keyboard_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698