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

Side by Side Diff: chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h

Issue 8196001: content: Split web_drag_dest_gtk.cc into chrome/ and content/ parts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :( Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
7 #pragma once
8
9 #include "chrome/browser/bookmarks/bookmark_node_data.h"
10 #include "chrome/browser/tab_contents/web_drag_dest_gtk.h"
11
12 class TabContentsWrapper;
13
14 class WebDragBookmarkHandlerGtk : public WebDragBookmarkDelegate {
15 public:
16 WebDragBookmarkHandlerGtk();
17 virtual ~WebDragBookmarkHandlerGtk();
18
19 // Overridden from WebDragBookmarkDelegate:
20 virtual void DragInitialize(TabContents* contents);
21 virtual void OnReceiveDataFromGtk(GtkSelectionData* data);
22 virtual void OnReceiveProcessedData(const GURL& url,
23 const string16& title);
24 virtual void OnDragOver();
25 virtual void OnDragEnter();
26 virtual void OnDrop();
27 virtual void OnDragLeave();
28
29 private:
30 // The TabContentsWrapper for |tab_contents_|.
31 // Weak reference; may be NULL if the contents aren't contained in a wrapper
32 // (e.g. WebUI dialogs).
33 TabContentsWrapper* tab_;
34
35 // The bookmark data for the current tab. This will be empty if there is not
36 // a native bookmark drag (or we haven't gotten the data from the source yet).
37 BookmarkNodeData bookmark_drag_data_;
38 };
39
40 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698