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

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

Issue 2740103006: Implement SmartText selection. (Closed)
Patch Set: Renamed isReady -> isActionModeSupported, added synchronized in ContentClassFactory Created 3 years, 9 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.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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698