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

Unified Diff: trunk/src/chrome/browser/ui/views/extensions/browser_action_drag_data.cc

Issue 416903002: Revert 285142 "Open the WrenchMenu on mouseover when dragging a ..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 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
Index: trunk/src/chrome/browser/ui/views/extensions/browser_action_drag_data.cc
===================================================================
--- trunk/src/chrome/browser/ui/views/extensions/browser_action_drag_data.cc (revision 285300)
+++ trunk/src/chrome/browser/ui/views/extensions/browser_action_drag_data.cc (working copy)
@@ -10,13 +10,9 @@
#include "chrome/browser/profiles/profile.h"
#include "ui/base/clipboard/clipboard.h"
-namespace {
+const char* BrowserActionDragData::kClipboardFormatString =
+ "chromium/x-browser-actions";
-// The MIME type for the clipboard format for BrowserActionDragData.
-const char kClipboardFormatString[] = "chromium/x-browser-actions";
-
-}
-
BrowserActionDragData::BrowserActionDragData()
: profile_(NULL), index_(static_cast<size_t>(-1)) {
}
@@ -26,23 +22,7 @@
: profile_(NULL), id_(id), index_(index) {
}
-bool BrowserActionDragData::GetDropFormats(
- std::set<ui::OSExchangeData::CustomFormat>* custom_formats) {
- custom_formats->insert(GetBrowserActionCustomFormat());
- return true;
-}
-
-bool BrowserActionDragData::AreDropTypesRequired() {
- return true;
-}
-
-bool BrowserActionDragData::CanDrop(const ui::OSExchangeData& data,
- const Profile* profile) {
- BrowserActionDragData drop_data;
- return drop_data.Read(data) && drop_data.IsFromProfile(profile);
-}
-
-bool BrowserActionDragData::IsFromProfile(const Profile* profile) const {
+bool BrowserActionDragData::IsFromProfile(Profile* profile) const {
return profile_ == profile;
}

Powered by Google App Engine
This is Rietveld 408576698