diff options
author | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 11:51:08 +0000 |
---|---|---|
committer | simonmorris@chromium.org <simonmorris@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-10 11:51:08 +0000 |
commit | 467aca55f38b251b636f638d61408d420d570c11 (patch) | |
tree | fda9063580b467a4a21fd8f1a1bd317991ce1a0b /remoting/host/event_executor_mac.cc | |
parent | ab0fb9834c6f3b3ee9d86a8c5a6ba3a5b69b2ac8 (diff) | |
download | chromium_src-467aca55f38b251b636f638d61408d420d570c11.zip chromium_src-467aca55f38b251b636f638d61408d420d570c11.tar.gz chromium_src-467aca55f38b251b636f638d61408d420d570c11.tar.bz2 |
Tidy up after CL 6573005.
Replace width/height pairs with gfx::Size objects.
Avoid overloading Capturer::InvalidateFullScreen.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6635039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77625 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/event_executor_mac.cc')
-rw-r--r-- | remoting/host/event_executor_mac.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/host/event_executor_mac.cc b/remoting/host/event_executor_mac.cc index e28157a..12c0ce5 100644 --- a/remoting/host/event_executor_mac.cc +++ b/remoting/host/event_executor_mac.cc @@ -238,10 +238,9 @@ void EventExecutorMac::InjectMouseEvent(const MouseEvent* event, Task* done) { // TODO(wez): This code assumes that MouseEvent(0,0) (top-left of client view) // corresponds to local (0,0) (top-left of primary monitor). That won't in // general be true on multi-monitor systems, though. - int width = capturer_->width_most_recent(); - int height = capturer_->height_most_recent(); + gfx::Size size = capturer_->size_most_recent(); if (event->x() >= 0 || event->y() >= 0 || - event->x() < width || event->y() < height) { + event->x() < size.width() || event->y() < size.height()) { VLOG(3) << "Moving mouse to " << event->x() << "," << event->y(); |