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

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

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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
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 #ifndef REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_ 5 #ifndef REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_
6 #define REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_ 6 #define REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_
7 7
8 #include <stdint.h>
9
8 #include <set> 10 #include <set>
9 11
10 #include "base/basictypes.h"
11 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/macros.h"
12 #include "remoting/protocol/input_stub.h" 14 #include "remoting/protocol/input_stub.h"
13 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h" 15 #include "third_party/webrtc/modules/desktop_capture/desktop_geometry.h"
14 #include "ui/events/keycodes/dom/dom_code.h" 16 #include "ui/events/keycodes/dom/dom_code.h"
15 17
16 namespace remoting { 18 namespace remoting {
17 namespace protocol { 19 namespace protocol {
18 20
19 // Filtering InputStub which tracks mouse and keyboard input events before 21 // Filtering InputStub which tracks mouse and keyboard input events before
20 // passing them on to |input_stub|, and can dispatch release events to 22 // passing them on to |input_stub|, and can dispatch release events to
21 // |input_stub| for all currently-pressed keys and buttons when necessary. 23 // |input_stub| for all currently-pressed keys and buttons when necessary.
(...skipping 23 matching lines...) Expand all
45 void InjectTextEvent(const TextEvent& event) override; 47 void InjectTextEvent(const TextEvent& event) override;
46 void InjectMouseEvent(const MouseEvent& event) override; 48 void InjectMouseEvent(const MouseEvent& event) override;
47 void InjectTouchEvent(const TouchEvent& event) override; 49 void InjectTouchEvent(const TouchEvent& event) override;
48 50
49 private: 51 private:
50 protocol::InputStub* input_stub_; 52 protocol::InputStub* input_stub_;
51 53
52 std::set<ui::DomCode> pressed_keys_; 54 std::set<ui::DomCode> pressed_keys_;
53 55
54 webrtc::DesktopVector mouse_pos_; 56 webrtc::DesktopVector mouse_pos_;
55 uint32 mouse_button_state_; 57 uint32_t mouse_button_state_;
56 58
57 std::set<uint32> touch_point_ids_; 59 std::set<uint32_t> touch_point_ids_;
58 60
59 DISALLOW_COPY_AND_ASSIGN(InputEventTracker); 61 DISALLOW_COPY_AND_ASSIGN(InputEventTracker);
60 }; 62 };
61 63
62 } // namespace protocol 64 } // namespace protocol
63 } // namespace remoting 65 } // namespace remoting
64 66
65 #endif // REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_ 67 #endif // REMOTING_PROTOCOL_INPUT_EVENT_TRACKER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/ice_transport_unittest.cc ('k') | remoting/protocol/input_event_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698