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

Side by Side Diff: mojo/shell/android/keyboard_impl.cc

Issue 1049993002: Get mojo_shell building inside chromium checkout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix presubmit Created 5 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 unified diff | Download patch
« no previous file with comments | « mojo/shell/android/keyboard_impl.h ('k') | mojo/shell/android/library_loader.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 2015 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 #include "mojo/shell/android/keyboard_impl.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/logging.h"
9 #include "jni/Keyboard_jni.h"
10
11 namespace mojo {
12 namespace shell {
13
14 KeyboardImpl::KeyboardImpl(InterfaceRequest<Keyboard> request)
15 : binding_(this, request.Pass()) {
16 }
17
18 KeyboardImpl::~KeyboardImpl() {
19 }
20
21 void KeyboardImpl::Show() {
22 Java_Keyboard_showSoftKeyboard(base::android::AttachCurrentThread(),
23 base::android::GetApplicationContext());
24 }
25
26 void KeyboardImpl::Hide() {
27 Java_Keyboard_hideSoftKeyboard(base::android::AttachCurrentThread(),
28 base::android::GetApplicationContext());
29 }
30
31 bool RegisterKeyboardJni(JNIEnv* env) {
32 return RegisterNativesImpl(env);
33 }
34
35 } // namespace shell
36 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/shell/android/keyboard_impl.h ('k') | mojo/shell/android/library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698