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

Side by Side Diff: chrome/common/web_application_info.h

Issue 568823003: Merge Android RetrieveWebappInformation and Extensions GetApplicationInfo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_manager_content
Patch Set: Created 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_COMMON_WEB_APPLICATION_INFO_H_ 5 #ifndef CHROME_COMMON_WEB_APPLICATION_INFO_H_
6 #define CHROME_COMMON_WEB_APPLICATION_INFO_H_ 6 #define CHROME_COMMON_WEB_APPLICATION_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/strings/string16.h" 11 #include "base/strings/string16.h"
12 #include "third_party/skia/include/core/SkBitmap.h" 12 #include "third_party/skia/include/core/SkBitmap.h"
13 #include "ui/gfx/size.h" 13 #include "ui/gfx/size.h"
14 #include "url/gurl.h" 14 #include "url/gurl.h"
15 15
16 // Structure used when installing a web page as an app. 16 // Structure used when installing a web page as an app.
17 struct WebApplicationInfo { 17 struct WebApplicationInfo {
18 struct IconInfo { 18 struct IconInfo {
19 IconInfo(); 19 IconInfo();
20 ~IconInfo(); 20 ~IconInfo();
21 21
22 GURL url; 22 GURL url;
23 int width; 23 int width;
24 int height; 24 int height;
25 SkBitmap data; 25 SkBitmap data;
26 }; 26 };
27 27
28 enum MobileCapable {
29 Unspecified,
sky 2014/09/15 16:11:02 See style guide for proper names. And I prefer pre
mlamouri (slow - plz ping) 2014/09/15 16:24:17 Done.
30 Yes,
31 AppleOnly
32 };
33
28 WebApplicationInfo(); 34 WebApplicationInfo();
29 ~WebApplicationInfo(); 35 ~WebApplicationInfo();
30 36
31 // Title of the application. 37 // Title of the application.
32 base::string16 title; 38 base::string16 title;
33 39
34 // Description of the application. 40 // Description of the application.
35 base::string16 description; 41 base::string16 description;
36 42
37 // The launch URL for the app. 43 // The launch URL for the app.
38 GURL app_url; 44 GURL app_url;
39 45
40 // Set of available icons. 46 // Set of available icons.
41 std::vector<IconInfo> icons; 47 std::vector<IconInfo> icons;
48
49 // Whether the page is marked as mobile-capable, including apple specific meta
50 // tag.
51 MobileCapable mobile_capable;
42 }; 52 };
43 53
44 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_ 54 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698