| OLD | NEW |
| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 gboolean* dnd_success); | 76 gboolean* dnd_success); |
| 77 | 77 |
| 78 // Unpickle a new bookmark of the CHROME_NAMED_URL drag type, and put it in | 78 // Unpickle a new bookmark of the CHROME_NAMED_URL drag type, and put it in |
| 79 // the appropriate location in the model. | 79 // the appropriate location in the model. |
| 80 bool CreateNewBookmarkFromNamedUrl( | 80 bool CreateNewBookmarkFromNamedUrl( |
| 81 GtkSelectionData* selection_data, | 81 GtkSelectionData* selection_data, |
| 82 BookmarkModel* model, | 82 BookmarkModel* model, |
| 83 const BookmarkNode* parent, | 83 const BookmarkNode* parent, |
| 84 int idx); | 84 int idx); |
| 85 | 85 |
| 86 // Add the URIs in |selection_data| into the model at the given position. They |
| 87 // will be added whether or not the URL is valid. |
| 88 bool CreateNewBookmarksFromURIList( |
| 89 GtkSelectionData* selection_data, |
| 90 BookmarkModel* model, |
| 91 const BookmarkNode* parent, |
| 92 int idx); |
| 93 |
| 86 } // namespace bookmark_utils | 94 } // namespace bookmark_utils |
| 87 | 95 |
| 88 #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ | 96 #endif // CHROME_BROWSER_GTK_BOOKMARK_UTILS_GTK_H_ |
| OLD | NEW |