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

Side by Side Diff: remoting/host/event_executor_win.cc

Issue 3305001: Move decoder into separate thread, clean up API layering, and redo update protocl (Closed)
Patch Set: Fix compile error. Created 10 years, 2 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 unified diff | Download patch
« no previous file with comments | « remoting/host/client_connection.cc ('k') | remoting/host/session_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/event_executor_win.h" 5 #include "remoting/host/event_executor_win.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 #include "app/keyboard_codes.h" 8 #include "app/keyboard_codes.h"
9 #include "base/stl_util-inl.h" 9 #include "base/stl_util-inl.h"
10 #include "remoting/host/capturer.h" 10 #include "remoting/host/capturer.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 EventExecutorWin::EventExecutorWin(Capturer* capturer) 351 EventExecutorWin::EventExecutorWin(Capturer* capturer)
352 : EventExecutor(capturer) { 352 : EventExecutor(capturer) {
353 } 353 }
354 354
355 EventExecutorWin::~EventExecutorWin() { 355 EventExecutorWin::~EventExecutorWin() {
356 } 356 }
357 357
358 void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) { 358 void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) {
359 for (size_t i = 0; i < messages->size(); ++i) { 359 for (ClientMessageList::iterator it = messages->begin();
360 ChromotingClientMessage* msg = (*messages)[i]; 360 it != messages->end();
361 ++it) {
362 ChromotingClientMessage* msg = *it;
361 if (msg->has_mouse_set_position_event()) { 363 if (msg->has_mouse_set_position_event()) {
362 HandleMouseSetPosition(msg); 364 HandleMouseSetPosition(msg);
363 } else if (msg->has_mouse_move_event()) { 365 } else if (msg->has_mouse_move_event()) {
364 HandleMouseMove(msg); 366 HandleMouseMove(msg);
365 } else if (msg->has_mouse_wheel_event()) { 367 } else if (msg->has_mouse_wheel_event()) {
366 HandleMouseWheel(msg); 368 HandleMouseWheel(msg);
367 } else if (msg->has_mouse_down_event()) { 369 } else if (msg->has_mouse_down_event()) {
368 HandleMouseButtonDown(msg); 370 HandleMouseButtonDown(msg);
369 } else if (msg->has_mouse_up_event()) { 371 } else if (msg->has_mouse_up_event()) {
370 HandleMouseButtonUp(msg); 372 HandleMouseButtonUp(msg);
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 input.ki.wScan = msg->key_event().key(); 485 input.ki.wScan = msg->key_event().key();
484 input.ki.dwFlags = KEYEVENTF_UNICODE; 486 input.ki.dwFlags = KEYEVENTF_UNICODE;
485 if (!msg->key_event().pressed()) { 487 if (!msg->key_event().pressed()) {
486 input.ki.dwFlags |= KEYEVENTF_KEYUP; 488 input.ki.dwFlags |= KEYEVENTF_KEYUP;
487 } 489 }
488 490
489 SendInput(1, &input, sizeof(INPUT)); 491 SendInput(1, &input, sizeof(INPUT));
490 } 492 }
491 493
492 } // namespace remoting 494 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/client_connection.cc ('k') | remoting/host/session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698