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

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

Issue 1080693002: Implementation of Smart GO NEXT feature in Android Chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated based on blink side reviews. Created 5 years, 7 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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void FinishComposingText(JNIEnv* env, jobject); 52 void FinishComposingText(JNIEnv* env, jobject);
53 void AttachImeAdapter(JNIEnv*, jobject java_object); 53 void AttachImeAdapter(JNIEnv*, jobject java_object);
54 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end); 54 void SetEditableSelectionOffsets(JNIEnv*, jobject, int start, int end);
55 void SetComposingRegion(JNIEnv*, jobject, int start, int end); 55 void SetComposingRegion(JNIEnv*, jobject, int start, int end);
56 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after); 56 void DeleteSurroundingText(JNIEnv*, jobject, int before, int after);
57 void Unselect(JNIEnv*, jobject); 57 void Unselect(JNIEnv*, jobject);
58 void SelectAll(JNIEnv*, jobject); 58 void SelectAll(JNIEnv*, jobject);
59 void Cut(JNIEnv*, jobject); 59 void Cut(JNIEnv*, jobject);
60 void Copy(JNIEnv*, jobject); 60 void Copy(JNIEnv*, jobject);
61 void Paste(JNIEnv*, jobject); 61 void Paste(JNIEnv*, jobject);
62 void AdvanceFocusInForm(JNIEnv* env, jobject obj, jboolean forward);
62 void ResetImeAdapter(JNIEnv*, jobject); 63 void ResetImeAdapter(JNIEnv*, jobject);
63 64
64 // Called from native -> java 65 // Called from native -> java
65 void CancelComposition(); 66 void CancelComposition();
66 void FocusedNodeChanged(bool is_editable_node); 67 void FocusedNodeChanged(bool is_editable_node);
67 68
68 private: 69 private:
69 RenderWidgetHostImpl* GetRenderWidgetHostImpl(); 70 RenderWidgetHostImpl* GetRenderWidgetHostImpl();
70 RenderFrameHost* GetFocusedFrame(); 71 RenderFrameHost* GetFocusedFrame();
71 WebContents* GetWebContents(); 72 WebContents* GetWebContents();
72 73
73 RenderWidgetHostViewAndroid* rwhva_; 74 RenderWidgetHostViewAndroid* rwhva_;
74 JavaObjectWeakGlobalRef java_ime_adapter_; 75 JavaObjectWeakGlobalRef java_ime_adapter_;
75 }; 76 };
76 77
77 bool RegisterImeAdapter(JNIEnv* env); 78 bool RegisterImeAdapter(JNIEnv* env);
78 79
79 } // namespace content 80 } // namespace content
80 81
81 #endif // CONTENT_BROWSER_RENDERER_HOST_IME_ADAPTER_ANDROID_H_ 82 #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') | content/browser/web_contents/web_contents_impl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698