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

Unified Diff: chrome/service/cloud_print/cdd_conversion_win.cc

Issue 163393005: Set orientation capability. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cdd_conversion_win.cc
diff --git a/chrome/service/cloud_print/cdd_conversion_win.cc b/chrome/service/cloud_print/cdd_conversion_win.cc
index f1e8ffd5329c1382edb73387230fc4b9d00ab7d8..4965309a348808018c30a649667afd8fad769b53 100644
--- a/chrome/service/cloud_print/cdd_conversion_win.cc
+++ b/chrome/service/cloud_print/cdd_conversion_win.cc
@@ -225,6 +225,13 @@ std::string CapabilitiesToCdd(
NOTREACHED();
}
}
+
+ OrientationCapability orientation;
+ orientation.AddDefaultOption(PORTRAIT, true);
+ orientation.AddOption(LANDSCAPE);
+ orientation.AddOption(AUTO_ORIENTATION);
+ orientation.SaveTo(&description);
+
return description.ToString();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698