diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-05 02:19:34 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-05 02:19:34 +0000 |
commit | 7813bd73bf0b74901a1dbd1883701a65bc9f7130 (patch) | |
tree | 4e1f08c19275c45ae371ad27dc00d4416f3f43f9 /chrome/browser/tab_contents/tab_contents.cc | |
parent | f9607f269216db581c45f913c00edb8e926a5022 (diff) | |
download | chromium_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/tab_contents/tab_contents.cc')
-rw-r--r-- | chrome/browser/tab_contents/tab_contents.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/tab_contents.cc b/chrome/browser/tab_contents/tab_contents.cc index c7184d2..b97f707 100644 --- a/chrome/browser/tab_contents/tab_contents.cc +++ b/chrome/browser/tab_contents/tab_contents.cc @@ -3,7 +3,7 @@ // found in the LICENSE file. #include "chrome/browser/tab_contents/tab_contents.h" - +// DO NOT SUBMIT #include <cmath> #include "base/auto_reset.h" @@ -1414,6 +1414,13 @@ bool TabContents::ShouldAcceptDragAndDrop() const { #endif } +void TabContents::SystemDragEnded() { + if (render_view_host()) + render_view_host()->DragSourceSystemDragEnded(); + if (delegate()) + delegate()->DragEnded(); +} + void TabContents::UpdateHistoryForNavigation( scoped_refptr<history::HistoryAddPageArgs> add_page_args) { if (profile()->IsOffTheRecord()) |