summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-05 02:19:34 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-05 02:19:34 +0000
commit7813bd73bf0b74901a1dbd1883701a65bc9f7130 (patch)
tree4e1f08c19275c45ae371ad27dc00d4416f3f43f9 /chrome/browser/instant
parentf9607f269216db581c45f913c00edb8e926a5022 (diff)
downloadchromium_src-7813bd73bf0b74901a1dbd1883701a65bc9f7130.zip
chromium_src-7813bd73bf0b74901a1dbd1883701a65bc9f7130.tar.gz
chromium_src-7813bd73bf0b74901a1dbd1883701a65bc9f7130.tar.bz2
Commit instant at the end of a render view drag.
Similar to the way we commit on mouseup. At least on linux, we never get the mouseup when the user clicks and starts dragging, then releases. BUG=71711 TEST=manual (see bug) Review URL: http://codereview.chromium.org/6250156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73895 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_loader.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index 0a4812b..c8c8afb 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.cc
@@ -324,6 +324,12 @@ class InstantLoader::TabContentsDelegateImpl
virtual void LostCapture() {
CommitFromMouseReleaseIfNecessary();
}
+ // If the user drags, we won't get a mouse up (at least on Linux). Commit the
+ // instant result when the drag ends, so that during the drag the page won't
+ // move around.
+ virtual void DragEnded() {
+ CommitFromMouseReleaseIfNecessary();
+ }
virtual bool CanDownload(int request_id) { return false; }
virtual void HandleMouseUp() {
CommitFromMouseReleaseIfNecessary();