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

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: Moved logic to BrowserTabStripController 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 e8aa7a80f16dc53ac6a0b75d442ce00a109c9a7c..5afccc2c9a237db1f581a38a50ea16759b4ed316 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