| 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" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 // Hides a visible popup menu. | 223 // Hides a visible popup menu. |
| 224 void HideSelectPopupMenu(); | 224 void HideSelectPopupMenu(); |
| 225 | 225 |
| 226 // All sizes and offsets are in CSS pixels as cached by the renderer. | 226 // All sizes and offsets are in CSS pixels as cached by the renderer. |
| 227 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, | 227 void UpdateFrameInfo(const gfx::Vector2dF& scroll_offset, |
| 228 float page_scale_factor, | 228 float page_scale_factor, |
| 229 const gfx::Vector2dF& page_scale_factor_limits, | 229 const gfx::Vector2dF& page_scale_factor_limits, |
| 230 const gfx::SizeF& content_size, | 230 const gfx::SizeF& content_size, |
| 231 const gfx::SizeF& viewport_size, | 231 const gfx::SizeF& viewport_size, |
| 232 const gfx::Vector2dF& controls_offset, | 232 const gfx::Vector2dF& controls_offset, |
| 233 const gfx::Vector2dF& content_offset, | 233 const gfx::Vector2dF& content_offset); |
| 234 float overdraw_bottom_height); | |
| 235 | 234 |
| 236 void UpdateImeAdapter(long native_ime_adapter, | 235 void UpdateImeAdapter(long native_ime_adapter, |
| 237 int text_input_type, | 236 int text_input_type, |
| 238 int text_input_flags, | 237 int text_input_flags, |
| 239 const std::string& text, | 238 const std::string& text, |
| 240 int selection_start, | 239 int selection_start, |
| 241 int selection_end, | 240 int selection_end, |
| 242 int composition_start, | 241 int composition_start, |
| 243 int composition_end, | 242 int composition_end, |
| 244 bool show_ime_if_needed, | 243 bool show_ime_if_needed, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 284 |
| 286 bool IsFullscreenRequiredForOrientationLock() const; | 285 bool IsFullscreenRequiredForOrientationLock() const; |
| 287 | 286 |
| 288 // -------------------------------------------------------------------------- | 287 // -------------------------------------------------------------------------- |
| 289 // Methods called from native code | 288 // Methods called from native code |
| 290 // -------------------------------------------------------------------------- | 289 // -------------------------------------------------------------------------- |
| 291 | 290 |
| 292 gfx::Size GetPhysicalBackingSize() const; | 291 gfx::Size GetPhysicalBackingSize() const; |
| 293 gfx::Size GetViewportSizeDip() const; | 292 gfx::Size GetViewportSizeDip() const; |
| 294 gfx::Size GetViewportSizeOffsetDip() const; | 293 gfx::Size GetViewportSizeOffsetDip() const; |
| 295 float GetOverdrawBottomHeightDip() const; | |
| 296 | 294 |
| 297 void AttachLayer(scoped_refptr<cc::Layer> layer); | 295 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| 298 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 296 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
| 299 | 297 |
| 300 void SelectBetweenCoordinates(const gfx::PointF& start, | 298 void SelectBetweenCoordinates(const gfx::PointF& start, |
| 301 const gfx::PointF& end); | 299 const gfx::PointF& end); |
| 302 | 300 |
| 303 private: | 301 private: |
| 304 class ContentViewUserData; | 302 class ContentViewUserData; |
| 305 | 303 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 java_bridge_dispatcher_host_; | 368 java_bridge_dispatcher_host_; |
| 371 | 369 |
| 372 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 370 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 373 }; | 371 }; |
| 374 | 372 |
| 375 bool RegisterContentViewCore(JNIEnv* env); | 373 bool RegisterContentViewCore(JNIEnv* env); |
| 376 | 374 |
| 377 } // namespace content | 375 } // namespace content |
| 378 | 376 |
| 379 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 377 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |