OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/string16.h" | 11 #include "base/string16.h" |
12 #include "ui/base/glib/glib_integers.h" | 12 #include "ui/base/glib/glib_integers.h" |
13 | 13 |
14 class BookmarkModel; | 14 class BookmarkModel; |
15 class BookmarkNode; | 15 class BookmarkNode; |
16 class GtkThemeService; | 16 class GtkThemeService; |
| 17 class GURL; |
17 class Profile; | 18 class Profile; |
18 | 19 |
19 typedef struct _GdkDragContext GdkDragContext; | 20 typedef struct _GdkDragContext GdkDragContext; |
20 typedef struct _GdkPixbuf GdkPixbuf; | 21 typedef struct _GdkPixbuf GdkPixbuf; |
21 typedef struct _GtkSelectionData GtkSelectionData; | 22 typedef struct _GtkSelectionData GtkSelectionData; |
22 typedef struct _GtkWidget GtkWidget; | 23 typedef struct _GtkWidget GtkWidget; |
23 | 24 |
24 namespace bookmark_utils { | 25 namespace bookmark_utils { |
25 | 26 |
26 extern const char kBookmarkNode[]; | 27 extern const char kBookmarkNode[]; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 const BookmarkNode* parent, | 101 const BookmarkNode* parent, |
101 int idx); | 102 int idx); |
102 | 103 |
103 // Add the "url\ntitle" combination into the model at the given position. | 104 // Add the "url\ntitle" combination into the model at the given position. |
104 bool CreateNewBookmarkFromNetscapeURL( | 105 bool CreateNewBookmarkFromNetscapeURL( |
105 GtkSelectionData* selection_data, | 106 GtkSelectionData* selection_data, |
106 BookmarkModel* model, | 107 BookmarkModel* model, |
107 const BookmarkNode* parent, | 108 const BookmarkNode* parent, |
108 int idx); | 109 int idx); |
109 | 110 |
| 111 // Returns a name for the given URL. Used for drags into bookmark areas when |
| 112 // the source doesn't specify a title. |
| 113 string16 GetNameForURL(const GURL& url); |
| 114 |
110 } // namespace bookmark_utils | 115 } // namespace bookmark_utils |
111 | 116 |
112 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ | 117 #endif // CHROME_BROWSER_UI_GTK_BOOKMARKS_BOOKMARK_UTILS_GTK_H_ |
OLD | NEW |