diff options
author | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:14:15 +0000 |
---|---|---|
committer | aa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 05:14:15 +0000 |
commit | 1631f7c651fbc7f4460a852126f545afc5513531 (patch) | |
tree | 7176f3052f69c0c0debf48172d533f9acc4c83d3 /webkit/glue/dom_operations.h | |
parent | 42a17153ee389574560b91b185bcec6c4db5b5c3 (diff) | |
download | chromium_src-1631f7c651fbc7f4460a852126f545afc5513531.zip chromium_src-1631f7c651fbc7f4460a852126f545afc5513531.tar.gz chromium_src-1631f7c651fbc7f4460a852126f545afc5513531.tar.bz2 |
Implement web app definition parsing.
This required moving some code from webkit/glue to
chrome/common/web_apps.cc so that it could rely on
chrome/common/json_schema_validator.h.
BUG=49233
TEST=Convered by unit tests.
Review URL: http://codereview.chromium.org/4979003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/dom_operations.h')
-rw-r--r-- | webkit/glue/dom_operations.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/webkit/glue/dom_operations.h b/webkit/glue/dom_operations.h index 951eb0f..924878f 100644 --- a/webkit/glue/dom_operations.h +++ b/webkit/glue/dom_operations.h @@ -8,7 +8,6 @@ #include <string> #include <vector> -#include "gfx/size.h" #include "googleurl/src/gurl.h" namespace WebKit { @@ -54,48 +53,6 @@ bool GetAllSavableResourceLinksForCurrentPage(WebKit::WebView* view, const GURL& page_url, SavableResourcesResult* savable_resources_result, const char** savable_schemes); -// Structure used when installing a web page as an app. Populated via -// GetApplicationInfo. -struct WebApplicationInfo { - WebApplicationInfo(); - ~WebApplicationInfo(); - - struct IconInfo { - GURL url; - int width; - int height; - }; - - // Title of the application. This is set from the meta tag whose name is - // 'application-name'. - string16 title; - - // Description of the application. This is set from the meta tag whose name - // is 'description'. - string16 description; - - // URL for the app. This is set from the meta tag whose name is - // 'application-url'. - 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. - std::vector<IconInfo> icons; -}; - -// Parses the icon's size attribute as defined in the HTML 5 spec. Returns true -// on success, false on errors. On success either all the sizes specified in -// the attribute are added to sizes, or is_any is set to true. -// -// You shouldn't have a need to invoke this directly, it's public for testing. -bool ParseIconSizes(const string16& text, - std::vector<gfx::Size>* sizes, - bool* is_any); - -// Gets the application info for the specified page. See the description of -// WebApplicationInfo for details as to where each field comes from. -void GetApplicationInfo(WebKit::WebView* view, WebApplicationInfo* app_info); - // Invokes pauseAnimationAtTime on the AnimationController associated with the // |view|s main frame. // This is used by test shell. |