blob: 94151031e707b8f66e5c26e3a3b435c03c188a60 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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_
|