| 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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Returns True if the given media should be blocked to load. | 313 // Returns True if the given media should be blocked to load. |
| 314 bool ShouldBlockMediaRequest(const GURL& url); | 314 bool ShouldBlockMediaRequest(const GURL& url); |
| 315 | 315 |
| 316 void DidStopFlinging(); | 316 void DidStopFlinging(); |
| 317 | 317 |
| 318 // Returns the viewport size after accounting for the viewport offset. | 318 // Returns the viewport size after accounting for the viewport offset. |
| 319 gfx::Size GetViewSize() const; | 319 gfx::Size GetViewSize() const; |
| 320 | 320 |
| 321 void SetAccessibilityEnabledInternal(bool enabled); | 321 void SetAccessibilityEnabledInternal(bool enabled); |
| 322 | 322 |
| 323 void ShowSelectionHandlesAutomatically() const; |
| 324 |
| 323 // -------------------------------------------------------------------------- | 325 // -------------------------------------------------------------------------- |
| 324 // Methods called from native code | 326 // Methods called from native code |
| 325 // -------------------------------------------------------------------------- | 327 // -------------------------------------------------------------------------- |
| 326 | 328 |
| 327 gfx::Size GetPhysicalBackingSize() const; | 329 gfx::Size GetPhysicalBackingSize() const; |
| 328 gfx::Size GetViewportSizeDip() const; | 330 gfx::Size GetViewportSizeDip() const; |
| 329 gfx::Size GetViewportSizeOffsetDip() const; | 331 gfx::Size GetViewportSizeOffsetDip() const; |
| 330 float GetOverdrawBottomHeightDip() const; | 332 float GetOverdrawBottomHeightDip() const; |
| 331 | 333 |
| 332 void AttachLayer(scoped_refptr<cc::Layer> layer); | 334 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 java_bridge_dispatcher_host_manager_; | 404 java_bridge_dispatcher_host_manager_; |
| 403 | 405 |
| 404 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 406 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 405 }; | 407 }; |
| 406 | 408 |
| 407 bool RegisterContentViewCore(JNIEnv* env); | 409 bool RegisterContentViewCore(JNIEnv* env); |
| 408 | 410 |
| 409 } // namespace content | 411 } // namespace content |
| 410 | 412 |
| 411 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 413 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |