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/renderer_host/render_widget_host_view_android.h" | 16 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
17 #include "content/browser/web_contents/web_contents_impl.h" | 17 #include "content/browser/web_contents/web_contents_impl.h" |
18 #include "content/public/browser/android/content_view_core.h" | 18 #include "content/public/browser/android/content_view_core.h" |
19 #include "content/public/browser/web_contents_observer.h" | 19 #include "content/public/browser/web_contents_observer.h" |
20 #include "third_party/WebKit/public/web/WebInputEvent.h" | 20 #include "third_party/WebKit/public/web/WebInputEvent.h" |
21 #include "ui/gfx/geometry/rect.h" | 21 #include "ui/gfx/geometry/rect.h" |
22 #include "ui/gfx/geometry/rect_f.h" | 22 #include "ui/gfx/geometry/rect_f.h" |
23 #include "url/gurl.h" | 23 #include "url/gurl.h" |
24 | 24 |
| 25 namespace cc { |
| 26 struct ViewportSelectionBound; |
| 27 } |
| 28 |
25 namespace ui { | 29 namespace ui { |
26 class ViewAndroid; | 30 class ViewAndroid; |
27 class WindowAndroid; | 31 class WindowAndroid; |
28 } | 32 } |
29 | 33 |
30 namespace content { | 34 namespace content { |
31 | 35 |
32 class GinJavaBridgeDispatcherHost; | 36 class GinJavaBridgeDispatcherHost; |
33 class RenderFrameHost; | 37 class RenderFrameHost; |
34 class RenderWidgetHostViewAndroid; | 38 class RenderWidgetHostViewAndroid; |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 // Hides a visible popup menu. | 207 // Hides a visible popup menu. |
204 void HideSelectPopupMenu(); | 208 void HideSelectPopupMenu(); |
205 | 209 |
206 // All sizes and offsets are in CSS pixels as cached by the renderer. | 210 // All sizes and offsets are in CSS pixels as cached by the renderer. |
207 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 211 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
208 float page_scale_factor, | 212 float page_scale_factor, |
209 const gfx::Vector2dF& page_scale_factor_limits, | 213 const gfx::Vector2dF& page_scale_factor_limits, |
210 const gfx::SizeF& content_size, | 214 const gfx::SizeF& content_size, |
211 const gfx::SizeF& viewport_size, | 215 const gfx::SizeF& viewport_size, |
212 const gfx::Vector2dF& controls_offset, | 216 const gfx::Vector2dF& controls_offset, |
213 const gfx::Vector2dF& content_offset); | 217 const gfx::Vector2dF& content_offset, |
| 218 const cc::ViewportSelectionBound& selection_start); |
214 | 219 |
215 void UpdateImeAdapter(long native_ime_adapter, | 220 void UpdateImeAdapter(long native_ime_adapter, |
216 int text_input_type, | 221 int text_input_type, |
217 int text_input_flags, | 222 int text_input_flags, |
218 const std::string& text, | 223 const std::string& text, |
219 int selection_start, | 224 int selection_start, |
220 int selection_end, | 225 int selection_end, |
221 int composition_start, | 226 int composition_start, |
222 int composition_end, | 227 int composition_end, |
223 bool show_ime_if_needed, | 228 bool show_ime_if_needed, |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 352 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
348 | 353 |
349 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 354 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
350 }; | 355 }; |
351 | 356 |
352 bool RegisterContentViewCore(JNIEnv* env); | 357 bool RegisterContentViewCore(JNIEnv* env); |
353 | 358 |
354 } // namespace content | 359 } // namespace content |
355 | 360 |
356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 361 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |