summaryrefslogtreecommitdiffstats
path: root/chrome/browser/bookmarks/bookmark_utils.h
diff options
context:
space:
mode:
authorsadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 17:50:50 +0000
committersadrul@chromium.org <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-08 17:50:50 +0000
commitb79a160a2cb10535866c2a02ef6f072b768e4fa7 (patch)
treea1a32c7415deb67f681771a0efe8282d3a80d3f5 /chrome/browser/bookmarks/bookmark_utils.h
parent990e8763094da3b9951a49f912639c156501ef71 (diff)
downloadchromium_src-b79a160a2cb10535866c2a02ef6f072b768e4fa7.zip
chromium_src-b79a160a2cb10535866c2a02ef6f072b768e4fa7.tar.gz
chromium_src-b79a160a2cb10535866c2a02ef6f072b768e4fa7.tar.bz2
Pre-fill the 'Add Page' bookmark window with the current page (gtk and windows).
Selecting the 'Add Page' menu from the bookmark bar opens up the bookmark editor dialog with empty title and URL fields. Pre-fill these entries with the title and URL of the current page. BUG=26052 TEST=manually Review URL: http://codereview.chromium.org/7310023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@91873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/bookmarks/bookmark_utils.h')
-rw-r--r--chrome/browser/bookmarks/bookmark_utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/bookmarks/bookmark_utils.h b/chrome/browser/bookmarks/bookmark_utils.h
index cc95b59..1948492 100644
--- a/chrome/browser/bookmarks/bookmark_utils.h
+++ b/chrome/browser/bookmarks/bookmark_utils.h
@@ -193,6 +193,12 @@ void GetURLAndTitleToBookmark(TabContents* tab_contents,
GURL* url,
string16* title);
+// Fills in the URL and title for a bookmark from the current tab of the
+// specified profile.
+void GetURLAndTitleToBookmarkFromCurrentTab(Profile* profile,
+ GURL* url,
+ string16* title);
+
// Returns, by reference in |urls|, the url and title pairs for each open
// tab in browser.
void GetURLsForOpenTabs(Browser* browser,