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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // the Activity context. | 256 // the Activity context. |
257 base::android::ScopedJavaLocalRef<jobject> GetContext() const; | 257 base::android::ScopedJavaLocalRef<jobject> GetContext() const; |
258 | 258 |
259 // Returns the viewport size after accounting for the viewport offset. | 259 // Returns the viewport size after accounting for the viewport offset. |
260 gfx::Size GetViewSize() const; | 260 gfx::Size GetViewSize() const; |
261 | 261 |
262 void SetAccessibilityEnabledInternal(bool enabled); | 262 void SetAccessibilityEnabledInternal(bool enabled); |
263 | 263 |
264 bool IsFullscreenRequiredForOrientationLock() const; | 264 bool IsFullscreenRequiredForOrientationLock() const; |
265 | 265 |
| 266 void IncrementKeepScreenOnCount(); |
| 267 void DecrementKeepScreenOnCount(); |
| 268 |
266 // -------------------------------------------------------------------------- | 269 // -------------------------------------------------------------------------- |
267 // Methods called from native code | 270 // Methods called from native code |
268 // -------------------------------------------------------------------------- | 271 // -------------------------------------------------------------------------- |
269 | 272 |
270 gfx::Size GetPhysicalBackingSize() const; | 273 gfx::Size GetPhysicalBackingSize() const; |
271 gfx::Size GetViewportSizeDip() const; | 274 gfx::Size GetViewportSizeDip() const; |
272 bool DoTopControlsShrinkBlinkSize() const; | 275 bool DoTopControlsShrinkBlinkSize() const; |
273 float GetTopControlsHeightDip() const; | 276 float GetTopControlsHeightDip() const; |
274 | 277 |
275 void AttachLayer(scoped_refptr<cc::Layer> layer); | 278 void AttachLayer(scoped_refptr<cc::Layer> layer); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; | 351 scoped_refptr<GinJavaBridgeDispatcherHost> java_bridge_dispatcher_host_; |
349 | 352 |
350 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 353 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
351 }; | 354 }; |
352 | 355 |
353 bool RegisterContentViewCore(JNIEnv* env); | 356 bool RegisterContentViewCore(JNIEnv* env); |
354 | 357 |
355 } // namespace content | 358 } // namespace content |
356 | 359 |
357 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 360 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |