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

Side by Side Diff: trunk/src/ui/events/event_utils.h

Issue 135763002: Revert 244210 "Include external touchscreen vid/pid in UMA hardw..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 #ifndef UI_EVENTS_EVENT_UTILS_H_ 5 #ifndef UI_EVENTS_EVENT_UTILS_H_
6 #define UI_EVENTS_EVENT_UTILS_H_ 6 #define UI_EVENTS_EVENT_UTILS_H_
7 7
8 #include "base/event_types.h" 8 #include "base/event_types.h"
9 #include "ui/events/event_constants.h" 9 #include "ui/events/event_constants.h"
10 #include "ui/events/keycodes/keyboard_codes.h" 10 #include "ui/events/keycodes/keyboard_codes.h"
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 // Enable/disable natural scrolling for touchpads. 127 // Enable/disable natural scrolling for touchpads.
128 EVENTS_EXPORT void SetNaturalScroll(bool enabled); 128 EVENTS_EXPORT void SetNaturalScroll(bool enabled);
129 129
130 // In natural scrolling enabled for touchpads? 130 // In natural scrolling enabled for touchpads?
131 EVENTS_EXPORT bool IsNaturalScrollEnabled(); 131 EVENTS_EXPORT bool IsNaturalScrollEnabled();
132 132
133 // Returns whether natural scrolling should be used for touchpad. 133 // Returns whether natural scrolling should be used for touchpad.
134 EVENTS_EXPORT bool ShouldDefaultToNaturalScroll(); 134 EVENTS_EXPORT bool ShouldDefaultToNaturalScroll();
135 135
136 // Returns whether or not the internal display produces touch events.
137 EVENTS_EXPORT bool InternalDisplaySupportsTouch();
138
139 // Was this event generated by a touchpad device? 136 // Was this event generated by a touchpad device?
140 // The caller is responsible for ensuring that this is a mouse/touchpad event 137 // The caller is responsible for ensuring that this is a mouse/touchpad event
141 // before calling this function. 138 // before calling this function.
142 EVENTS_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); 139 EVENTS_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event);
143 140
144 // Returns true if event is noop. 141 // Returns true if event is noop.
145 EVENTS_EXPORT bool IsNoopEvent(const base::NativeEvent& event); 142 EVENTS_EXPORT bool IsNoopEvent(const base::NativeEvent& event);
146 143
147 // Creates and returns no-op event. 144 // Creates and returns no-op event.
148 EVENTS_EXPORT base::NativeEvent CreateNoopEvent(); 145 EVENTS_EXPORT base::NativeEvent CreateNoopEvent();
(...skipping 11 matching lines...) Expand all
160 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam); 157 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam);
161 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code); 158 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code);
162 #endif 159 #endif
163 160
164 // Registers a custom event type. 161 // Registers a custom event type.
165 EVENTS_EXPORT int RegisterCustomEventType(); 162 EVENTS_EXPORT int RegisterCustomEventType();
166 163
167 } // namespace ui 164 } // namespace ui
168 165
169 #endif // UI_EVENTS_EVENT_UTILS_H_ 166 #endif // UI_EVENTS_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/common/metrics/proto/system_profile.proto ('k') | trunk/src/ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698