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

Side by Side Diff: chrome/browser/android/webapk/webapk_info.h

Issue 2714633003: Adds more metadata to the about:webapks page (Closed)
Patch Set: Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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_ANDROID_WEBAPK_WEBAPK_INFO_H_ 5 #ifndef CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INFO_H_
6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INFO_H_ 6 #define CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INFO_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/public/common/manifest.h"
pkotwicz 2017/02/27 20:50:58 Why this include? Do you need to include third_pa
12 #include "third_party/WebKit/public/platform/modules/screen_orientation/WebScree nOrientationLockType.h"
11 13
12 // Structure with information about a WebAPK. 14 // Structure with information about a WebAPK.
13 // 15 //
14 // This class is passed around in a std::vector to generate the chrome://webapks 16 // This class is passed around in a std::vector to generate the chrome://webapks
15 // page. To reduce copying overhead, this class is move-only, and 17 // page. To reduce copying overhead, this class is move-only, and
16 // move-constructs its string arguments (which are copied from Java to C++ into 18 // move-constructs its string arguments (which are copied from Java to C++ into
17 // a temporary prior to construction). 19 // a temporary prior to construction).
18 struct WebApkInfo { 20 struct WebApkInfo {
19 WebApkInfo(std::string short_name, 21 WebApkInfo(std::string name,
22 std::string short_name,
20 std::string package_name, 23 std::string package_name,
21 int shell_apk_version, 24 int shell_apk_version,
22 int version_code); 25 int version_code,
26 std::string uri,
27 std::string scope,
28 std::string manifest_url,
29 std::string manifest_start_url,
30 blink::WebDisplayMode display,
31 blink::WebScreenOrientationLockType orientation,
32 int64_t theme_color,
33 int64_t background_color);
23 ~WebApkInfo(); 34 ~WebApkInfo();
24 35
25 WebApkInfo& operator=(WebApkInfo&& other) = default; 36 WebApkInfo& operator=(WebApkInfo&& other) = default;
26 WebApkInfo(WebApkInfo&& other) = default; 37 WebApkInfo(WebApkInfo&& other) = default;
27 38
28 // Short name of the WebAPK. 39 // Short name of the WebAPK.
40 std::string name;
41
42 // Short name of the WebAPK.
29 std::string short_name; 43 std::string short_name;
30 44
31 // Package name of the WebAPK. 45 // Package name of the WebAPK.
32 std::string package_name; 46 std::string package_name;
33 47
34 // Shell APK version of the WebAPK. 48 // Shell APK version of the WebAPK.
35 int shell_apk_version; 49 int shell_apk_version;
36 50
37 // Version code of the WebAPK. 51 // Version code of the WebAPK.
38 int version_code; 52 int version_code;
39 53
pkotwicz 2017/02/27 20:50:58 Can you please add comments for each member variab
54 std::string uri;
55 std::string scope;
56 std::string manifest_url;
57 std::string manifest_start_url;
58 blink::WebDisplayMode display;
59 blink::WebScreenOrientationLockType orientation;
60 int64_t theme_color;
61 int64_t background_color;
62
40 private: 63 private:
41 DISALLOW_COPY_AND_ASSIGN(WebApkInfo); 64 DISALLOW_COPY_AND_ASSIGN(WebApkInfo);
42 }; 65 };
43 66
44 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INFO_H_ 67 #endif // CHROME_BROWSER_ANDROID_WEBAPK_WEBAPK_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698