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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 256 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
257 float page_scale_factor, | 257 float page_scale_factor, |
258 const gfx::Vector2dF& page_scale_factor_limits, | 258 const gfx::Vector2dF& page_scale_factor_limits, |
259 const gfx::SizeF& content_size, | 259 const gfx::SizeF& content_size, |
260 const gfx::SizeF& viewport_size, | 260 const gfx::SizeF& viewport_size, |
261 const float top_controls_height, | 261 const float top_controls_height, |
262 const float top_controls_shown_ratio, | 262 const float top_controls_shown_ratio, |
263 bool is_mobile_optimized_hint, | 263 bool is_mobile_optimized_hint, |
264 const gfx::SelectionBound& selection_start); | 264 const gfx::SelectionBound& selection_start); |
265 | 265 |
266 void UpdateImeAdapter(int text_input_type, | |
267 int text_input_flags, | |
268 int text_input_mode, | |
269 const std::string& text, | |
270 int selection_start, | |
271 int selection_end, | |
272 int composition_start, | |
273 int composition_end, | |
274 bool show_ime_if_needed, | |
275 bool reply_to_request); | |
276 | |
277 bool HasFocus(); | 266 bool HasFocus(); |
278 void RequestDisallowInterceptTouchEvent(); | 267 void RequestDisallowInterceptTouchEvent(); |
279 void OnGestureEventAck(const blink::WebGestureEvent& event, | 268 void OnGestureEventAck(const blink::WebGestureEvent& event, |
280 InputEventAckState ack_result); | 269 InputEventAckState ack_result); |
281 bool FilterInputEvent(const blink::WebInputEvent& event); | 270 bool FilterInputEvent(const blink::WebInputEvent& event); |
282 void OnSelectionChanged(const std::string& text); | 271 void OnSelectionChanged(const std::string& text); |
283 void OnSelectionEvent(ui::SelectionEventType event, | 272 void OnSelectionEvent(ui::SelectionEventType event, |
284 const gfx::PointF& selection_anchor, | 273 const gfx::PointF& selection_anchor, |
285 const gfx::RectF& selection_rect); | 274 const gfx::RectF& selection_rect); |
286 | 275 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
398 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 387 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
399 | 388 |
400 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 389 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
401 }; | 390 }; |
402 | 391 |
403 bool RegisterContentViewCore(JNIEnv* env); | 392 bool RegisterContentViewCore(JNIEnv* env); |
404 | 393 |
405 } // namespace content | 394 } // namespace content |
406 | 395 |
407 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 396 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |