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

Side by Side Diff: content/browser/renderer_host/ime_adapter_android.h

Issue 10828098: Upstreaming Select Action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Oli's and Min's nits fixed Created 8 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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
7
8 #include <jni.h>
9
10 namespace content {
brettw 2012/07/31 21:41:53 Blank line after this.
aurimas (slooooooooow) 2012/07/31 21:58:38 Done.
11 class RenderWidgetHostViewAndroid;
12 struct NativeWebKeyboardEvent;
13
14 // This class is in charge of dispatching key events from the java side
15 // and forward to renderer along with input method results via
16 // corresponding host view.
17 class ImeAdapterAndroid {
18 public:
19 explicit ImeAdapterAndroid(RenderWidgetHostViewAndroid* rwhva);
20 ~ImeAdapterAndroid();
21
22 // Called from java -> native
23 // The java side is responsible to translate android KeyEvent various enums
24 // and values into the corresponding WebKit::WebInputEvent.
25 void Unselect(JNIEnv*, jobject);
26 void SelectAll(JNIEnv*, jobject);
27 void Cut(JNIEnv*, jobject);
28 void Copy(JNIEnv*, jobject);
29 void Paste(JNIEnv*, jobject);
30
31 private:
32 RenderWidgetHostViewAndroid* rwhva_;
33 jobject java_ime_adapter_;
34 };
35
36 bool RegisterImeAdapter(JNIEnv* env);
brettw 2012/07/31 21:41:53 Why not have this as a static function in the clas
aurimas (slooooooooow) 2012/07/31 21:58:38 Done.
37
38 } // namespace content
brettw 2012/07/31 21:41:53 Two spaces before end-of-line comment.
aurimas (slooooooooow) 2012/07/31 21:58:38 Done.
39
40 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698