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

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

Issue 2094193002: Deflake Mac views_unittest's MenuRunnerCocoaTest.RunMenuAndCancel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | ui/events/base_event_utils.cc » ('j') | ui/events/base_event_utils.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BASE_EVENT_UTILS_H_ 5 #ifndef UI_EVENTS_BASE_EVENT_UTILS_H_
6 #define UI_EVENTS_BASE_EVENT_UTILS_H_ 6 #define UI_EVENTS_BASE_EVENT_UTILS_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 25 matching lines...) Expand all
36 EVENTS_BASE_EXPORT double EventTimeStampToSeconds(base::TimeTicks time_stamp); 36 EVENTS_BASE_EXPORT double EventTimeStampToSeconds(base::TimeTicks time_stamp);
37 37
38 // Converts an event timestamp in seconds to TimeTicks. 38 // Converts an event timestamp in seconds to TimeTicks.
39 // WARNING: This should only be used when interfacing with platform code that 39 // WARNING: This should only be used when interfacing with platform code that
40 // does not use base::Time* types. 40 // does not use base::Time* types.
41 EVENTS_BASE_EXPORT base::TimeTicks EventTimeStampFromSeconds( 41 EVENTS_BASE_EXPORT base::TimeTicks EventTimeStampFromSeconds(
42 double time_stamp_seconds); 42 double time_stamp_seconds);
43 43
44 } // namespace ui 44 } // namespace ui
45 45
46 extern EVENTS_BASE_EXPORT bool g_no_mock_time;
47
46 #endif // UI_EVENTS_BASE_EVENT_UTILS_H_ 48 #endif // UI_EVENTS_BASE_EVENT_UTILS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/base_event_utils.cc » ('j') | ui/events/base_event_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698