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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 | 364 |
365 void DidStopFlinging(); | 365 void DidStopFlinging(); |
366 | 366 |
367 // Returns the context with which the ContentViewCore was created, typically | 367 // Returns the context with which the ContentViewCore was created, typically |
368 // the Activity context. | 368 // the Activity context. |
369 base::android::ScopedJavaLocalRef<jobject> GetContext() const; | 369 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
370 | 370 |
371 // Returns the viewport size after accounting for the viewport offset. | 371 // Returns the viewport size after accounting for the viewport offset. |
372 gfx::Size GetViewSize() const; | 372 gfx::Size GetViewSize() const; |
373 | 373 |
| 374 gfx::Size GetViewSizeWithOSKHidden() const; |
| 375 |
374 void SetAccessibilityEnabledInternal(bool enabled); | 376 void SetAccessibilityEnabledInternal(bool enabled); |
375 | 377 |
376 bool IsFullscreenRequiredForOrientationLock() const; | 378 bool IsFullscreenRequiredForOrientationLock() const; |
377 | 379 |
378 // -------------------------------------------------------------------------- | 380 // -------------------------------------------------------------------------- |
379 // Methods called from native code | 381 // Methods called from native code |
380 // -------------------------------------------------------------------------- | 382 // -------------------------------------------------------------------------- |
381 | 383 |
382 gfx::Size GetPhysicalBackingSize() const; | 384 gfx::Size GetPhysicalBackingSize() const; |
383 gfx::Size GetViewportSizeDip() const; | 385 gfx::Size GetViewportSizeDip() const; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
475 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 477 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
476 | 478 |
477 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 479 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
478 }; | 480 }; |
479 | 481 |
480 bool RegisterContentViewCore(JNIEnv* env); | 482 bool RegisterContentViewCore(JNIEnv* env); |
481 | 483 |
482 } // namespace content | 484 } // namespace content |
483 | 485 |
484 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 486 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |