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

Unified Diff: remoting/client/chromoting_view.cc

Issue 3175028: Add mouse event support to Chromoting client (Pepper and X11). (Closed)
Patch Set: Remove win float/int conversion Created 10 years, 4 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/chromoting_view.h ('k') | remoting/client/host_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_view.cc
diff --git a/remoting/client/chromoting_view.cc b/remoting/client/chromoting_view.cc
index f985669a33b2ef5f33f8ace38cb7b921280084c0..95d2dfafb5bff9070caa58d68b8c6982699a0335 100644
--- a/remoting/client/chromoting_view.cc
+++ b/remoting/client/chromoting_view.cc
@@ -14,6 +14,14 @@ ChromotingView::ChromotingView()
frame_height_(0) {
}
+
+// TODO(garykac): This assumes a single screen. This will need to be adjusted
+// to add support for mulitple monitors.
+void ChromotingView::GetScreenSize(int* width, int* height) {
+ *width = frame_width_;
+ *height = frame_height_;
+}
+
bool ChromotingView::SetupDecoder(UpdateStreamEncoding encoding) {
if (encoding == EncodingInvalid) {
LOG(ERROR) << "Cannot create encoder for EncodingInvalid";
« no previous file with comments | « remoting/client/chromoting_view.h ('k') | remoting/client/host_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698