Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / common / web_application_info.h
blob74a3a019d7b2bd89cb1812a274d2d8c63c8eb9f3
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_COMMON_WEB_APPLICATION_INFO_H_
6 #define CHROME_COMMON_WEB_APPLICATION_INFO_H_
8 #include <string>
9 #include <vector>
11 #include "base/strings/string16.h"
12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "third_party/skia/include/core/SkColor.h"
14 #include "ui/gfx/geometry/size.h"
15 #include "url/gurl.h"
17 // Structure used when installing a web page as an app.
18 struct WebApplicationInfo {
19 struct IconInfo {
20 IconInfo();
21 ~IconInfo();
23 GURL url;
24 int width;
25 int height;
26 SkBitmap data;
29 enum MobileCapable {
30 MOBILE_CAPABLE_UNSPECIFIED,
31 MOBILE_CAPABLE,
32 MOBILE_CAPABLE_APPLE
35 WebApplicationInfo();
36 ~WebApplicationInfo();
38 // Title of the application.
39 base::string16 title;
41 // Description of the application.
42 base::string16 description;
44 // The launch URL for the app.
45 GURL app_url;
47 // Set of available icons.
48 std::vector<IconInfo> icons;
50 // Whether the page is marked as mobile-capable, including apple specific meta
51 // tag.
52 MobileCapable mobile_capable;
54 // The color to use if an icon needs to be generated for the web app.
55 SkColor generated_icon_color;
57 // Whether the app should be opened in a window. If false, the app will be
58 // opened in a tab.
59 bool open_as_window;
62 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_