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 1662 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1673 return new MotionEventSynthesizer(getContainerView(), this); | 1673 return new MotionEventSynthesizer(getContainerView(), this); |
1674 } | 1674 } |
1675 | 1675 |
1676 @SuppressWarnings("unused") | 1676 @SuppressWarnings("unused") |
1677 @CalledByNative | 1677 @CalledByNative |
1678 private void performLongPressHapticFeedback() { | 1678 private void performLongPressHapticFeedback() { |
1679 mContainerView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
; | 1679 mContainerView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
; |
1680 } | 1680 } |
1681 | 1681 |
1682 @CalledByNative | 1682 @CalledByNative |
1683 private void showPastePopup( | 1683 private void showSelectionMenu(int left, int top, int right, int bottom, boo
lean isEditable, |
1684 int left, int top, int right, int bottom, boolean canSelectAll, bool
ean canEditRichly) { | 1684 boolean isPasswordType, String selectionText, boolean canSelectAll, |
1685 mSelectionPopupController.createAndShowPastePopup( | 1685 boolean canEditRichly, boolean shouldSuggest) { |
1686 left, top, right, bottom, canSelectAll, canEditRichly); | 1686 mSelectionPopupController.showSelectionMenu(left, top, right, bottom, is
Editable, |
| 1687 isPasswordType, selectionText, canSelectAll, canEditRichly, shou
ldSuggest); |
1687 } | 1688 } |
1688 | 1689 |
1689 private void destroyPastePopup() { | 1690 private void destroyPastePopup() { |
1690 mSelectionPopupController.destroyPastePopup(); | 1691 mSelectionPopupController.destroyPastePopup(); |
1691 } | 1692 } |
1692 | 1693 |
1693 @SuppressWarnings("unused") | 1694 @SuppressWarnings("unused") |
1694 @CalledByNative | 1695 @CalledByNative |
1695 private void onRenderProcessChange() { | 1696 private void onRenderProcessChange() { |
1696 // Immediately sync closed caption settings to the new render process. | 1697 // Immediately sync closed caption settings to the new render process. |
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2412 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 2413 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
2413 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 2414 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
2414 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 2415 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
2415 String textTrackTextShadow, String textTrackTextSize); | 2416 String textTrackTextShadow, String textTrackTextSize); |
2416 | 2417 |
2417 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 2418 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
2418 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); | 2419 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo
reImpl); |
2419 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, | 2420 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac
tion, int x, int y, |
2420 int screenX, int screenY, String[] mimeTypes, String content); | 2421 int screenX, int screenY, String[] mimeTypes, String content); |
2421 } | 2422 } |
OLD | NEW |