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

Side by Side Diff: chrome/browser/banners/app_banner_debug_log.h

Issue 1148163003: Allow only responsive websites to install as a web app on mobile. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Preventing unintended method hiding Created 5 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_ 5 #ifndef CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_
6 #define CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_ 6 #define CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 namespace content { 10 namespace content {
11 class WebContents; 11 class WebContents;
12 } // namespace content 12 } // namespace content
13 13
14 namespace banners { 14 namespace banners {
15 15
16 // Error message strings used to notify developers via the console. 16 // Error message strings used to notify developers via the console.
17 extern const char kRendererRequestCancel[]; 17 extern const char kRendererRequestCancel[];
18 extern const char kManifestEmpty[]; 18 extern const char kManifestEmpty[];
19 extern const char kCannotDetermineBestIcon[]; 19 extern const char kCannotDetermineBestIcon[];
20 extern const char kNoMatchingServiceWorker[]; 20 extern const char kNoMatchingServiceWorker[];
21 extern const char kNoIconAvailable[]; 21 extern const char kNoIconAvailable[];
22 extern const char kBannerAlreadyAdded[]; 22 extern const char kBannerAlreadyAdded[];
23 extern const char kUserNavigatedBeforeBannerShown[]; 23 extern const char kUserNavigatedBeforeBannerShown[];
24 extern const char kStartURLNotValid[]; 24 extern const char kStartURLNotValid[];
25 extern const char kManifestMissingNameOrShortName[]; 25 extern const char kManifestMissingNameOrShortName[];
26 extern const char kManifestMissingSuitableIcon[]; 26 extern const char kManifestMissingSuitableIcon[];
27 extern const char kNotServedFromSecureOrigin[]; 27 extern const char kNotServedFromSecureOrigin[];
28 extern const char kIgnoredNotSupportedOnAndroid[]; 28 extern const char kIgnoredNotSupportedOnAndroid[];
29 extern const char kIgnoredNoId[]; 29 extern const char kIgnoredNoId[];
30 extern const char kAddMetaViewportTag[];
31 extern const char kValidMetaViewportTagNotFound[];
32 extern const char kMetaViewportTagContentsTooLong[];
33 extern const char kMetaViewportTagNotResponsive[];
30 34
31 // Logs a message to the main console if a banner could not be shown 35 // Logs a message to the main console if a banner could not be shown
32 // and the engagement checks have been bypassed. 36 // and the engagement checks have been bypassed.
33 void OutputDeveloperNotShownMessage(content::WebContents* web_contents, 37 void OutputDeveloperNotShownMessage(content::WebContents* web_contents,
34 const std::string& message); 38 const std::string& message);
35 39
40 // Logs a message to the main console if a banner could not be shown due to a
41 // missing or incorrect meta viewport tag on mobile
42 // and the engagement checks have been bypassed.
43 void OutputDeveloperMetaViewportErrorMessage(content::WebContents* web_contents,
44 const std::string& message);
45
36 // Logs a debugging message to the main console if the engagement checks have 46 // Logs a debugging message to the main console if the engagement checks have
37 // been bypassed. 47 // been bypassed.
38 void OutputDeveloperDebugMessage(content::WebContents* web_contents, 48 void OutputDeveloperDebugMessage(content::WebContents* web_contents,
39 const std::string& message); 49 const std::string& message);
40 50
41 } // namespace banners 51 } // namespace banners
42 52
43 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_ 53 #endif // CHROME_BROWSER_BANNERS_APP_BANNER_DEBUG_LOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698