Index: chrome/browser/android/shortcut_info.h |
diff --git a/chrome/browser/android/shortcut_info.h b/chrome/browser/android/shortcut_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94151031e707b8f66e5c26e3a3b435c03c188a60 |
--- /dev/null |
+++ b/chrome/browser/android/shortcut_info.h |
@@ -0,0 +1,27 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
+#define CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |
+ |
+#include "base/strings/string16.h" |
+#include "content/public/common/manifest.h" |
+#include "third_party/WebKit/public/platform/WebScreenOrientationLockType.h" |
+#include "url/gurl.h" |
+ |
+// Information needed to create a shortcut via ShortcutHelper. |
+struct ShortcutInfo { |
+ ShortcutInfo(); |
+ explicit ShortcutInfo(const GURL& shortcut_url); |
+ |
+ // Updates the info based on the given |manifest|. |
+ void UpdateFromManifest(const content::Manifest& manifest); |
+ |
+ GURL url; |
+ base::string16 title; |
+ content::Manifest::DisplayMode display; |
+ blink::WebScreenOrientationLockType orientation; |
+}; |
+ |
+#endif // CHROME_BROWSER_ANDROID_SHORTCUT_INFO_H_ |