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

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

Issue 11827058: bookmarks: GetNameForURL() function is only used by gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update os_exchange_data_win_unittest.cc Created 7 years, 11 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.cc ('k') | chrome/browser/ui/gtk/bookmarks/bookmark_utils_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698