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

Side by Side Diff: chrome/browser/ui/gtk/bookmarks/bookmark_drag.h

Issue 23743003: gtk: Fold bookmark_drag.* into bookmark_drag_drop_gtk.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2013 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_UI_GTK_BOOKMARKS_BOOKMARK_DRAG_H_
6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_DRAG_H_
7
8 #include <vector>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "chrome/browser/ui/gtk/custom_drag.h"
13
14 class BookmarkNode;
15 class Profile;
16
17 // Encapsulates functionality for drags of one or more bookmarks.
18 class BookmarkDrag : public CustomDrag {
19 public:
20 // Creates a new BookmarkDrag, the lifetime of which is tied to the system
21 // drag.
22 static void BeginDrag(Profile* profile,
23 const std::vector<const BookmarkNode*>& nodes);
24
25 private:
26 BookmarkDrag(Profile* profile, const std::vector<const BookmarkNode*>& nodes);
27 virtual ~BookmarkDrag();
28
29 virtual void OnDragDataGet(GtkWidget* widget,
30 GdkDragContext* context,
31 GtkSelectionData* selection_data,
32 guint target_type,
33 guint time) OVERRIDE;
34
35 Profile* profile_;
36 std::vector<const BookmarkNode*> nodes_;
37
38 DISALLOW_COPY_AND_ASSIGN(BookmarkDrag);
39 };
40
41 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_DRAG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/bookmarks/bookmark_drag.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698