| 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/rect.h" | 21 #include "ui/gfx/rect.h" |
| 22 #include "ui/gfx/rect_f.h" | 22 #include "ui/gfx/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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 // Hides a visible popup menu. | 204 // Hides a visible popup menu. |
| 201 void HideSelectPopupMenu(); | 205 void HideSelectPopupMenu(); |
| 202 | 206 |
| 203 // All sizes and offsets are in CSS pixels as cached by the renderer. | 207 // All sizes and offsets are in CSS pixels as cached by the renderer. |
| 204 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 208 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
| 205 float page_scale_factor, | 209 float page_scale_factor, |
| 206 const gfx::Vector2dF& page_scale_factor_limits, | 210 const gfx::Vector2dF& page_scale_factor_limits, |
| 207 const gfx::SizeF& content_size, | 211 const gfx::SizeF& content_size, |
| 208 const gfx::SizeF& viewport_size, | 212 const gfx::SizeF& viewport_size, |
| 209 const gfx::Vector2dF& controls_offset, | 213 const gfx::Vector2dF& controls_offset, |
| 210 const gfx::Vector2dF& content_offset); | 214 const gfx::Vector2dF& content_offset, |
| 215 const cc::ViewportSelectionBound& selection_start); |
| 211 | 216 |
| 212 void UpdateImeAdapter(long native_ime_adapter, | 217 void UpdateImeAdapter(long native_ime_adapter, |
| 213 int text_input_type, | 218 int text_input_type, |
| 214 int text_input_flags, | 219 int text_input_flags, |
| 215 const std::string& text, | 220 const std::string& text, |
| 216 int selection_start, | 221 int selection_start, |
| 217 int selection_end, | 222 int selection_end, |
| 218 int composition_start, | 223 int composition_start, |
| 219 int composition_end, | 224 int composition_end, |
| 220 bool show_ime_if_needed, | 225 bool show_ime_if_needed, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 java_bridge_dispatcher_host_; | 347 java_bridge_dispatcher_host_; |
| 343 | 348 |
| 344 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 349 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 345 }; | 350 }; |
| 346 | 351 |
| 347 bool RegisterContentViewCore(JNIEnv* env); | 352 bool RegisterContentViewCore(JNIEnv* env); |
| 348 | 353 |
| 349 } // namespace content | 354 } // namespace content |
| 350 | 355 |
| 351 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 356 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |