OLD | NEW |
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 <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 const base::android::JavaParamRef<jobject>& obj); | 166 const base::android::JavaParamRef<jobject>& obj); |
167 void SetDoubleTapSupportEnabled( | 167 void SetDoubleTapSupportEnabled( |
168 JNIEnv* env, | 168 JNIEnv* env, |
169 const base::android::JavaParamRef<jobject>& obj, | 169 const base::android::JavaParamRef<jobject>& obj, |
170 jboolean enabled); | 170 jboolean enabled); |
171 void SetMultiTouchZoomSupportEnabled( | 171 void SetMultiTouchZoomSupportEnabled( |
172 JNIEnv* env, | 172 JNIEnv* env, |
173 const base::android::JavaParamRef<jobject>& obj, | 173 const base::android::JavaParamRef<jobject>& obj, |
174 jboolean enabled); | 174 jboolean enabled); |
175 | 175 |
176 long GetNativeImeAdapter(JNIEnv* env, | |
177 const base::android::JavaParamRef<jobject>& obj); | |
178 void SetFocus(JNIEnv* env, | 176 void SetFocus(JNIEnv* env, |
179 const base::android::JavaParamRef<jobject>& obj, | 177 const base::android::JavaParamRef<jobject>& obj, |
180 jboolean focused); | 178 jboolean focused); |
181 | 179 |
182 void SetDIPScale(JNIEnv* env, | 180 void SetDIPScale(JNIEnv* env, |
183 const base::android::JavaParamRef<jobject>& obj, | 181 const base::android::JavaParamRef<jobject>& obj, |
184 jfloat dipScale); | 182 jfloat dipScale); |
185 | 183 |
186 jint GetBackgroundColor(JNIEnv* env, jobject obj); | 184 jint GetBackgroundColor(JNIEnv* env, jobject obj); |
187 void SetAllowJavascriptInterfacesInspection( | 185 void SetAllowJavascriptInterfacesInspection( |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 258 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
261 float page_scale_factor, | 259 float page_scale_factor, |
262 const gfx::Vector2dF& page_scale_factor_limits, | 260 const gfx::Vector2dF& page_scale_factor_limits, |
263 const gfx::SizeF& content_size, | 261 const gfx::SizeF& content_size, |
264 const gfx::SizeF& viewport_size, | 262 const gfx::SizeF& viewport_size, |
265 const float top_controls_height, | 263 const float top_controls_height, |
266 const float top_controls_shown_ratio, | 264 const float top_controls_shown_ratio, |
267 bool is_mobile_optimized_hint, | 265 bool is_mobile_optimized_hint, |
268 const gfx::SelectionBound& selection_start); | 266 const gfx::SelectionBound& selection_start); |
269 | 267 |
270 void ForceUpdateImeAdapter(long native_ime_adapter); | 268 void UpdateImeAdapter(int text_input_type, |
271 void UpdateImeAdapter(long native_ime_adapter, | |
272 int text_input_type, | |
273 int text_input_flags, | 269 int text_input_flags, |
274 int text_input_mode, | 270 int text_input_mode, |
275 const std::string& text, | 271 const std::string& text, |
276 int selection_start, | 272 int selection_start, |
277 int selection_end, | 273 int selection_end, |
278 int composition_start, | 274 int composition_start, |
279 int composition_end, | 275 int composition_end, |
280 bool show_ime_if_needed, | 276 bool show_ime_if_needed, |
281 bool reply_to_request); | 277 bool reply_to_request); |
282 | 278 |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 400 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
405 | 401 |
406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 402 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
407 }; | 403 }; |
408 | 404 |
409 bool RegisterContentViewCore(JNIEnv* env); | 405 bool RegisterContentViewCore(JNIEnv* env); |
410 | 406 |
411 } // namespace content | 407 } // namespace content |
412 | 408 |
413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 409 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |