Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / chrome / renderer / web_apps.h
blob80a1180a42bb17ee0d14b4df3e803d202cd35fef
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
3 // found in the LICENSE file.
5 #ifndef CHROME_RENDERER_WEB_APPS_H_
6 #define CHROME_RENDERER_WEB_APPS_H_
8 #include <string>
9 #include <vector>
11 #include "base/strings/string16.h"
12 #include "ui/gfx/geometry/size.h"
14 namespace blink {
15 class WebFrame;
18 struct WebApplicationInfo;
20 namespace web_apps {
22 // Parses the icon's size attribute as defined in the HTML 5 spec. Returns true
23 // on success, false on errors. On success either all the sizes specified in
24 // the attribute are added to sizes, or is_any is set to true.
26 // You shouldn't have a need to invoke this directly, it's public for testing.
27 bool ParseIconSizes(const base::string16& text, std::vector<gfx::Size>* sizes,
28 bool* is_any);
30 // Parses |app_info| information out of the document in WebFrame. Note that the
31 // document may contain no web application information, in which case |app_info|
32 // is unchanged.
33 void ParseWebAppFromWebDocument(blink::WebFrame* frame,
34 WebApplicationInfo* app_info);
36 } // namespace web_apps
38 #endif // CHROME_RENDERER_WEB_APPS_H_