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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 | 250 |
251 void DidStopFlinging(); | 251 void DidStopFlinging(); |
252 | 252 |
253 // Returns the viewport size after accounting for the viewport offset. | 253 // Returns the viewport size after accounting for the viewport offset. |
254 gfx::Size GetViewSize() const; | 254 gfx::Size GetViewSize() const; |
255 | 255 |
256 void SetAccessibilityEnabledInternal(bool enabled); | 256 void SetAccessibilityEnabledInternal(bool enabled); |
257 | 257 |
258 bool IsFullscreenRequiredForOrientationLock() const; | 258 bool IsFullscreenRequiredForOrientationLock() const; |
259 | 259 |
260 // Called once the page has entered / exited fullscreen. | |
261 void OnDidEnterFullscreen(); | |
262 void OnDidExitFullscreen(); | |
263 | |
264 // -------------------------------------------------------------------------- | 260 // -------------------------------------------------------------------------- |
265 // Methods called from native code | 261 // Methods called from native code |
266 // -------------------------------------------------------------------------- | 262 // -------------------------------------------------------------------------- |
267 | 263 |
268 gfx::Size GetPhysicalBackingSize() const; | 264 gfx::Size GetPhysicalBackingSize() const; |
269 gfx::Size GetViewportSizeDip() const; | 265 gfx::Size GetViewportSizeDip() const; |
270 float GetTopControlsLayoutHeightDip() const; | 266 float GetTopControlsLayoutHeightDip() const; |
271 | 267 |
272 void AttachLayer(scoped_refptr<cc::Layer> layer); | 268 void AttachLayer(scoped_refptr<cc::Layer> layer); |
273 void RemoveLayer(scoped_refptr<cc::Layer> layer); | 269 void RemoveLayer(scoped_refptr<cc::Layer> layer); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 java_bridge_dispatcher_host_; | 338 java_bridge_dispatcher_host_; |
343 | 339 |
344 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 340 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
345 }; | 341 }; |
346 | 342 |
347 bool RegisterContentViewCore(JNIEnv* env); | 343 bool RegisterContentViewCore(JNIEnv* env); |
348 | 344 |
349 } // namespace content | 345 } // namespace content |
350 | 346 |
351 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 347 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
OLD | NEW |