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

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

Issue 381593002: Removing ContentView dependencies for few functions which acts as WebContents wrapper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed review comments. Created 6 years, 5 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 | « no previous file | content/browser/android/content_view_core_impl.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 jfloat x1, jfloat y1, 151 jfloat x1, jfloat y1,
152 jfloat x2, jfloat y2); 152 jfloat x2, jfloat y2);
153 void MoveCaret(JNIEnv* env, jobject obj, jfloat x, jfloat y); 153 void MoveCaret(JNIEnv* env, jobject obj, jfloat x, jfloat y);
154 154
155 void ResetGestureDetection(JNIEnv* env, jobject obj); 155 void ResetGestureDetection(JNIEnv* env, jobject obj);
156 void SetDoubleTapSupportEnabled(JNIEnv* env, jobject obj, jboolean enabled); 156 void SetDoubleTapSupportEnabled(JNIEnv* env, jobject obj, jboolean enabled);
157 void SetMultiTouchZoomSupportEnabled(JNIEnv* env, 157 void SetMultiTouchZoomSupportEnabled(JNIEnv* env,
158 jobject obj, 158 jobject obj,
159 jboolean enabled); 159 jboolean enabled);
160 160
161 void AddStyleSheetByURL(JNIEnv* env, jobject obj, jstring url);
162 void ClearHistory(JNIEnv* env, jobject obj); 161 void ClearHistory(JNIEnv* env, jobject obj);
163 void EvaluateJavaScript(JNIEnv* env, 162 void EvaluateJavaScript(JNIEnv* env,
164 jobject obj, 163 jobject obj,
165 jstring script, 164 jstring script,
166 jobject callback, 165 jobject callback,
167 jboolean start_renderer); 166 jboolean start_renderer);
168 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id, 167 void PostMessageToFrame(JNIEnv* env, jobject obj, jstring frame_id,
169 jstring message, jstring source_origin, jstring target_origin); 168 jstring message, jstring source_origin, jstring target_origin);
170 long GetNativeImeAdapter(JNIEnv* env, jobject obj); 169 long GetNativeImeAdapter(JNIEnv* env, jobject obj);
171 void SetFocus(JNIEnv* env, jobject obj, jboolean focused); 170 void SetFocus(JNIEnv* env, jobject obj, jboolean focused);
172 void ScrollFocusedEditableNodeIntoView(JNIEnv* env, jobject obj);
173 void SelectWordAroundCaret(JNIEnv* env, jobject obj);
174 171
175 jint GetBackgroundColor(JNIEnv* env, jobject obj); 172 jint GetBackgroundColor(JNIEnv* env, jobject obj);
176 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color); 173 void SetBackgroundColor(JNIEnv* env, jobject obj, jint color);
177 void OnShow(JNIEnv* env, jobject obj);
178 void OnHide(JNIEnv* env, jobject obj);
179 void ClearSslPreferences(JNIEnv* env, jobject /* obj */); 174 void ClearSslPreferences(JNIEnv* env, jobject /* obj */);
180 void SetUseDesktopUserAgent(JNIEnv* env, 175 void SetUseDesktopUserAgent(JNIEnv* env,
181 jobject /* obj */, 176 jobject /* obj */,
182 jboolean state, 177 jboolean state,
183 jboolean reload_on_state_change); 178 jboolean reload_on_state_change);
184 bool GetUseDesktopUserAgent(JNIEnv* env, jobject /* obj */); 179 bool GetUseDesktopUserAgent(JNIEnv* env, jobject /* obj */);
185 void Show();
186 void Hide();
187 void SetAllowJavascriptInterfacesInspection(JNIEnv* env, 180 void SetAllowJavascriptInterfacesInspection(JNIEnv* env,
188 jobject obj, 181 jobject obj,
189 jboolean allow); 182 jboolean allow);
190 void AddJavascriptInterface(JNIEnv* env, 183 void AddJavascriptInterface(JNIEnv* env,
191 jobject obj, 184 jobject obj,
192 jobject object, 185 jobject object,
193 jstring name, 186 jstring name,
194 jclass safe_annotation_clazz); 187 jclass safe_annotation_clazz);
195 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name); 188 void RemoveJavascriptInterface(JNIEnv* env, jobject obj, jstring name);
196 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject history); 189 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject history);
197 void GetDirectedNavigationHistory(JNIEnv* env, 190 void GetDirectedNavigationHistory(JNIEnv* env,
198 jobject obj, 191 jobject obj,
199 jobject history, 192 jobject history,
200 jboolean is_forward, 193 jboolean is_forward,
201 jint max_entries); 194 jint max_entries);
202 base::android::ScopedJavaLocalRef<jstring> 195 base::android::ScopedJavaLocalRef<jstring>
203 GetOriginalUrlForActiveNavigationEntry(JNIEnv* env, jobject obj); 196 GetOriginalUrlForActiveNavigationEntry(JNIEnv* env, jobject obj);
204 void WasResized(JNIEnv* env, jobject obj); 197 void WasResized(JNIEnv* env, jobject obj);
205 jboolean IsRenderWidgetHostViewReady(JNIEnv* env, jobject obj);
206 void ExitFullscreen(JNIEnv* env, jobject obj);
207 void UpdateTopControlsState(JNIEnv* env,
208 jobject obj,
209 bool enable_hiding,
210 bool enable_showing,
211 bool animate);
212 void ShowImeIfNeeded(JNIEnv* env, jobject obj);
213
214 void ShowInterstitialPage(JNIEnv* env,
215 jobject obj,
216 jstring jurl,
217 jlong delegate);
218 jboolean IsShowingInterstitialPage(JNIEnv* env, jobject obj);
219 198
220 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled); 199 void SetAccessibilityEnabled(JNIEnv* env, jobject obj, bool enabled);
221 200
222 void ExtractSmartClipData(JNIEnv* env, 201 void ExtractSmartClipData(JNIEnv* env,
223 jobject obj, 202 jobject obj,
224 jint x, 203 jint x,
225 jint y, 204 jint y,
226 jint width, 205 jint width,
227 jint height); 206 jint height);
228 207
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 java_bridge_dispatcher_host_; 382 java_bridge_dispatcher_host_;
404 383
405 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); 384 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl);
406 }; 385 };
407 386
408 bool RegisterContentViewCore(JNIEnv* env); 387 bool RegisterContentViewCore(JNIEnv* env);
409 388
410 } // namespace content 389 } // namespace content
411 390
412 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ 391 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/android/content_view_core_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698