OLD | NEW |
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_BASE_EVENTS_H_ | 5 #ifndef UI_BASE_EVENTS_H_ |
6 #define UI_BASE_EVENTS_H_ | 6 #define UI_BASE_EVENTS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/event_types.h" | 9 #include "base/event_types.h" |
10 #include "ui/base/keycodes/keyboard_codes.h" | 10 #include "ui/base/keycodes/keyboard_codes.h" |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // scrolled. |x_offset| and |y_offset| can be NULL. | 164 // scrolled. |x_offset| and |y_offset| can be NULL. |
165 UI_EXPORT bool GetScrollOffsets(const base::NativeEvent& native_event, | 165 UI_EXPORT bool GetScrollOffsets(const base::NativeEvent& native_event, |
166 float* x_offset, | 166 float* x_offset, |
167 float* y_offset); | 167 float* y_offset); |
168 | 168 |
169 UI_EXPORT bool GetGestureTimes(const base::NativeEvent& native_event, | 169 UI_EXPORT bool GetGestureTimes(const base::NativeEvent& native_event, |
170 double* start_time, | 170 double* start_time, |
171 double* end_time); | 171 double* end_time); |
172 | 172 |
173 // Returns true if event is noop. | 173 // Returns true if event is noop. |
174 UI_EXPORT bool IsNoopEvent(base::NativeEvent event); | 174 UI_EXPORT bool IsNoopEvent(const base::NativeEvent& event); |
175 | 175 |
176 // Creates and returns no-op event. | 176 // Creates and returns no-op event. |
177 UI_EXPORT base::NativeEvent CreateNoopEvent(); | 177 UI_EXPORT base::NativeEvent CreateNoopEvent(); |
178 | 178 |
179 } // namespace ui | 179 } // namespace ui |
180 | 180 |
181 #endif // UI_BASE_EVENTS_H_ | 181 #endif // UI_BASE_EVENTS_H_ |
OLD | NEW |