| 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 package org.chromium.content.browser; | 5 package org.chromium.content.browser; |
| 6 | 6 |
| 7 import android.annotation.SuppressLint; | 7 import android.annotation.SuppressLint; |
| 8 import android.app.Activity; | 8 import android.app.Activity; |
| 9 import android.app.SearchManager; | 9 import android.app.SearchManager; |
| 10 import android.content.ClipboardManager; | 10 import android.content.ClipboardManager; |
| (...skipping 2351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2362 | 2362 |
| 2363 /** | 2363 /** |
| 2364 * @see View#hasFocus() | 2364 * @see View#hasFocus() |
| 2365 */ | 2365 */ |
| 2366 @CalledByNative | 2366 @CalledByNative |
| 2367 public boolean hasFocus() { | 2367 public boolean hasFocus() { |
| 2368 return mContainerView.hasFocus(); | 2368 return mContainerView.hasFocus(); |
| 2369 } | 2369 } |
| 2370 | 2370 |
| 2371 /** | 2371 /** |
| 2372 * @see View#isFocusable() |
| 2373 */ |
| 2374 @CalledByNative |
| 2375 public boolean isFocusable() { |
| 2376 return mContainerView.isFocusable(); |
| 2377 } |
| 2378 |
| 2379 /** |
| 2372 * Checks whether the ContentViewCore can be zoomed in. | 2380 * Checks whether the ContentViewCore can be zoomed in. |
| 2373 * | 2381 * |
| 2374 * @return True if the ContentViewCore can be zoomed in. | 2382 * @return True if the ContentViewCore can be zoomed in. |
| 2375 */ | 2383 */ |
| 2376 // This method uses the term 'zoom' for legacy reasons, but relates | 2384 // This method uses the term 'zoom' for legacy reasons, but relates |
| 2377 // to what chrome calls the 'page scale factor'. | 2385 // to what chrome calls the 'page scale factor'. |
| 2378 public boolean canZoomIn() { | 2386 public boolean canZoomIn() { |
| 2379 final float zoomInExtent = mRenderCoordinates.getMaxPageScaleFactor() | 2387 final float zoomInExtent = mRenderCoordinates.getMaxPageScaleFactor() |
| 2380 - mRenderCoordinates.getPageScaleFactor(); | 2388 - mRenderCoordinates.getPageScaleFactor(); |
| 2381 return zoomInExtent > ZOOM_CONTROLS_EPSILON; | 2389 return zoomInExtent > ZOOM_CONTROLS_EPSILON; |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3028 private native void nativeWasResized(long nativeContentViewCoreImpl); | 3036 private native void nativeWasResized(long nativeContentViewCoreImpl); |
| 3029 | 3037 |
| 3030 private native void nativeSetAccessibilityEnabled( | 3038 private native void nativeSetAccessibilityEnabled( |
| 3031 long nativeContentViewCoreImpl, boolean enabled); | 3039 long nativeContentViewCoreImpl, boolean enabled); |
| 3032 | 3040 |
| 3033 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3041 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
| 3034 int x, int y, int w, int h); | 3042 int x, int y, int w, int h); |
| 3035 | 3043 |
| 3036 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3044 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
| 3037 } | 3045 } |
| OLD | NEW |