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

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

Issue 2740103006: Implement SmartText selection. (Closed)
Patch Set: Made ~ContextSelectionClient() public and inlined SelectionPopupControler.unhideActionMode() Created 3 years, 8 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 1657 matching lines...) Expand 10 before | Expand all | Expand 10 after
1668 if (mNativeContentViewCore == 0) return; 1668 if (mNativeContentViewCore == 0) return;
1669 1669
1670 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation); 1670 nativeSendOrientationChangeEvent(mNativeContentViewCore, orientation);
1671 } 1671 }
1672 1672
1673 public ActionModeCallbackHelper getActionModeCallbackHelper() { 1673 public ActionModeCallbackHelper getActionModeCallbackHelper() {
1674 return mSelectionPopupController; 1674 return mSelectionPopupController;
1675 } 1675 }
1676 1676
1677 private void showSelectActionMode() { 1677 private void showSelectActionMode() {
1678 if (!mSelectionPopupController.showActionMode()) clearSelection(); 1678 mSelectionPopupController.showActionModeOrClearOnFailure();
1679 } 1679 }
1680 1680
1681 public void clearSelection() { 1681 public void clearSelection() {
1682 mSelectionPopupController.clearSelection(); 1682 mSelectionPopupController.clearSelection();
1683 } 1683 }
1684 1684
1685 /** 1685 /**
1686 * Ensure the selection is preserved the next time the view loses focus. 1686 * Ensure the selection is preserved the next time the view loses focus.
1687 */ 1687 */
1688 public void preserveSelectionOnNextLossOfFocus() { 1688 public void preserveSelectionOnNextLossOfFocus() {
(...skipping 996 matching lines...) Expand 10 before | Expand all | Expand 10 after
2685 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l, 2685 private native void nativeSetTextTrackSettings(long nativeContentViewCoreImp l,
2686 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily, 2686 boolean textTracksEnabled, String textTrackBackgroundColor, String t extTrackFontFamily,
2687 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor, 2687 String textTrackFontStyle, String textTrackFontVariant, String textT rackTextColor,
2688 String textTrackTextShadow, String textTrackTextSize); 2688 String textTrackTextShadow, String textTrackTextSize);
2689 2689
2690 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque); 2690 private native void nativeSetBackgroundOpaque(long nativeContentViewCoreImpl , boolean opaque);
2691 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl); 2691 private native boolean nativeIsTouchDragDropEnabled(long nativeContentViewCo reImpl);
2692 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y, 2692 private native void nativeOnDragEvent(long nativeContentViewCoreImpl, int ac tion, int x, int y,
2693 int screenX, int screenY, String[] mimeTypes, String content); 2693 int screenX, int screenY, String[] mimeTypes, String content);
2694 } 2694 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698