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

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

Issue 134773004: Include external touchscreen vid/pid in UMA hardware profile (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't assume a screen exists - it doesn't in some tests. Created 6 years, 10 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
« no previous file with comments | « chrome/common/metrics/proto/system_profile.proto ('k') | ui/events/event_utils.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 (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"
11 #include "ui/gfx/display.h"
11 #include "ui/gfx/native_widget_types.h" 12 #include "ui/gfx/native_widget_types.h"
12 #include "ui/events/events_export.h" 13 #include "ui/events/events_export.h"
13 14
14 #if defined(OS_WIN) 15 #if defined(OS_WIN)
15 #include <windows.h> 16 #include <windows.h>
16 #endif 17 #endif
17 18
18 namespace gfx { 19 namespace gfx {
19 class Point; 20 class Point;
20 class Vector2d; 21 class Vector2d;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 125
125 // Enable/disable natural scrolling for touchpads. 126 // Enable/disable natural scrolling for touchpads.
126 EVENTS_EXPORT void SetNaturalScroll(bool enabled); 127 EVENTS_EXPORT void SetNaturalScroll(bool enabled);
127 128
128 // In natural scrolling enabled for touchpads? 129 // In natural scrolling enabled for touchpads?
129 EVENTS_EXPORT bool IsNaturalScrollEnabled(); 130 EVENTS_EXPORT bool IsNaturalScrollEnabled();
130 131
131 // Returns whether natural scrolling should be used for touchpad. 132 // Returns whether natural scrolling should be used for touchpad.
132 EVENTS_EXPORT bool ShouldDefaultToNaturalScroll(); 133 EVENTS_EXPORT bool ShouldDefaultToNaturalScroll();
133 134
135 // Returns whether or not the internal display produces touch events.
136 EVENTS_EXPORT gfx::Display::TouchSupport GetInternalDisplayTouchSupport();
137
134 // Was this event generated by a touchpad device? 138 // Was this event generated by a touchpad device?
135 // The caller is responsible for ensuring that this is a mouse/touchpad event 139 // The caller is responsible for ensuring that this is a mouse/touchpad event
136 // before calling this function. 140 // before calling this function.
137 EVENTS_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event); 141 EVENTS_EXPORT bool IsTouchpadEvent(const base::NativeEvent& event);
138 142
139 // Returns true if event is noop. 143 // Returns true if event is noop.
140 EVENTS_EXPORT bool IsNoopEvent(const base::NativeEvent& event); 144 EVENTS_EXPORT bool IsNoopEvent(const base::NativeEvent& event);
141 145
142 // Creates and returns no-op event. 146 // Creates and returns no-op event.
143 EVENTS_EXPORT base::NativeEvent CreateNoopEvent(); 147 EVENTS_EXPORT base::NativeEvent CreateNoopEvent();
(...skipping 11 matching lines...) Expand all
155 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam); 159 EVENTS_EXPORT uint16 GetScanCodeFromLParam(LPARAM lParam);
156 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code); 160 EVENTS_EXPORT LPARAM GetLParamFromScanCode(uint16 scan_code);
157 #endif 161 #endif
158 162
159 // Registers a custom event type. 163 // Registers a custom event type.
160 EVENTS_EXPORT int RegisterCustomEventType(); 164 EVENTS_EXPORT int RegisterCustomEventType();
161 165
162 } // namespace ui 166 } // namespace ui
163 167
164 #endif // UI_EVENTS_EVENT_UTILS_H_ 168 #endif // UI_EVENTS_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/common/metrics/proto/system_profile.proto ('k') | ui/events/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698