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

Side by Side Diff: ui/ozone/public/system_input_injector.h

Issue 2317913003: ui/ozone: Fix some typos. (Closed)
Patch Set: Fix one more typo in Ozone DRM. Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_ 5 #ifndef UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_
6 #define UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_ 6 #define UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 10 matching lines...) Expand all
21 class Event; 21 class Event;
22 22
23 // Interface for converting input into ui::Events and injecting them to the 23 // Interface for converting input into ui::Events and injecting them to the
24 // Ozone platform. 24 // Ozone platform.
25 class OZONE_EXPORT SystemInputInjector { 25 class OZONE_EXPORT SystemInputInjector {
26 public: 26 public:
27 SystemInputInjector() {} 27 SystemInputInjector() {}
28 virtual ~SystemInputInjector() {} 28 virtual ~SystemInputInjector() {}
29 29
30 // Moves the cursor on the screen and generates the corresponding MouseMove or 30 // Moves the cursor on the screen and generates the corresponding MouseMove or
31 // MouseDragged event. |location| is in physical screen co-ordinates, 31 // MouseDragged event. |location| is in physical screen coordinates,
32 // independent of the scale factor and the display rotation settings. 32 // independent of the scale factor and the display rotation settings.
33 virtual void MoveCursorTo(const gfx::PointF& location) = 0; 33 virtual void MoveCursorTo(const gfx::PointF& location) = 0;
34 34
35 // Simulates a mouse button click. |button| must be one of 35 // Simulates a mouse button click. |button| must be one of
36 // EF_LEFT_MOUSE_BUTTON, EF_RIGHT_MOUSE_BUTTON or EF_MIDDLE_MOUSE_BUTTON. 36 // EF_LEFT_MOUSE_BUTTON, EF_RIGHT_MOUSE_BUTTON or EF_MIDDLE_MOUSE_BUTTON.
37 // SystemInputInjector will apply the correct modifiers (shift, ctrl, etc). 37 // SystemInputInjector will apply the correct modifiers (shift, ctrl, etc).
38 virtual void InjectMouseButton(EventFlags button, bool down) = 0; 38 virtual void InjectMouseButton(EventFlags button, bool down) = 0;
39 39
40 // |delta_x| and |delta_y| are in physical pixels independent of the scale 40 // |delta_x| and |delta_y| are in physical pixels independent of the scale
41 // factor. 41 // factor.
42 virtual void InjectMouseWheel(int delta_x, int delta_y) = 0; 42 virtual void InjectMouseWheel(int delta_x, int delta_y) = 0;
43 43
44 // Simulates a key event. SystemInputInjector maps |physical_key| to the 44 // Simulates a key event. SystemInputInjector maps |physical_key| to the
45 // correct logical key based on the current keyboard layout. |down| is true 45 // correct logical key based on the current keyboard layout. |down| is true
46 // for presses. If |suppress_auto_repeat| is set, the platform must not 46 // for presses. If |suppress_auto_repeat| is set, the platform must not
47 // auto-repeat the event. 47 // auto-repeat the event.
48 virtual void InjectKeyEvent(DomCode physical_key, 48 virtual void InjectKeyEvent(DomCode physical_key,
49 bool down, 49 bool down,
50 bool suppress_auto_repeat) = 0; 50 bool suppress_auto_repeat) = 0;
51 51
52 private: 52 private:
53 DISALLOW_COPY_AND_ASSIGN(SystemInputInjector); 53 DISALLOW_COPY_AND_ASSIGN(SystemInputInjector);
54 }; 54 };
55 55
56 } // namespace ui 56 } // namespace ui
57 57
58 #endif // UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_ 58 #endif // UI_OZONE_PUBLIC_SYSTEM_INPUT_INJECTOR_H_
OLDNEW
« ui/ozone/public/ozone_platform.h ('K') | « ui/ozone/public/surface_factory_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698