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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1662 if (mNativeContentViewCore == 0) return; | 1662 if (mNativeContentViewCore == 0) return; |
1663 | 1663 |
1664 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation); | 1664 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation); |
1665 } | 1665 } |
1666 | 1666 |
1667 public ActionModeCallbackHelper getActionModeCallbackHelper() { | 1667 public ActionModeCallbackHelper getActionModeCallbackHelper() { |
1668 return mSelectionPopupController; | 1668 return mSelectionPopupController; |
1669 } | 1669 } |
1670 | 1670 |
1671 private void showSelectActionMode() { | 1671 private void showSelectActionMode() { |
1672 if (!mSelectionPopupController.showActionMode()) clearSelection(); | 1672 mSelectionPopupController.showActionModeOrClearOnFailure(); |
1673 } | 1673 } |
1674 | 1674 |
1675 public void clearSelection() { | 1675 public void clearSelection() { |
1676 mSelectionPopupController.clearSelection(); | 1676 mSelectionPopupController.clearSelection(); |
1677 } | 1677 } |
1678 | 1678 |
1679 /** | 1679 /** |
1680 * Ensure the selection is preserved the next time the view loses focus. | 1680 * Ensure the selection is preserved the next time the view loses focus. |
1681 */ | 1681 */ |
1682 public void preserveSelectionOnNextLossOfFocus() { | 1682 public void preserveSelectionOnNextLossOfFocus() { |
(...skipping 1014 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 |