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

Side by Side Diff: services/ui/public/cpp/input_devices/input_device_client.h

Issue 2162653002: Switch input_devices mojom to use_new_wrapper_types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « no previous file | services/ui/public/cpp/input_devices/input_device_client.cc » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_
6 #define SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ 6 #define SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 bool AreDeviceListsComplete() const override; 44 bool AreDeviceListsComplete() const override;
45 bool AreTouchscreensEnabled() const override; 45 bool AreTouchscreensEnabled() const override;
46 46
47 void AddObserver(ui::InputDeviceEventObserver* observer) override; 47 void AddObserver(ui::InputDeviceEventObserver* observer) override;
48 void RemoveObserver(ui::InputDeviceEventObserver* observer) override; 48 void RemoveObserver(ui::InputDeviceEventObserver* observer) override;
49 49
50 private: 50 private:
51 // mojom::InputDeviceObserverMojo: 51 // mojom::InputDeviceObserverMojo:
52 void OnKeyboardDeviceConfigurationChanged( 52 void OnKeyboardDeviceConfigurationChanged(
53 mojo::Array<ui::InputDevice> devices) override; 53 const std::vector<ui::InputDevice>& devices) override;
54 void OnTouchscreenDeviceConfigurationChanged( 54 void OnTouchscreenDeviceConfigurationChanged(
55 mojo::Array<ui::TouchscreenDevice> devices) override; 55 const std::vector<ui::TouchscreenDevice>& devices) override;
56 void OnMouseDeviceConfigurationChanged( 56 void OnMouseDeviceConfigurationChanged(
57 mojo::Array<ui::InputDevice> devices) override; 57 const std::vector<ui::InputDevice>& devices) override;
58 void OnTouchpadDeviceConfigurationChanged( 58 void OnTouchpadDeviceConfigurationChanged(
59 mojo::Array<ui::InputDevice> devices) override; 59 const std::vector<ui::InputDevice>& devices) override;
60 void OnDeviceListsComplete( 60 void OnDeviceListsComplete(
61 mojo::Array<ui::InputDevice> keyboard_devices, 61 const std::vector<ui::InputDevice>& keyboard_devices,
62 mojo::Array<ui::TouchscreenDevice> touchscreen_devices, 62 const std::vector<ui::TouchscreenDevice>& touchscreen_devices,
63 mojo::Array<ui::InputDevice> mouse_devices, 63 const std::vector<ui::InputDevice>& mouse_devices,
64 mojo::Array<ui::InputDevice> touchpad_devices) override; 64 const std::vector<ui::InputDevice>& touchpad_devices) override;
65 65
66 mojo::Binding<mojom::InputDeviceObserverMojo> binding_; 66 mojo::Binding<mojom::InputDeviceObserverMojo> binding_;
67 67
68 // Holds the list of input devices and signal that we have received the lists 68 // Holds the list of input devices and signal that we have received the lists
69 // after initialization. 69 // after initialization.
70 std::vector<ui::InputDevice> keyboard_devices_; 70 std::vector<ui::InputDevice> keyboard_devices_;
71 std::vector<ui::TouchscreenDevice> touchscreen_devices_; 71 std::vector<ui::TouchscreenDevice> touchscreen_devices_;
72 std::vector<ui::InputDevice> mouse_devices_; 72 std::vector<ui::InputDevice> mouse_devices_;
73 std::vector<ui::InputDevice> touchpad_devices_; 73 std::vector<ui::InputDevice> touchpad_devices_;
74 bool device_lists_complete_ = false; 74 bool device_lists_complete_ = false;
75 75
76 // List of in-process observers. 76 // List of in-process observers.
77 base::ObserverList<ui::InputDeviceEventObserver> observers_; 77 base::ObserverList<ui::InputDeviceEventObserver> observers_;
78 78
79 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient); 79 DISALLOW_COPY_AND_ASSIGN(InputDeviceClient);
80 }; 80 };
81 81
82 } // namespace ui 82 } // namespace ui
83 83
84 #endif // SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_ 84 #endif // SERVICES_UI_PUBLIC_CPP_INPUT_DEVICES_INPUT_DEVICE_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/public/cpp/input_devices/input_device_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698