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

Side by Side Diff: remoting/client/plugin/pepper_input_handler.cc

Issue 1136503003: Consolidate ui/events/keycodes/dom[34]/ into .../dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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/client/plugin/BUILD.gn ('k') | remoting/host/BUILD.gn » ('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 (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
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
OLDNEW
« no previous file with comments | « remoting/client/plugin/BUILD.gn ('k') | remoting/host/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698