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

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

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/input_injector_mac.cc ('k') | remoting/host/input_injector_x11.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/input_injector.h" 5 #include "remoting/host/input_injector.h"
6 6
7 #include <windows.h> 7 #include <windows.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
14 #include "base/strings/string16.h" 14 #include "base/strings/string16.h"
15 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "remoting/base/util.h" 16 #include "remoting/base/util.h"
17 #include "remoting/host/clipboard.h" 17 #include "remoting/host/clipboard.h"
18 #include "remoting/host/touch_injector_win.h" 18 #include "remoting/host/touch_injector_win.h"
19 #include "remoting/proto/event.pb.h" 19 #include "remoting/proto/event.pb.h"
20 #include "ui/events/keycodes/dom4/keycode_converter.h" 20 #include "ui/events/keycodes/dom/keycode_converter.h"
21 21
22 namespace remoting { 22 namespace remoting {
23 23
24 namespace { 24 namespace {
25 25
26 // Helper used to call SendInput() API. 26 // Helper used to call SendInput() API.
27 void SendKeyboardInput(uint32_t flags, uint16_t scancode) { 27 void SendKeyboardInput(uint32_t flags, uint16_t scancode) {
28 // Populate a Windows INPUT structure for the event. 28 // Populate a Windows INPUT structure for the event.
29 INPUT input; 29 INPUT input;
30 memset(&input, 0, sizeof(input)); 30 memset(&input, 0, sizeof(input));
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } // namespace 349 } // namespace
350 350
351 scoped_ptr<InputInjector> InputInjector::Create( 351 scoped_ptr<InputInjector> InputInjector::Create(
352 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner, 352 scoped_refptr<base::SingleThreadTaskRunner> main_task_runner,
353 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) { 353 scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner) {
354 return make_scoped_ptr( 354 return make_scoped_ptr(
355 new InputInjectorWin(main_task_runner, ui_task_runner)); 355 new InputInjectorWin(main_task_runner, ui_task_runner));
356 } 356 }
357 357
358 } // namespace remoting 358 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/input_injector_mac.cc ('k') | remoting/host/input_injector_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698