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

Side by Side Diff: remoting/host/input_injector_chromeos.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac IWYU Created 4 years, 8 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.h ('k') | remoting/host/input_injector_chromeos.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ 5 #ifndef REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
6 #define REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ 6 #define REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "remoting/host/input_injector.h" 10 #include "remoting/host/input_injector.h"
(...skipping 12 matching lines...) Expand all
23 // Clipboard stub interface. 23 // Clipboard stub interface.
24 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; 24 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override;
25 25
26 // InputStub interface. 26 // InputStub interface.
27 void InjectKeyEvent(const protocol::KeyEvent& event) override; 27 void InjectKeyEvent(const protocol::KeyEvent& event) override;
28 void InjectTextEvent(const protocol::TextEvent& event) override; 28 void InjectTextEvent(const protocol::TextEvent& event) override;
29 void InjectMouseEvent(const protocol::MouseEvent& event) override; 29 void InjectMouseEvent(const protocol::MouseEvent& event) override;
30 void InjectTouchEvent(const protocol::TouchEvent& event) override; 30 void InjectTouchEvent(const protocol::TouchEvent& event) override;
31 31
32 // InputInjector interface. 32 // InputInjector interface.
33 void Start(scoped_ptr<protocol::ClipboardStub> client_clipboard) override; 33 void Start(
34 std::unique_ptr<protocol::ClipboardStub> client_clipboard) override;
34 35
35 private: 36 private:
36 class Core; 37 class Core;
37 38
38 // Task runner for input injection. 39 // Task runner for input injection.
39 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_; 40 scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
40 scoped_ptr<Core> core_; 41 std::unique_ptr<Core> core_;
41 42
42 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos); 43 DISALLOW_COPY_AND_ASSIGN(InputInjectorChromeos);
43 }; 44 };
44 45
45 } // namespace remoting 46 } // namespace remoting
46 47
47 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_ 48 #endif // REMOTING_HOST_INPUT_INJECTOR_CHROMEOS_H_
OLDNEW
« no previous file with comments | « remoting/host/input_injector.h ('k') | remoting/host/input_injector_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698