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

Unified Diff: chrome/browser/android/shortcut_helper.h

Issue 24063004: Adding a dialog on click of "add to homescreen" menu item to edit the title. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/shortcut_helper.h
diff --git a/chrome/browser/android/shortcut_helper.h b/chrome/browser/android/shortcut_helper.h
index 2e66a9cbeee30efccdb300aabe76bf8d89de5f04..a1f440ac3d3add0292ed1f20b508e69cab76e8f1 100644
--- a/chrome/browser/android/shortcut_helper.h
+++ b/chrome/browser/android/shortcut_helper.h
@@ -36,7 +36,8 @@ class GURL;
// the shortcut.
class ShortcutBuilder : public content::WebContentsObserver {
public:
- explicit ShortcutBuilder(content::WebContents* web_contents);
+ explicit ShortcutBuilder(content::WebContents* web_contents,
+ const string16& title);
virtual ~ShortcutBuilder() {}
void OnDidRetrieveWebappInformation(bool success,
@@ -65,7 +66,8 @@ class ShortcutHelper {
public:
// Adds a shortcut to the current URL to the Android home screen, firing
// background tasks to pull all the data required.
- static void AddShortcut(content::WebContents* web_contents);
+ static void AddShortcut(content::WebContents* web_contents,
+ const string16& title);
// Adds a shortcut to the launcher. Must be called from a WorkerPool task.
static void AddShortcutInBackground(

Powered by Google App Engine
This is Rietveld 408576698