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

Side by Side Diff: remoting/host/input_injector_x11.cc

Issue 1908683002: Replace OS_LEFT/RIGHT with META_LEFT/RIGHT (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 #include "remoting/host/input_injector.h" 5 #include "remoting/host/input_injector.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <X11/extensions/XInput.h> 9 #include <X11/extensions/XInput.h>
10 #include <X11/extensions/XTest.h> 10 #include <X11/extensions/XTest.h>
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 } 92 }
93 } 93 }
94 94
95 return false; 95 return false;
96 } 96 }
97 97
98 bool IsModifierKey(ui::DomCode dom_code) { 98 bool IsModifierKey(ui::DomCode dom_code) {
99 return dom_code == ui::DomCode::CONTROL_LEFT || 99 return dom_code == ui::DomCode::CONTROL_LEFT ||
100 dom_code == ui::DomCode::SHIFT_LEFT || 100 dom_code == ui::DomCode::SHIFT_LEFT ||
101 dom_code == ui::DomCode::ALT_LEFT || 101 dom_code == ui::DomCode::ALT_LEFT ||
102 dom_code == ui::DomCode::OS_LEFT || 102 dom_code == ui::DomCode::META_LEFT ||
103 dom_code == ui::DomCode::CONTROL_RIGHT || 103 dom_code == ui::DomCode::CONTROL_RIGHT ||
104 dom_code == ui::DomCode::SHIFT_RIGHT || 104 dom_code == ui::DomCode::SHIFT_RIGHT ||
105 dom_code == ui::DomCode::ALT_RIGHT || 105 dom_code == ui::DomCode::ALT_RIGHT ||
106 dom_code == ui::DomCode::OS_RIGHT; 106 dom_code == ui::DomCode::META_RIGHT;
107 } 107 }
108 108
109 // Pixel-to-wheel-ticks conversion ratio used by GTK. 109 // Pixel-to-wheel-ticks conversion ratio used by GTK.
110 // From third_party/WebKit/Source/web/gtk/WebInputEventFactory.cpp . 110 // From third_party/WebKit/Source/web/gtk/WebInputEventFactory.cpp .
111 const float kWheelTicksPerPixel = 3.0f / 160.0f; 111 const float kWheelTicksPerPixel = 3.0f / 160.0f;
112 112
113 // A class to generate events on X11. 113 // A class to generate events on X11.
114 class InputInjectorX11 : public InputInjector { 114 class InputInjectorX11 : public InputInjector {
115 public: 115 public:
116 explicit InputInjectorX11( 116 explicit InputInjectorX11(
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after
657 return nullptr; 657 return nullptr;
658 return std::move(injector); 658 return std::move(injector);
659 } 659 }
660 660
661 // static 661 // static
662 bool InputInjector::SupportsTouchEvents() { 662 bool InputInjector::SupportsTouchEvents() {
663 return false; 663 return false;
664 } 664 }
665 665
666 } // namespace remoting 666 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/client/normalizing_input_filter_mac_unittest.cc ('k') | remoting/protocol/input_event_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698