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

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

Issue 9564034: Separate out the Windows bookmark handling code out of the core drag & drop target class. This matc… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 | « no previous file | chrome/browser/tab_contents/web_drag_bookmark_handler_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/web_drag_bookmark_handler_win.h
===================================================================
--- chrome/browser/tab_contents/web_drag_bookmark_handler_win.h (revision 0)
+++ chrome/browser/tab_contents/web_drag_bookmark_handler_win.h (revision 0)
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
+#define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
+#pragma once
+
+#include "base/compiler_specific.h"
+#include "chrome/browser/bookmarks/bookmark_node_data.h"
+#include "content/browser/tab_contents/web_drag_dest_delegate.h"
+
+class TabContentsWrapper;
+
+// Chrome needs to intercept content drag events so it can dispatch them to the
+// bookmarks and extensions system.
+class WebDragBookmarkHandlerWin : public content::WebDragDestDelegate {
+ public:
+ WebDragBookmarkHandlerWin();
+ virtual ~WebDragBookmarkHandlerWin();
+
+ // Overridden from content::WebDragDestDelegate:
+ virtual void DragInitialize(content::WebContents* contents) OVERRIDE;
+ virtual void OnDragOver(IDataObject* data_object) OVERRIDE;
+ virtual void OnDragEnter(IDataObject* data_object) OVERRIDE;
+ virtual void OnDrop(IDataObject* data_object) OVERRIDE;
+ virtual void OnDragLeave(IDataObject* data_object) OVERRIDE;
+
+ private:
+ // The TabContentsWrapper for |tab_contents_|.
+ // Weak reference; may be NULL if the contents aren't contained in a wrapper
+ // (e.g. WebUI dialogs).
+ TabContentsWrapper* tab_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebDragBookmarkHandlerWin);
+};
+
+#endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_WIN_H_
Property changes on: chrome\browser\tab_contents\web_drag_bookmark_handler_win.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « no previous file | chrome/browser/tab_contents/web_drag_bookmark_handler_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698