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

Side by Side Diff: ui/keyboard/webui/vk_mojo_handler.h

Issue 328303008: athena: Use mojo to provide the bindings for the virtual keyboard. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/keyboard/webui/keyboard.mojom ('k') | ui/keyboard/webui/vk_mojo_handler.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
6 #define UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
7
8 #include "base/macros.h"
9 #include "ui/base/ime/input_method_observer.h"
10 #include "ui/keyboard/webui/keyboard.mojom.h"
11
12 namespace keyboard {
13
14 class VKMojoHandler : public mojo::InterfaceImpl<KeyboardUIHandlerMojo>,
15 public ui::InputMethodObserver {
16 public:
17 VKMojoHandler();
18 virtual ~VKMojoHandler();
19
20 private:
21 ui::InputMethod* GetInputMethod();
22
23 // mojo::InterfaceImpl<>:
24 virtual void OnConnectionEstablished() OVERRIDE;
25
26 // KeyboardUIHandlerMojo:
27 virtual void SendKeyEvent(const mojo::String& event_type,
28 int32_t char_value,
29 int32_t key_code,
30 const mojo::String& key_name,
31 int32_t modifiers) OVERRIDE;
32 virtual void HideKeyboard() OVERRIDE;
33
34 // ui::InputMethodObserver:
35 virtual void OnTextInputTypeChanged(
36 const ui::TextInputClient* client) OVERRIDE;
37 virtual void OnFocus() OVERRIDE;
38 virtual void OnBlur() OVERRIDE;
39 virtual void OnCaretBoundsChanged(const ui::TextInputClient* client) OVERRIDE;
40 virtual void OnTextInputStateChanged(
41 const ui::TextInputClient* text_client) OVERRIDE;
42 virtual void OnInputMethodDestroyed(
43 const ui::InputMethod* input_method) OVERRIDE;
44 virtual void OnShowImeIfNeeded() OVERRIDE;
45
46 DISALLOW_COPY_AND_ASSIGN(VKMojoHandler);
47 };
48
49 } // namespace keyboard
50
51 #endif // UI_KEYBOARD_WEBUI_VK_MOJO_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/keyboard/webui/keyboard.mojom ('k') | ui/keyboard/webui/vk_mojo_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698