summaryrefslogtreecommitdiffstats
path: root/content/common
diff options
context:
space:
mode:
authorhusky@chromium.org <husky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-13 17:56:16 +0000
committerhusky@chromium.org <husky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-13 17:56:16 +0000
commitc95e53ad27f426eeee6d2c07abc0c566b599b5ad (patch)
treebc304a10197d08467efe3addb2e328705ab4a143 /content/common
parent284b03c2288690b0d9744acf292cdbf9ac854ee1 (diff)
downloadchromium_src-c95e53ad27f426eeee6d2c07abc0c566b599b5ad.zip
chromium_src-c95e53ad27f426eeee6d2c07abc0c566b599b5ad.tar.gz
chromium_src-c95e53ad27f426eeee6d2c07abc0c566b599b5ad.tar.bz2
Throttle SelectRange IPC
This code is used by the Android port. We add a SelectRange_ACK to throttle the rate at which the selection changes. Without throttling, the selection handle updates can fall behind the user's touch input. BUG=138939 Review URL: https://chromiumcodereview.appspot.com/10823077 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151304 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common')
-rw-r--r--content/common/view_messages.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index 4e8333c..da41ea2 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -978,6 +978,7 @@ IPC_MESSAGE_ROUTED0(ViewMsg_SelectAll)
IPC_MESSAGE_ROUTED0(ViewMsg_Unselect)
// Requests the renderer to select the region between two points.
+// Expects a SelectRange_ACK message when finished.
IPC_MESSAGE_ROUTED2(ViewMsg_SelectRange,
gfx::Point /* start */,
gfx::Point /* end */)
@@ -1841,6 +1842,8 @@ IPC_MESSAGE_ROUTED2(ViewHostMsg_SetTooltipText,
string16 /* tooltip text string */,
WebKit::WebTextDirection /* text direction hint */)
+IPC_MESSAGE_ROUTED0(ViewHostMsg_SelectRange_ACK)
+
// Notification that the text selection has changed.
// Note: The secound parameter is the character based offset of the string16
// text in the document.