OLD | NEW |
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(); |
| 20 ~IconInfo(); |
| 21 |
19 GURL url; | 22 GURL url; |
20 int width; | 23 int width; |
21 int height; | 24 int height; |
22 SkBitmap data; | 25 SkBitmap data; |
23 }; | 26 }; |
24 | 27 |
25 WebApplicationInfo(); | 28 WebApplicationInfo(); |
26 ~WebApplicationInfo(); | 29 ~WebApplicationInfo(); |
27 | 30 |
28 // URL to a manifest that defines the application. If specified, all other | 31 // URL to a manifest that defines the application. If specified, all other |
(...skipping 29 matching lines...) Expand all Loading... |
58 | 61 |
59 // The type of launch container to use with the app. Currently supported | 62 // The type of launch container to use with the app. Currently supported |
60 // values are 'tab' and 'panel'. Only supported with manifest-based apps. | 63 // values are 'tab' and 'panel'. Only supported with manifest-based apps. |
61 std::string launch_container; | 64 std::string launch_container; |
62 | 65 |
63 // This indicates if the app is functional in offline mode or not. | 66 // This indicates if the app is functional in offline mode or not. |
64 bool is_offline_enabled; | 67 bool is_offline_enabled; |
65 }; | 68 }; |
66 | 69 |
67 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_ | 70 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_ |
OLD | NEW |