| 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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 | 355 |
| 356 void DidStopFlinging(); | 356 void DidStopFlinging(); |
| 357 | 357 |
| 358 // Returns the context with which the ContentViewCore was created, typically | 358 // Returns the context with which the ContentViewCore was created, typically |
| 359 // the Activity context. | 359 // the Activity context. |
| 360 base::android::ScopedJavaLocalRef<jobject> GetContext() const; | 360 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
| 361 | 361 |
| 362 // Returns the viewport size after accounting for the viewport offset. | 362 // Returns the viewport size after accounting for the viewport offset. |
| 363 gfx::Size GetViewSize() const; | 363 gfx::Size GetViewSize() const; |
| 364 | 364 |
| 365 gfx::Size GetViewSizeWithOSKHidden() const; |
| 366 |
| 365 void SetAccessibilityEnabledInternal(bool enabled); | 367 void SetAccessibilityEnabledInternal(bool enabled); |
| 366 | 368 |
| 367 bool IsFullscreenRequiredForOrientationLock() const; | 369 bool IsFullscreenRequiredForOrientationLock() const; |
| 368 | 370 |
| 369 // -------------------------------------------------------------------------- | 371 // -------------------------------------------------------------------------- |
| 370 // Methods called from native code | 372 // Methods called from native code |
| 371 // -------------------------------------------------------------------------- | 373 // -------------------------------------------------------------------------- |
| 372 | 374 |
| 373 gfx::Size GetPhysicalBackingSize() const; | 375 gfx::Size GetPhysicalBackingSize() const; |
| 374 gfx::Size GetViewportSizeDip() const; | 376 gfx::Size GetViewportSizeDip() const; |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 468 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 467 | 469 |
| 468 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 470 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 469 }; | 471 }; |
| 470 | 472 |
| 471 bool RegisterContentViewCore(JNIEnv* env); | 473 bool RegisterContentViewCore(JNIEnv* env); |
| 472 | 474 |
| 473 } // namespace content | 475 } // namespace content |
| 474 | 476 |
| 475 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 477 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |