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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/android/jni_android.h" | 10 #include "base/android/jni_android.h" |
11 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/i18n/rtl.h" | 13 #include "base/i18n/rtl.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/process/process.h" | 15 #include "base/process/process.h" |
16 #include "content/browser/android/overscroll_refresh.h" | 16 #include "content/browser/android/overscroll_refresh.h" |
17 #include "content/browser/renderer_host/render_widget_host_view_android.h" | 17 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
18 #include "content/browser/web_contents/web_contents_impl.h" | 18 #include "content/browser/web_contents/web_contents_impl.h" |
19 #include "content/public/browser/android/content_view_core.h" | 19 #include "content/public/browser/android/content_view_core.h" |
20 #include "content/public/browser/web_contents_observer.h" | 20 #include "content/public/browser/web_contents_observer.h" |
21 #include "third_party/WebKit/public/web/WebInputEvent.h" | 21 #include "third_party/WebKit/public/web/WebInputEvent.h" |
22 #include "ui/gfx/geometry/rect.h" | 22 #include "ui/gfx/geometry/rect.h" |
23 #include "ui/gfx/geometry/rect_f.h" | 23 #include "ui/gfx/geometry/rect_f.h" |
24 #include "url/gurl.h" | 24 #include "url/gurl.h" |
25 | 25 |
| 26 namespace cc { |
| 27 struct ViewportSelectionBound; |
| 28 } |
| 29 |
26 namespace ui { | 30 namespace ui { |
27 class ViewAndroid; | 31 class ViewAndroid; |
28 class WindowAndroid; | 32 class WindowAndroid; |
29 } | 33 } |
30 | 34 |
31 namespace content { | 35 namespace content { |
32 | 36 |
33 class GinJavaBridgeDispatcherHost; | 37 class GinJavaBridgeDispatcherHost; |
34 class RenderFrameHost; | 38 class RenderFrameHost; |
35 class RenderWidgetHostViewAndroid; | 39 class RenderWidgetHostViewAndroid; |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void HideSelectPopupMenu(); | 220 void HideSelectPopupMenu(); |
217 | 221 |
218 // All sizes and offsets are in CSS pixels as cached by the renderer. | 222 // All sizes and offsets are in CSS pixels as cached by the renderer. |
219 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 223 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
220 float page_scale_factor, | 224 float page_scale_factor, |
221 const gfx::Vector2dF& page_scale_factor_limits, | 225 const gfx::Vector2dF& page_scale_factor_limits, |
222 const gfx::SizeF& content_size, | 226 const gfx::SizeF& content_size, |
223 const gfx::SizeF& viewport_size, | 227 const gfx::SizeF& viewport_size, |
224 const gfx::Vector2dF& controls_offset, | 228 const gfx::Vector2dF& controls_offset, |
225 const gfx::Vector2dF& content_offset, | 229 const gfx::Vector2dF& content_offset, |
226 bool is_mobile_optimized_hint); | 230 bool is_mobile_optimized_hint, |
| 231 const cc::ViewportSelectionBound& selection_start); |
227 | 232 |
228 void UpdateImeAdapter(long native_ime_adapter, | 233 void UpdateImeAdapter(long native_ime_adapter, |
229 int text_input_type, | 234 int text_input_type, |
230 int text_input_flags, | 235 int text_input_flags, |
231 const std::string& text, | 236 const std::string& text, |
232 int selection_start, | 237 int selection_start, |
233 int selection_end, | 238 int selection_end, |
234 int composition_start, | 239 int composition_start, |
235 int composition_end, | 240 int composition_end, |
236 bool show_ime_if_needed, | 241 bool show_ime_if_needed, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 372 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
368 | 373 |
369 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 374 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
370 }; | 375 }; |
371 | 376 |
372 bool RegisterContentViewCore(JNIEnv* env); | 377 bool RegisterContentViewCore(JNIEnv* env); |
373 | 378 |
374 } // namespace content | 379 } // namespace content |
375 | 380 |
376 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 381 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |