Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 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_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ | |
| 6 #define UI_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ | |
| 7 | |
| 8 #include "ui/aura/aura_export.h" | |
| 9 | |
| 10 namespace ui { | |
| 11 class Event; | |
| 12 } | |
| 13 | |
| 14 namespace aura { | |
| 15 | |
| 16 class Window; | |
| 17 | |
| 18 namespace client { | |
| 19 class VirtualKeyboardObserver; | |
| 20 | |
| 21 // An interface implemented by an object that manages window focus. | |
| 22 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.
| |
| 23 public: | |
| 24 virtual ~VirtualKeyboardClient() {} | |
| 25 | |
| 26 virtual void AddObserver(VirtualKeyboardObserver* observer) = 0; | |
| 27 virtual void RemoveObserver(VirtualKeyboardObserver* observer) = 0; | |
| 28 | |
| 29 // Returns TRUE if keyboard overscroll mode is enabled. | |
| 30 virtual bool IsOverscrollEnabled() = 0; | |
| 31 }; | |
| 32 | |
| 33 // Sets/Gets the virtual keyboard client on the root Window. | |
| 34 AURA_EXPORT void SetVirtualKeyboardClient(Window* root_window, | |
| 35 VirtualKeyboardClient* client); | |
| 36 AURA_EXPORT VirtualKeyboardClient* GetVirtualKeyboardClient( | |
| 37 const Window* window); | |
| 38 | |
| 39 } // namespace clients | |
| 40 } // namespace aura | |
| 41 | |
| 42 #endif // UI_AURA_CLIENT_VIRTUAL_KEYBOARD_CLIENT_H_ | |
| OLD | NEW |