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

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: Fix viewgtk compile 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_delegate_gtk.h"
11
12 class TabContentsWrapper;
13
14 class WebDragBookmarkHandlerGtk : public WebDragDestDelegateGtk {
15 public:
16 WebDragBookmarkHandlerGtk();
17 virtual ~WebDragBookmarkHandlerGtk();
18
19 // Overridden from WebDragBookmarkDelegate:
20 virtual void DragInitialize(TabContents* contents);
21 virtual GdkAtom GetBookmarkTargetAtom() const;
22 virtual void OnReceiveDataFromGtk(GtkSelectionData* data);
23 virtual void OnReceiveProcessedData(const GURL& url,
24 const string16& title);
25 virtual void OnDragOver();
26 virtual void OnDragEnter();
27 virtual void OnDrop();
28 virtual void OnDragLeave();
29
30 private:
31 // The TabContentsWrapper for |tab_contents_|.
32 // Weak reference; may be NULL if the contents aren't contained in a wrapper
33 // (e.g. WebUI dialogs).
34 TabContentsWrapper* tab_;
35
36 // The bookmark data for the current tab. This will be empty if there is not
37 // a native bookmark drag (or we haven't gotten the data from the source yet).
38 BookmarkNodeData bookmark_drag_data_;
39 };
40
41 #endif // CHROME_BROWSER_TAB_CONTENTS_WEB_DRAG_BOOKMARK_HANDLER_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698