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