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

Side by Side Diff: chrome/browser/gtk/bookmark_utils_gtk.h

Issue 1029004: GTK: implement extension bookmark manager drag api.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 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 | « chrome/browser/gtk/bookmark_manager_gtk.cc ('k') | chrome/browser/gtk/bookmark_utils_gtk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_
6 #define CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ 6 #define CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <vector> 9 #include <vector>
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 std::string BuildTooltipFor(const BookmarkNode* node); 41 std::string BuildTooltipFor(const BookmarkNode* node);
42 42
43 // Returns the "bookmark-node" property of |widget| casted to the correct type. 43 // Returns the "bookmark-node" property of |widget| casted to the correct type.
44 const BookmarkNode* BookmarkNodeForWidget(GtkWidget* widget); 44 const BookmarkNode* BookmarkNodeForWidget(GtkWidget* widget);
45 45
46 // Set the colors on |label| as per the theme. 46 // Set the colors on |label| as per the theme.
47 void SetButtonTextColors(GtkWidget* label, GtkThemeProvider* provider); 47 void SetButtonTextColors(GtkWidget* label, GtkThemeProvider* provider);
48 48
49 // Drag and drop. -------------------------------------------------------------- 49 // Drag and drop. --------------------------------------------------------------
50 50
51 // Get the DnD target mask for a bookmark drag. This will vary based on whether
52 // the node in question is a folder.
53 int GetCodeMask(bool folder);
54
51 // Pickle a node into a GtkSelection. 55 // Pickle a node into a GtkSelection.
52 void WriteBookmarkToSelection(const BookmarkNode* node, 56 void WriteBookmarkToSelection(const BookmarkNode* node,
53 GtkSelectionData* selection_data, 57 GtkSelectionData* selection_data,
54 guint target_type, 58 guint target_type,
55 Profile* profile); 59 Profile* profile);
56 60
57 // Pickle a vector of nodes into a GtkSelection. 61 // Pickle a vector of nodes into a GtkSelection.
58 void WriteBookmarksToSelection(const std::vector<const BookmarkNode*>& nodes, 62 void WriteBookmarksToSelection(const std::vector<const BookmarkNode*>& nodes,
59 GtkSelectionData* selection_data, 63 GtkSelectionData* selection_data,
60 guint target_type, 64 guint target_type,
(...skipping 21 matching lines...) Expand all
82 // will be added whether or not the URL is valid. 86 // will be added whether or not the URL is valid.
83 bool CreateNewBookmarksFromURIList( 87 bool CreateNewBookmarksFromURIList(
84 GtkSelectionData* selection_data, 88 GtkSelectionData* selection_data,
85 BookmarkModel* model, 89 BookmarkModel* model,
86 const BookmarkNode* parent, 90 const BookmarkNode* parent,
87 int idx); 91 int idx);
88 92
89 } // namespace bookmark_utils 93 } // namespace bookmark_utils
90 94
91 #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ 95 #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/bookmark_manager_gtk.cc ('k') | chrome/browser/gtk/bookmark_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698