OLD | NEW |
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/client/plugin/pepper_input_handler.h" | 5 #include "remoting/client/plugin/pepper_input_handler.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "ppapi/cpp/image_data.h" | 8 #include "ppapi/cpp/image_data.h" |
9 #include "ppapi/cpp/input_event.h" | 9 #include "ppapi/cpp/input_event.h" |
10 #include "ppapi/cpp/module_impl.h" | 10 #include "ppapi/cpp/module_impl.h" |
11 #include "ppapi/cpp/mouse_cursor.h" | 11 #include "ppapi/cpp/mouse_cursor.h" |
12 #include "ppapi/cpp/point.h" | 12 #include "ppapi/cpp/point.h" |
13 #include "ppapi/cpp/touch_point.h" | 13 #include "ppapi/cpp/touch_point.h" |
14 #include "ppapi/cpp/var.h" | 14 #include "ppapi/cpp/var.h" |
15 #include "remoting/proto/event.pb.h" | 15 #include "remoting/proto/event.pb.h" |
16 #include "remoting/protocol/input_event_tracker.h" | 16 #include "remoting/protocol/input_event_tracker.h" |
17 #include "remoting/protocol/input_stub.h" | 17 #include "remoting/protocol/input_stub.h" |
18 #include "ui/events/keycodes/dom4/keycode_converter.h" | 18 #include "ui/events/keycodes/dom/keycode_converter.h" |
19 | 19 |
20 namespace remoting { | 20 namespace remoting { |
21 | 21 |
22 namespace { | 22 namespace { |
23 | 23 |
24 void SetTouchEventType(PP_InputEvent_Type pp_type, | 24 void SetTouchEventType(PP_InputEvent_Type pp_type, |
25 protocol::TouchEvent* touch_event) { | 25 protocol::TouchEvent* touch_event) { |
26 DCHECK(touch_event); | 26 DCHECK(touch_event); |
27 switch (pp_type) { | 27 switch (pp_type) { |
28 case PP_INPUTEVENT_TYPE_TOUCHSTART: | 28 case PP_INPUTEVENT_TYPE_TOUCHSTART: |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 input_tracker_->ReleaseAllIfModifiersStuck( | 284 input_tracker_->ReleaseAllIfModifiersStuck( |
285 (modifiers & PP_INPUTEVENT_MODIFIER_ALTKEY) != 0, | 285 (modifiers & PP_INPUTEVENT_MODIFIER_ALTKEY) != 0, |
286 (modifiers & PP_INPUTEVENT_MODIFIER_CONTROLKEY) != 0, | 286 (modifiers & PP_INPUTEVENT_MODIFIER_CONTROLKEY) != 0, |
287 (modifiers & PP_INPUTEVENT_MODIFIER_METAKEY) != 0, | 287 (modifiers & PP_INPUTEVENT_MODIFIER_METAKEY) != 0, |
288 (modifiers & PP_INPUTEVENT_MODIFIER_SHIFTKEY) != 0); | 288 (modifiers & PP_INPUTEVENT_MODIFIER_SHIFTKEY) != 0); |
289 } | 289 } |
290 } | 290 } |
291 } | 291 } |
292 | 292 |
293 } // namespace remoting | 293 } // namespace remoting |
OLD | NEW |