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

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

Issue 2839993002: [Android] Adding Smart GO/NEXT feature in Chrome (Closed)
Patch Set: Created 3 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ANDROID_IME_ADAPTER_ANDROID_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_
6 #define CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ 6 #define CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // WebContentsObserver implementation. 101 // WebContentsObserver implementation.
102 void RenderViewReady() override; 102 void RenderViewReady() override;
103 void RenderViewHostChanged(RenderViewHost* old_host, 103 void RenderViewHostChanged(RenderViewHost* old_host,
104 RenderViewHost* new_host) override; 104 RenderViewHost* new_host) override;
105 void DidAttachInterstitialPage() override; 105 void DidAttachInterstitialPage() override;
106 void DidDetachInterstitialPage() override; 106 void DidDetachInterstitialPage() override;
107 void WebContentsDestroyed() override; 107 void WebContentsDestroyed() override;
108 108
109 void UpdateState(const TextInputState& state); 109 void UpdateState(const TextInputState& state);
110 110
111 void AdvanceFocusInForm(JNIEnv*,
112 const base::android::JavaParamRef<jobject>&,
113 jboolean);
114
111 private: 115 private:
112 RenderWidgetHostImpl* GetFocusedWidget(); 116 RenderWidgetHostImpl* GetFocusedWidget();
113 RenderFrameHost* GetFocusedFrame(); 117 RenderFrameHost* GetFocusedFrame();
114 std::vector<blink::WebCompositionUnderline> GetUnderlinesFromSpans( 118 std::vector<blink::WebCompositionUnderline> GetUnderlinesFromSpans(
115 JNIEnv* env, 119 JNIEnv* env,
116 const base::android::JavaParamRef<jobject>& obj, 120 const base::android::JavaParamRef<jobject>& obj,
117 const base::android::JavaParamRef<jobject>& text, 121 const base::android::JavaParamRef<jobject>& text,
118 const base::string16& text16); 122 const base::string16& text16);
119 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const; 123 RenderWidgetHostViewAndroid* GetRenderWidgetHostViewAndroid() const;
120 void UpdateRenderProcessConnection(RenderWidgetHostViewAndroid* new_rwhva); 124 void UpdateRenderProcessConnection(RenderWidgetHostViewAndroid* new_rwhva);
121 125
122 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva_; 126 base::WeakPtr<RenderWidgetHostViewAndroid> rwhva_;
123 JavaObjectWeakGlobalRef java_ime_adapter_; 127 JavaObjectWeakGlobalRef java_ime_adapter_;
124 }; 128 };
125 129
126 bool RegisterImeAdapter(JNIEnv* env); 130 bool RegisterImeAdapter(JNIEnv* env);
127 131
128 } // namespace content 132 } // namespace content
129 133
130 #endif // CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_ 134 #endif // CONTENT_BROWSER_ANDROID_IME_ADAPTER_ANDROID_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/ime_adapter_android.cc » ('j') | content/browser/android/ime_adapter_android.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698