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

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

Issue 2740103006: Implement SmartText selection. (Closed)
Patch Set: Addressed some comments 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 1627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1638 if (mNativeContentViewCore == 0) return; 1638 if (mNativeContentViewCore == 0) return;
1639 1639
1640 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation); 1640 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation);
1641 } 1641 }
1642 1642
1643 public ActionModeCallbackHelper getActionModeCallbackHelper() { 1643 public ActionModeCallbackHelper getActionModeCallbackHelper() {
1644 return mSelectionPopupController; 1644 return mSelectionPopupController;
1645 } 1645 }
1646 1646
1647 private void showSelectActionMode() { 1647 private void showSelectActionMode() {
1648 if (!mSelectionPopupController.showActionMode()) clearSelection(); 1648 mSelectionPopupController.showActionMode();
Ted C 2017/03/20 20:35:50 What is this change for? Does this apply in all c
1649 } 1649 }
1650 1650
1651 public void clearSelection() { 1651 public void clearSelection() {
1652 mSelectionPopupController.clearSelection(); 1652 mSelectionPopupController.clearSelection();
1653 } 1653 }
1654 1654
1655 /** 1655 /**
1656 * Ensure the selection is preserved the next time the view loses focus. 1656 * Ensure the selection is preserved the next time the view loses focus.
1657 */ 1657 */
1658 public void preserveSelectionOnNextLossOfFocus() { 1658 public void preserveSelectionOnNextLossOfFocus() {
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
2677 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l, 2677 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l,
2678 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily, 2678 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily,
2679 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor, 2679 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor,
2680 String textTrackTextShadow, String textTrackTextSize); 2680 String textTrackTextShadow, String textTrackTextSize);
2681 2681
2682 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 2682 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
2683 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl); 2683 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl);
2684 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y, 2684 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y,
2685 int screenX, int screenY, String[] mimeTypes, String content); 2685 int screenX, int screenY, String[] mimeTypes, String content);
2686 } 2686 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698