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 <vector> | 10 #include <vector> |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "content/browser/web_contents/web_contents_impl.h" | 21 #include "content/browser/web_contents/web_contents_impl.h" |
22 #include "content/public/browser/android/content_view_core.h" | 22 #include "content/public/browser/android/content_view_core.h" |
23 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
24 #include "third_party/WebKit/public/web/WebInputEvent.h" | 24 #include "third_party/WebKit/public/web/WebInputEvent.h" |
25 #include "ui/android/overscroll_refresh.h" | 25 #include "ui/android/overscroll_refresh.h" |
26 #include "ui/android/view_android.h" | 26 #include "ui/android/view_android.h" |
27 #include "ui/gfx/geometry/rect.h" | 27 #include "ui/gfx/geometry/rect.h" |
28 #include "ui/gfx/geometry/rect_f.h" | 28 #include "ui/gfx/geometry/rect_f.h" |
29 #include "url/gurl.h" | 29 #include "url/gurl.h" |
30 | 30 |
| 31 namespace cc { |
| 32 struct ViewportSelectionBound; |
| 33 } |
| 34 |
31 namespace ui { | 35 namespace ui { |
32 class WindowAndroid; | 36 class WindowAndroid; |
33 } | 37 } |
34 | 38 |
35 namespace content { | 39 namespace content { |
36 | 40 |
37 class GinJavaBridgeDispatcherHost; | 41 class GinJavaBridgeDispatcherHost; |
38 class RenderFrameHost; | 42 class RenderFrameHost; |
39 class RenderWidgetHostViewAndroid; | 43 class RenderWidgetHostViewAndroid; |
40 struct MenuItem; | 44 struct MenuItem; |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 void HideSelectPopupMenu(); | 309 void HideSelectPopupMenu(); |
306 | 310 |
307 // All sizes and offsets are in CSS pixels as cached by the renderer. | 311 // All sizes and offsets are in CSS pixels as cached by the renderer. |
308 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 312 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
309 float page_scale_factor, | 313 float page_scale_factor, |
310 const gfx::Vector2dF& page_scale_factor_limits, | 314 const gfx::Vector2dF& page_scale_factor_limits, |
311 const gfx::SizeF& content_size, | 315 const gfx::SizeF& content_size, |
312 const gfx::SizeF& viewport_size, | 316 const gfx::SizeF& viewport_size, |
313 const gfx::Vector2dF& controls_offset, | 317 const gfx::Vector2dF& controls_offset, |
314 const gfx::Vector2dF& content_offset, | 318 const gfx::Vector2dF& content_offset, |
315 bool is_mobile_optimized_hint); | 319 bool is_mobile_optimized_hint, |
| 320 const cc::ViewportSelectionBound& selection_start); |
316 | 321 |
317 void ForceUpdateImeAdapter(long native_ime_adapter); | 322 void ForceUpdateImeAdapter(long native_ime_adapter); |
318 void UpdateImeAdapter(long native_ime_adapter, | 323 void UpdateImeAdapter(long native_ime_adapter, |
319 int text_input_type, | 324 int text_input_type, |
320 int text_input_flags, | 325 int text_input_flags, |
321 const std::string& text, | 326 const std::string& text, |
322 int selection_start, | 327 int selection_start, |
323 int selection_end, | 328 int selection_end, |
324 int composition_start, | 329 int composition_start, |
325 int composition_end, | 330 int composition_end, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 471 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
467 | 472 |
468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 473 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
469 }; | 474 }; |
470 | 475 |
471 bool RegisterContentViewCore(JNIEnv* env); | 476 bool RegisterContentViewCore(JNIEnv* env); |
472 | 477 |
473 } // namespace content | 478 } // namespace content |
474 | 479 |
475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 480 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |