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

Unified Diff: webkit/glue/dom_operations.h

Issue 4139008: Add convert_web_app.*, a utility to convert web apps declared (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use bitshift instead Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/dom_operations.h
diff --git a/webkit/glue/dom_operations.h b/webkit/glue/dom_operations.h
index 1b6151b9aa4681af1ab1b455c49902a1aa49a8c8..74bdbd3caea5ef63f8fdbd1d370daa151bc62153 100644
--- a/webkit/glue/dom_operations.h
+++ b/webkit/glue/dom_operations.h
@@ -10,6 +10,7 @@
#include "gfx/size.h"
#include "googleurl/src/gurl.h"
+#include "third_party/skia/include/core/SkBitmap.h"
namespace WebKit {
class WebDocument;
@@ -71,23 +72,32 @@ struct WebApplicationInfo {
GURL url;
int width;
int height;
+ SkBitmap data;
};
- // Title of the application. This is set from the meta tag whose name is
- // 'application-name'.
+ // URL to a manifest that defines the application. If specified, all other
+ // attributes are derived from this manifest, and the manifest is the unique
+ // ID of the application.
+ GURL manifest_url;
+
+ // Title of the application.
string16 title;
- // Description of the application. This is set from the meta tag whose name
- // is 'description'.
+ // Description of the application.
string16 description;
- // URL for the app. This is set from the meta tag whose name is
- // 'application-url'.
+ // The launch URL for the app.
GURL app_url;
- // Set of available icons. This is set for all link tags whose rel=icon. Only
- // icons that have a non-zero (width and/or height) are added.
+ // Set of available icons.
std::vector<IconInfo> icons;
+
+ // The permissions the app requests. Only supported with manifest-based apps.
+ std::vector<std::string> permissions;
+
+ // Set of URLs that comprise the app. Only supported with manifest-based apps.
+ // All these must be of the same origin as manifest_url.
+ std::vector<GURL> urls;
};
// Parses the icon's size attribute as defined in the HTML 5 spec. Returns true
« no previous file with comments | « chrome/common/extensions/extension_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698