Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
halo
external_chromium_org
Commits
d81d4fb9
Commit
d81d4fb9
authored
11 years ago
by
Ben Murdoch
Committed by
Android (Google) Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "Cherry-pick "[Android] Don't hide text handles if they are being dragged"" into klp-dev
parents
efe95cda
88a35401
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
...ava/src/org/chromium/content/browser/ContentViewCore.java
+2
-2
content/public/android/java/src/org/chromium/content/browser/input/InsertionHandleController.java
...mium/content/browser/input/InsertionHandleController.java
+7
-0
No files found.
content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
View file @
d81d4fb9
...
...
@@ -2214,10 +2214,10 @@ import java.util.Map;
// Makes the insertion/selection handles invisible. They will fade back in shortly after the
// last call to scheduleTextHandleFadeIn (or temporarilyHideTextHandles).
private
void
temporarilyHideTextHandles
()
{
if
(
isSelectionHandleShowing
())
{
if
(
isSelectionHandleShowing
()
&&
!
mSelectionHandleController
.
isDragging
()
)
{
mSelectionHandleController
.
setHandleVisibility
(
HandleView
.
INVISIBLE
);
}
if
(
isInsertionHandleShowing
())
{
if
(
isInsertionHandleShowing
()
&&
!
mInsertionHandleController
.
isDragging
()
)
{
mInsertionHandleController
.
setHandleVisibility
(
HandleView
.
INVISIBLE
);
}
scheduleTextHandleFadeIn
();
...
...
This diff is collapsed.
Click to expand it.
content/public/android/java/src/org/chromium/content/browser/input/InsertionHandleController.java
View file @
d81d4fb9
...
...
@@ -72,6 +72,13 @@ public abstract class InsertionHandleController implements CursorController {
showPastePopup
();
}
/**
* @return whether the handle is being dragged.
*/
public
boolean
isDragging
()
{
return
mHandle
!=
null
&&
mHandle
.
isDragging
();
}
/** Shows the handle at the given coordinates, as long as automatic showing is allowed */
public
void
onCursorPositionChanged
()
{
if
(
mAllowAutomaticShowing
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment