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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
309 void HideSelectPopupMenu(); | 313 void HideSelectPopupMenu(); |
310 | 314 |
311 // All sizes and offsets are in CSS pixels as cached by the renderer. | 315 // All sizes and offsets are in CSS pixels as cached by the renderer. |
312 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 316 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
313 float page_scale_factor, | 317 float page_scale_factor, |
314 const gfx::Vector2dF& page_scale_factor_limits, | 318 const gfx::Vector2dF& page_scale_factor_limits, |
315 const gfx::SizeF& content_size, | 319 const gfx::SizeF& content_size, |
316 const gfx::SizeF& viewport_size, | 320 const gfx::SizeF& viewport_size, |
317 const gfx::Vector2dF& controls_offset, | 321 const gfx::Vector2dF& controls_offset, |
318 const gfx::Vector2dF& content_offset, | 322 const gfx::Vector2dF& content_offset, |
319 bool is_mobile_optimized_hint); | 323 bool is_mobile_optimized_hint, |
| 324 const cc::ViewportSelectionBound& selection_start); |
320 | 325 |
321 void ForceUpdateImeAdapter(long native_ime_adapter); | 326 void ForceUpdateImeAdapter(long native_ime_adapter); |
322 void UpdateImeAdapter(long native_ime_adapter, | 327 void UpdateImeAdapter(long native_ime_adapter, |
323 int text_input_type, | 328 int text_input_type, |
324 int text_input_flags, | 329 int text_input_flags, |
325 const std::string& text, | 330 const std::string& text, |
326 int selection_start, | 331 int selection_start, |
327 int selection_end, | 332 int selection_end, |
328 int composition_start, | 333 int composition_start, |
329 int composition_end, | 334 int composition_end, |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 475 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
471 | 476 |
472 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 477 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
473 }; | 478 }; |
474 | 479 |
475 bool RegisterContentViewCore(JNIEnv* env); | 480 bool RegisterContentViewCore(JNIEnv* env); |
476 | 481 |
477 } // namespace content | 482 } // namespace content |
478 | 483 |
479 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 484 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |