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

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

Issue 313053007: Passing BackgroundColorSpan and UnderlineSpan from Clank to Blink. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Replacing direct JNI calls with JNI generator, and calling back to Java to dispatch. Created 6 years, 6 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 | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/android/jni_weak_ref.h" 10 #include "base/android/jni_weak_ref.h"
(...skipping 24 matching lines...) Expand all
35 int action, int meta_state, 35 int action, int meta_state,
36 long event_time, int key_code, 36 long event_time, int key_code,
37 bool is_system_key, int unicode_text); 37 bool is_system_key, int unicode_text);
38 // |event_type| is a value of WebInputEvent::Type. 38 // |event_type| is a value of WebInputEvent::Type.
39 bool SendSyntheticKeyEvent(JNIEnv*, 39 bool SendSyntheticKeyEvent(JNIEnv*,
40 jobject, 40 jobject,
41 int event_type, 41 int event_type,
42 long timestamp_ms, 42 long timestamp_ms,
43 int native_key_code, 43 int native_key_code,
44 int unicode_char); 44 int unicode_char);
45 void SetComposingText(JNIEnv*, jobject, jstring text, int new_cursor_pos); 45 void AppendBackgroundColorSpan(JNIEnv*,
huangs 2014/06/10 18:09:47 Cannot forward declare "public static" methods, si
aurimas (slooooooooow) 2014/06/10 18:36:18 Why does it have to be public? It will only be use
46 void CommitText(JNIEnv*, jobject, jstring text); 46 jobject,
47 long underlines_ptr,
48 int start,
49 int end,
50 int background_color);
51 void SetComposingText(JNIEnv*,
52 jobject obj,
53 jobject text,
54 jstring text_str,
55 int new_cursor_pos);
56 void CommitText(JNIEnv*, jobject, jstring text_str);
47 void FinishComposingText(JNIEnv* env, jobject); 57 void FinishComposingText(JNIEnv* env, jobject);
48 void AttachImeAdapter(JNIEnv*, jobject java_object); 58 void AttachImeAdapter(JNIEnv*, jobject java_object);
49 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end); 59 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end);
50 void SetComposingRegion(JNIEnv*, jobject, int start, int end); 60 void SetComposingRegion(JNIEnv*, jobject, int start, int end);
51 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); 61 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after);
52 void Unselect(JNIEnv*, jobject); 62 void Unselect(JNIEnv*, jobject);
53 void SelectAll(JNIEnv*, jobject); 63 void SelectAll(JNIEnv*, jobject);
54 void Cut(JNIEnv*, jobject); 64 void Cut(JNIEnv*, jobject);
55 void Copy(JNIEnv*, jobject); 65 void Copy(JNIEnv*, jobject);
56 void Paste(JNIEnv*, jobject); 66 void Paste(JNIEnv*, jobject);
(...skipping 10 matching lines...) Expand all
67 77
68 RenderWidgetHostViewAndroid* rwhva_; 78 RenderWidgetHostViewAndroid* rwhva_;
69 JavaObjectWeakGlobalRef java_ime_adapter_; 79 JavaObjectWeakGlobalRef java_ime_adapter_;
70 }; 80 };
71 81
72 bool RegisterImeAdapter(JNIEnv* env); 82 bool RegisterImeAdapter(JNIEnv* env);
73 83
74 } // namespace content 84 } // namespace content
75 85
76 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 86 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/ime_adapter_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698