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

Unified Diff: chrome/browser/ui/views/tabs/tab_strip.h

Issue 68133020: Fix dragging supported files to tab strip. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes Created 7 years, 1 month 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
Index: chrome/browser/ui/views/tabs/tab_strip.h
diff --git a/chrome/browser/ui/views/tabs/tab_strip.h b/chrome/browser/ui/views/tabs/tab_strip.h
index 8de46e80859c8c888c2d23efba96332f91b86c3b..7e01033da3de56458455f93b33ef5d9226f5867c 100644
--- a/chrome/browser/ui/views/tabs/tab_strip.h
+++ b/chrome/browser/ui/views/tabs/tab_strip.h
@@ -182,6 +182,9 @@ class TabStrip : public views::View,
// ongoing this does a layout.
void StopAnimating(bool layout);
+ // Called to indicate whether the given URL is a supported file.
+ void FileSupported(const GURL& url, bool supported);
+
// TabController overrides:
virtual const ui::ListSelectionModel& GetSelectionModel() OVERRIDE;
virtual bool SupportsMultipleSelection() OVERRIDE;
@@ -295,6 +298,12 @@ class TabStrip : public views::View,
views::Widget* arrow_window;
views::ImageView* arrow_view;
+ // The URL for the drop event.
+ GURL url;
+
+ // Whether the MIME type of the file pointed to by |url| is supported.
+ bool file_supported;
+
private:
DISALLOW_COPY_AND_ASSIGN(DropInfo);
};

Powered by Google App Engine
This is Rietveld 408576698