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

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

Issue 899543003: Break out more manifest parsing logic from ShortcutHelper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/shortcut_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « chrome/browser/android/shortcut_helper.cc ('k') | chrome/browser/android/shortcut_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698