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