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