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

Unified Diff: content/public/common/manifest.cc

Issue 576073004: Add support for 'orientation' in Manifest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@manifest_display
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: content/public/common/manifest.cc
diff --git a/content/public/common/manifest.cc b/content/public/common/manifest.cc
index d9fa2b26f25e4ea9780e6ce5e2fe2786a6d3f402..9aeedd419193f20e40313c5e797ac44d83c181da 100644
--- a/content/public/common/manifest.cc
+++ b/content/public/common/manifest.cc
@@ -9,7 +9,8 @@ namespace content {
const size_t Manifest::kMaxIPCStringLength = 4 * 1024;
Manifest::Manifest()
- : display(DISPLAY_MODE_UNSPECIFIED) {
+ : display(DISPLAY_MODE_UNSPECIFIED),
+ orientation(blink::WebScreenOrientationLockDefault) {
}
Manifest::~Manifest() {
@@ -19,7 +20,8 @@ bool Manifest::IsEmpty() const {
return name.is_null() &&
short_name.is_null() &&
start_url.is_empty() &&
- display == DISPLAY_MODE_UNSPECIFIED;
+ display == DISPLAY_MODE_UNSPECIFIED &&
+ orientation == blink::WebScreenOrientationLockDefault;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698