| 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 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // Returns True if the given media should be blocked to load. | 290 // Returns True if the given media should be blocked to load. |
| 291 bool ShouldBlockMediaRequest(const GURL& url); | 291 bool ShouldBlockMediaRequest(const GURL& url); |
| 292 | 292 |
| 293 void DidStopFlinging(); | 293 void DidStopFlinging(); |
| 294 | 294 |
| 295 // Returns the viewport size after accounting for the viewport offset. | 295 // Returns the viewport size after accounting for the viewport offset. |
| 296 gfx::Size GetViewSize() const; | 296 gfx::Size GetViewSize() const; |
| 297 | 297 |
| 298 void SetAccessibilityEnabledInternal(bool enabled); | 298 void SetAccessibilityEnabledInternal(bool enabled); |
| 299 | 299 |
| 300 void ShowSelectionHandlesAutomatically() const; |
| 301 |
| 300 // -------------------------------------------------------------------------- | 302 // -------------------------------------------------------------------------- |
| 301 // Methods called from native code | 303 // Methods called from native code |
| 302 // -------------------------------------------------------------------------- | 304 // -------------------------------------------------------------------------- |
| 303 | 305 |
| 304 gfx::Size GetPhysicalBackingSize() const; | 306 gfx::Size GetPhysicalBackingSize() const; |
| 305 gfx::Size GetViewportSizeDip() const; | 307 gfx::Size GetViewportSizeDip() const; |
| 306 gfx::Size GetViewportSizeOffsetDip() const; | 308 gfx::Size GetViewportSizeOffsetDip() const; |
| 307 float GetOverdrawBottomHeightDip() const; | 309 float GetOverdrawBottomHeightDip() const; |
| 308 | 310 |
| 309 void AttachLayer(scoped_refptr<cc::Layer> layer); | 311 void AttachLayer(scoped_refptr<cc::Layer> layer); |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 bool accessibility_enabled_; | 384 bool accessibility_enabled_; |
| 383 | 385 |
| 384 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); | 386 DISALLOW_COPY_AND_ASSIGN(ContentViewCoreImpl); |
| 385 }; | 387 }; |
| 386 | 388 |
| 387 bool RegisterContentViewCore(JNIEnv* env); | 389 bool RegisterContentViewCore(JNIEnv* env); |
| 388 | 390 |
| 389 } // namespace content | 391 } // namespace content |
| 390 | 392 |
| 391 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ | 393 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_CORE_IMPL_H_ |
| OLD | NEW |