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

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

Issue 9599005: Coverity: Fix a pass-by-value. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | « ui/base/cocoa/events_mac.mm ('k') | ui/base/win/events_win.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_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
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_
OLDNEW
« no previous file with comments | « ui/base/cocoa/events_mac.mm ('k') | ui/base/win/events_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698