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.assist.AssistStructure.ViewNode; | 9 import android.app.assist.AssistStructure.ViewNode; |
10 import android.content.ClipData; | 10 import android.content.ClipData; |
(...skipping 1356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1367 } | 1367 } |
1368 } | 1368 } |
1369 if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore,
gainFocus); | 1369 if (mNativeContentViewCore != 0) nativeSetFocus(mNativeContentViewCore,
gainFocus); |
1370 } | 1370 } |
1371 | 1371 |
1372 /** | 1372 /** |
1373 * @see View#onKeyUp(int, KeyEvent) | 1373 * @see View#onKeyUp(int, KeyEvent) |
1374 */ | 1374 */ |
1375 public boolean onKeyUp(int keyCode, KeyEvent event) { | 1375 public boolean onKeyUp(int keyCode, KeyEvent event) { |
1376 if (mPopupZoomer.isShowing() && keyCode == KeyEvent.KEYCODE_BACK) { | 1376 if (mPopupZoomer.isShowing() && keyCode == KeyEvent.KEYCODE_BACK) { |
1377 mPopupZoomer.hide(true); | 1377 mPopupZoomer.backButtonPressed(); |
1378 return true; | 1378 return true; |
1379 } | 1379 } |
1380 return mContainerViewInternals.super_onKeyUp(keyCode, event); | 1380 return mContainerViewInternals.super_onKeyUp(keyCode, event); |
1381 } | 1381 } |
1382 | 1382 |
1383 /** | 1383 /** |
1384 * @see View#dispatchKeyEvent(KeyEvent) | 1384 * @see View#dispatchKeyEvent(KeyEvent) |
1385 */ | 1385 */ |
1386 public boolean dispatchKeyEvent(KeyEvent event) { | 1386 public boolean dispatchKeyEvent(KeyEvent event) { |
1387 if (GamepadList.dispatchKeyEvent(event)) return true; | 1387 if (GamepadList.dispatchKeyEvent(event)) return true; |
(...skipping 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2697 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 2697 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
2698 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 2698 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
2699 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 2699 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
2700 String textTrackTextShadow, String textTrackTextSize); | 2700 String textTrackTextShadow, String textTrackTextSize); |
2701 | 2701 |
2702 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 2702 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
2703 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); | 2703 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); |
2704 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, | 2704 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, |
2705 int screenX, int screenY, String[] mimeTypes, String content); | 2705 int screenX, int screenY, String[] mimeTypes, String content); |
2706 } | 2706 } |
OLD | NEW |