| 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.annotation.TargetApi; | 8 import android.annotation.TargetApi; |
| 9 import android.app.Activity; | 9 import android.app.Activity; |
| 10 import android.app.SearchManager; | 10 import android.app.SearchManager; |
| (...skipping 1158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 return mHasSelection ? mFocusedNodeEditable : false; | 1169 return mHasSelection ? mFocusedNodeEditable : false; |
| 1170 } | 1170 } |
| 1171 | 1171 |
| 1172 /** | 1172 /** |
| 1173 * @return Whether the current focused node is editable. | 1173 * @return Whether the current focused node is editable. |
| 1174 */ | 1174 */ |
| 1175 public boolean isFocusedNodeEditable() { | 1175 public boolean isFocusedNodeEditable() { |
| 1176 return mFocusedNodeEditable; | 1176 return mFocusedNodeEditable; |
| 1177 } | 1177 } |
| 1178 | 1178 |
| 1179 /** |
| 1180 * @return Whether the HTML5 gamepad API is active. |
| 1181 */ |
| 1182 public boolean isGamepadAPIActive() { |
| 1183 return GamepadList.isGamepadAPIActive(); |
| 1184 } |
| 1185 |
| 1179 // End FrameLayout overrides. | 1186 // End FrameLayout overrides. |
| 1180 | 1187 |
| 1181 /** | 1188 /** |
| 1182 * @see View#onTouchEvent(MotionEvent) | 1189 * @see View#onTouchEvent(MotionEvent) |
| 1183 */ | 1190 */ |
| 1184 public boolean onTouchEvent(MotionEvent event) { | 1191 public boolean onTouchEvent(MotionEvent event) { |
| 1185 final boolean isTouchHandleEvent = false; | 1192 final boolean isTouchHandleEvent = false; |
| 1186 return onTouchEventImpl(event, isTouchHandleEvent); | 1193 return onTouchEventImpl(event, isTouchHandleEvent); |
| 1187 } | 1194 } |
| 1188 | 1195 |
| (...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3320 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 3327 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
| 3321 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 3328 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
| 3322 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 3329 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
| 3323 String textTrackTextShadow, String textTrackTextSize); | 3330 String textTrackTextShadow, String textTrackTextSize); |
| 3324 | 3331 |
| 3325 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, | 3332 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp
l, |
| 3326 int x, int y, int w, int h); | 3333 int x, int y, int w, int h); |
| 3327 | 3334 |
| 3328 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 3335 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
| 3329 } | 3336 } |
| OLD | NEW |