OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 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. | |
4 | |
5 #ifndef CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_ | |
6 #define CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_ | |
7 | |
8 #include "chrome/browser/banners/app_banner_debug_log.h" | |
9 | |
10 namespace content { | |
11 struct Manifest; | |
12 } | |
13 | |
14 namespace banners { | |
15 namespace webapp_manifest_validator { | |
16 | |
17 // Returns whether a page with |manifest| can be launched as a fullscreen web | |
18 // app. If |manifest| prevents the page from launching as a fullscreen web app, | |
19 // sets |code| to the reason why. | |
20 bool IsWebappCapable(const content::Manifest& manifest, | |
21 OutputDeveloperMessageCode* code); | |
22 | |
23 // Returns true if a page with |manifest| will make a good fullscreen web app. | |
24 // If not, sets |code| as to why. | |
pkotwicz
2016/06/09 01:39:38
I am not sold on this function name. Do you have a
| |
25 bool IsManifestGoodForWebapp(const content::Manifest& manifest, | |
26 OutputDeveloperMessageCode* code); | |
27 | |
28 } // namespace webapp_manifest_validator | |
29 } // namespace banners | |
30 | |
31 #endif // CHROME_BROWSER_BANNERS_WEBAPP_MANIFEST_VALIDATOR_H_ | |
OLD | NEW |