Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

Side by Side Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 1276703003: Handle UI operations through gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed previous comments Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 return mHasSelection ? mFocusedNodeEditable : false; 1167 return mHasSelection ? mFocusedNodeEditable : false;
1168 } 1168 }
1169 1169
1170 /** 1170 /**
1171 * @return Whether the current focused node is editable. 1171 * @return Whether the current focused node is editable.
1172 */ 1172 */
1173 public boolean isFocusedNodeEditable() { 1173 public boolean isFocusedNodeEditable() {
1174 return mFocusedNodeEditable; 1174 return mFocusedNodeEditable;
1175 } 1175 }
1176 1176
1177 /**
1178 * @return Whether the HTML5 gamepad API is active.
1179 */
1180 public boolean isGamepadAPIActive() {
1181 return GamepadList.isGamepadAccessed();
1182 }
1183
1177 // End FrameLayout overrides. 1184 // End FrameLayout overrides.
1178 1185
1179 /** 1186 /**
1180 * @see View#onTouchEvent(MotionEvent) 1187 * @see View#onTouchEvent(MotionEvent)
1181 */ 1188 */
1182 public boolean onTouchEvent(MotionEvent event) { 1189 public boolean onTouchEvent(MotionEvent event) {
1183 final boolean isTouchHandleEvent = false; 1190 final boolean isTouchHandleEvent = false;
1184 return onTouchEventImpl(event, isTouchHandleEvent); 1191 return onTouchEventImpl(event, isTouchHandleEvent);
1185 } 1192 }
1186 1193
(...skipping 2126 matching lines...) Expand 10 before | Expand all | Expand 10 after
3313 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l, 3320 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l,
3314 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily, 3321 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily,
3315 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor, 3322 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor,
3316 String textTrackTextShadow, String textTrackTextSize); 3323 String textTrackTextShadow, String textTrackTextSize);
3317 3324
3318 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l, 3325 private native void nativeExtractSmartClipData(long nativeContentViewCoreImp l,
3319 int x, int y, int w, int h); 3326 int x, int y, int w, int h);
3320 3327
3321 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 3328 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
3322 } 3329 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698