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

Side by Side Diff: remoting/protocol/input_filter.cc

Issue 9646013: Add the plumbing that will carry a clipboard item from a chromoting client to a host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync, and make InputStub inherit from ClipboardStub. Created 8 years, 9 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 | Annotate | Revision Log
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/protocol/input_filter.h" 5 #include "remoting/protocol/input_filter.h"
6 6
7 namespace remoting { 7 namespace remoting {
8 namespace protocol { 8 namespace protocol {
9 9
10 InputFilter::InputFilter() : input_stub_(NULL) { 10 InputFilter::InputFilter() : input_stub_(NULL) {
11 } 11 }
12 12
13 InputFilter::~InputFilter() { 13 InputFilter::~InputFilter() {
14 } 14 }
15 15
16 void InputFilter::InjectClipboardEvent(const ClipboardEvent& event) {
17 if (input_stub_ != NULL)
18 input_stub_->InjectClipboardEvent(event);
19 }
20
16 void InputFilter::InjectKeyEvent(const KeyEvent& event) { 21 void InputFilter::InjectKeyEvent(const KeyEvent& event) {
17 if (input_stub_ != NULL) 22 if (input_stub_ != NULL)
18 input_stub_->InjectKeyEvent(event); 23 input_stub_->InjectKeyEvent(event);
19 } 24 }
20 25
21 void InputFilter::InjectMouseEvent(const MouseEvent& event) { 26 void InputFilter::InjectMouseEvent(const MouseEvent& event) {
22 if (input_stub_ != NULL) 27 if (input_stub_ != NULL)
23 input_stub_->InjectMouseEvent(event); 28 input_stub_->InjectMouseEvent(event);
24 } 29 }
25 30
26 } // namespace protocol 31 } // namespace protocol
27 } // namespace remoting 32 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698