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.Context; | 10 import android.content.Context; |
(...skipping 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 return new MotionEventSynthesizer(getContainerView(), this); | 1671 return new MotionEventSynthesizer(getContainerView(), this); |
1672 } | 1672 } |
1673 | 1673 |
1674 @SuppressWarnings("unused") | 1674 @SuppressWarnings("unused") |
1675 @CalledByNative | 1675 @CalledByNative |
1676 private void performLongPressHapticFeedback() { | 1676 private void performLongPressHapticFeedback() { |
1677 mContainerView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
; | 1677 mContainerView.performHapticFeedback(HapticFeedbackConstants.LONG_PRESS)
; |
1678 } | 1678 } |
1679 | 1679 |
1680 @CalledByNative | 1680 @CalledByNative |
1681 private void showPastePopup( | 1681 private void showSelectionMenu(int left, int top, int right, int bottom, boo
lean isEditable, |
1682 int left, int top, int right, int bottom, boolean canSelectAll, bool
ean canEditRichly) { | 1682 boolean isPasswordType, String selectionText, boolean canSelectAll, |
1683 mSelectionPopupController.createAndShowPastePopup( | 1683 boolean canEditRichly, boolean shouldSuggest) { |
1684 left, top, right, bottom, canSelectAll, canEditRichly); | 1684 mSelectionPopupController.showSelectionMenu(left, top, right, bottom, is
Editable, |
| 1685 isPasswordType, selectionText, canSelectAll, canEditRichly, shou
ldSuggest); |
1685 } | 1686 } |
1686 | 1687 |
1687 private void destroyPastePopup() { | 1688 private void destroyPastePopup() { |
1688 mSelectionPopupController.destroyPastePopup(); | 1689 mSelectionPopupController.destroyPastePopup(); |
1689 } | 1690 } |
1690 | 1691 |
1691 @SuppressWarnings("unused") | 1692 @SuppressWarnings("unused") |
1692 @CalledByNative | 1693 @CalledByNative |
1693 private void onRenderProcessChange() { | 1694 private void onRenderProcessChange() { |
1694 // Immediately sync closed caption settings to the new render process. | 1695 // Immediately sync closed caption settings to the new render process. |
(...skipping 663 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2358 private native void nativeSetAccessibilityEnabled( | 2359 private native void nativeSetAccessibilityEnabled( |
2359 long nativeContentViewCoreImpl, boolean enabled); | 2360 long nativeContentViewCoreImpl, boolean enabled); |
2360 | 2361 |
2361 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, | 2362 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp
l, |
2362 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, | 2363 boolean textTracksEnabled, String textTrackBackgroundColor, String t
extTrackFontFamily, |
2363 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, | 2364 String textTrackFontStyle, String textTrackFontVariant, String textT
rackTextColor, |
2364 String textTrackTextShadow, String textTrackTextSize); | 2365 String textTrackTextShadow, String textTrackTextSize); |
2365 | 2366 |
2366 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); | 2367 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl
, boolean opaque); |
2367 } | 2368 } |
OLD | NEW |