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

Unified Diff: chrome/browser/tab_contents/tab_contents_view.h

Issue 155548: Merge 20436 - Fix a crash that happens if a tab is closed while... (Closed) Base URL: svn://chrome-svn/chrome/branches/193/src/
Patch Set: Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/web_drag_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/tab_contents_view.h
===================================================================
--- chrome/browser/tab_contents/tab_contents_view.h (revision 20694)
+++ chrome/browser/tab_contents/tab_contents_view.h (working copy)
@@ -138,6 +138,14 @@
return preferred_width_;
}
+ // If we try to close the tab while a drag is in progress, we crash. These
+ // methods allow the tab contents to determine if a drag is in progress and
+ // postpone the tab closing.
+ virtual bool IsDoingDrag() const {
+ return false;
+ }
+ virtual void CancelDragAndCloseTab() {}
+
protected:
TabContentsView() {} // Abstract interface.
Property changes on: chrome\browser\tab_contents\tab_contents_view.h
___________________________________________________________________
Modified: svn:mergeinfo
Merged /trunk/src/chrome/browser/tab_contents/tab_contents_view.h:r20436
« no previous file with comments | « chrome/browser/tab_contents/tab_contents.cc ('k') | chrome/browser/tab_contents/web_drag_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698