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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

Issue 10801003: Propagate DPI information to web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewer feedback. Created 8 years, 5 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 | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/pepper_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 77cd55fdc4e10a4b4d8513f9701ef43f13215535..ea212b2c4b9ca91a97f1ab7490119dc1fc530b0c 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -352,10 +352,15 @@ bool ChromotingInstance::HandleInputEvent(const pp::InputEvent& event) {
return input_handler_->HandleInputEvent(event);
}
-void ChromotingInstance::SetDesktopSize(int width, int height) {
+void ChromotingInstance::SetDesktopSize(const SkISize& size,
+ const SkIPoint& dpi) {
scoped_ptr<base::DictionaryValue> data(new base::DictionaryValue());
- data->SetInteger("width", width);
- data->SetInteger("height", height);
+ data->SetInteger("width", size.width());
+ data->SetInteger("height", size.height());
+ if (dpi.x())
+ data->SetInteger("x_dpi", dpi.x());
+ if (dpi.y())
+ data->SetInteger("y_dpi", dpi.y());
PostChromotingMessage("onDesktopSize", data.Pass());
}
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/pepper_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698