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

Side by Side Diff: remoting/protocol/key_event_tracker.h

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_KEY_EVENT_TRACKER_H_
6 #define REMOTING_PROTOCOL_KEY_EVENT_TRACKER_H_
7
8 #include <set>
9
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h"
12 #include "remoting/protocol/input_stub.h"
13
14 namespace remoting {
15
Sergey Ulanov 2011/12/20 00:05:35 remove this empty line
Wez 2011/12/20 07:14:14 Done.
16 namespace protocol {
17
18 class KeyEventTracker : public InputStub {
Sergey Ulanov 2011/12/20 00:05:35 Add comments
Wez 2011/12/20 07:14:14 Done.
19 public:
20 KeyEventTracker(protocol::InputStub* input_stub);
21 virtual ~KeyEventTracker();
22
23 // InputStub interface.
24 virtual void InjectKeyEvent(const KeyEvent& event) OVERRIDE;
25 virtual void InjectMouseEvent(const MouseEvent& event) OVERRIDE;
26
27 // Dispatch release events for all currently-pressed keys to the InputStub.
28 void ReleaseAllKeys();
Sergey Ulanov 2011/12/20 00:05:35 IMHO, it's better to put this before InputStub de
Wez 2011/12/20 07:14:14 Done.
29
30 protected:
Sergey Ulanov 2011/12/20 00:05:35 private?
Wez 2011/12/20 07:14:14 Done.
31 protocol::InputStub* input_stub_;
32
33 std::set<int> pressed_keys_;
34
35 DISALLOW_COPY_AND_ASSIGN(KeyEventTracker);
36 };
37
38 } // namespace protocol
39
Sergey Ulanov 2011/12/20 00:05:35 remove empty line
40 } // namespace remoting
41
42 #endif // REMOTING_PROTOCOL_KEY_EVENT_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698