| 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 <memory> | 10 #include <memory> |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 | 285 |
| 286 void DidStopFlinging(); | 286 void DidStopFlinging(); |
| 287 | 287 |
| 288 // Returns the context with which the ContentViewCore was created, typically | 288 // Returns the context with which the ContentViewCore was created, typically |
| 289 // the Activity context. | 289 // the Activity context. |
| 290 base::android::ScopedJavaLocalRef<jobject> GetContext() const; | 290 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
| 291 | 291 |
| 292 // Returns the viewport size after accounting for the viewport offset. | 292 // Returns the viewport size after accounting for the viewport offset. |
| 293 gfx::Size GetViewSize() const; | 293 gfx::Size GetViewSize() const; |
| 294 | 294 |
| 295 gfx::Size GetViewSizeWithOSKHidden() const; | |
| 296 | |
| 297 void SetAccessibilityEnabledInternal(bool enabled); | 295 void SetAccessibilityEnabledInternal(bool enabled); |
| 298 | 296 |
| 299 bool IsFullscreenRequiredForOrientationLock() const; | 297 bool IsFullscreenRequiredForOrientationLock() const; |
| 300 | 298 |
| 301 // -------------------------------------------------------------------------- | 299 // -------------------------------------------------------------------------- |
| 302 // Methods called from native code | 300 // Methods called from native code |
| 303 // -------------------------------------------------------------------------- | 301 // -------------------------------------------------------------------------- |
| 304 | 302 |
| 305 gfx::Size GetPhysicalBackingSize() const; | 303 gfx::Size GetPhysicalBackingSize() const; |
| 306 gfx::Size GetViewportSizeDip() const; | 304 gfx::Size GetViewportSizeDip() const; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 385 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
| 388 | 386 |
| 389 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 387 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 390 }; | 388 }; |
| 391 | 389 |
| 392 bool RegisterContentViewCore(JNIEnv* env); | 390 bool RegisterContentViewCore(JNIEnv* env); |
| 393 | 391 |
| 394 } // namespace content | 392 } // namespace content |
| 395 | 393 |
| 396 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 394 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |