| 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 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 SkBitmap data; | 26 SkBitmap data; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 enum MobileCapable { | 29 enum MobileCapable { |
| 30 MOBILE_CAPABLE_UNSPECIFIED, | 30 MOBILE_CAPABLE_UNSPECIFIED, |
| 31 MOBILE_CAPABLE, | 31 MOBILE_CAPABLE, |
| 32 MOBILE_CAPABLE_APPLE | 32 MOBILE_CAPABLE_APPLE |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 WebApplicationInfo(); | 35 WebApplicationInfo(); |
| 36 WebApplicationInfo(const WebApplicationInfo& other); |
| 36 ~WebApplicationInfo(); | 37 ~WebApplicationInfo(); |
| 37 | 38 |
| 38 // Title of the application. | 39 // Title of the application. |
| 39 base::string16 title; | 40 base::string16 title; |
| 40 | 41 |
| 41 // Description of the application. | 42 // Description of the application. |
| 42 base::string16 description; | 43 base::string16 description; |
| 43 | 44 |
| 44 // The launch URL for the app. | 45 // The launch URL for the app. |
| 45 GURL app_url; | 46 GURL app_url; |
| 46 | 47 |
| 47 // Set of available icons. | 48 // Set of available icons. |
| 48 std::vector<IconInfo> icons; | 49 std::vector<IconInfo> icons; |
| 49 | 50 |
| 50 // Whether the page is marked as mobile-capable, including apple specific meta | 51 // Whether the page is marked as mobile-capable, including apple specific meta |
| 51 // tag. | 52 // tag. |
| 52 MobileCapable mobile_capable; | 53 MobileCapable mobile_capable; |
| 53 | 54 |
| 54 // The color to use if an icon needs to be generated for the web app. | 55 // The color to use if an icon needs to be generated for the web app. |
| 55 SkColor generated_icon_color; | 56 SkColor generated_icon_color; |
| 56 | 57 |
| 57 // Whether the app should be opened in a window. If false, the app will be | 58 // Whether the app should be opened in a window. If false, the app will be |
| 58 // opened in a tab. | 59 // opened in a tab. |
| 59 bool open_as_window; | 60 bool open_as_window; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_ | 63 #endif // CHROME_COMMON_WEB_APPLICATION_INFO_H_ |
| OLD | NEW |