Index: chrome/browser/ui/views/extensions/browser_action_drag_data.h |
diff --git a/chrome/browser/ui/views/extensions/browser_action_drag_data.h b/chrome/browser/ui/views/extensions/browser_action_drag_data.h |
index 563a04e4024fe3ea03199d5c7d8bcda793acb12f..39ebd335711aedfef9dda6cc800e76008fc7e963 100644 |
--- a/chrome/browser/ui/views/extensions/browser_action_drag_data.h |
+++ b/chrome/browser/ui/views/extensions/browser_action_drag_data.h |
@@ -21,12 +21,20 @@ class BrowserActionDragData { |
BrowserActionDragData(); |
BrowserActionDragData(const std::string& id, int index); |
+ // These mirror the views::View and views::MenuDelegate methods for dropping, |
+ // and return the appropriate results for being able to drop an extension's |
+ // BrowserAction view. |
+ static bool GetDropFormats( |
+ std::set<ui::OSExchangeData::CustomFormat>* custom_formats); |
+ static bool AreDropTypesRequired(); |
+ static bool CanDrop(const ui::OSExchangeData& data, const Profile* profile); |
+ |
const std::string& id() const { return id_; } |
size_t index() const { return index_; } |
// Returns true if this data is from the specified profile. |
- bool IsFromProfile(Profile* profile) const; |
+ bool IsFromProfile(const Profile* profile) const; |
#if defined(TOOLKIT_VIEWS) |
void Write(Profile* profile, ui::OSExchangeData* data) const; |
@@ -51,9 +59,6 @@ class BrowserActionDragData { |
// The index of the view being dragged. |
size_t index_; |
- // The MIME type for the clipboard format for BrowserActionDragData. |
- static const char* kClipboardFormatString; |
- |
DISALLOW_COPY_AND_ASSIGN(BrowserActionDragData); |
}; |