#include "ui/events/base_event_utils.h"
#include "base/atomic_sequence_num.h"
#include "base/check_op.h"
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/events/event_constants.h"
#include "ui/events/event_switches.h"
namespace ui {
namespace {
#if BUILDFLAG(IS_CHROMEOS_ASH)
const int kSystemKeyModifierMask = EF_ALT_DOWN | EF_COMMAND_DOWN;
#elif BUILDFLAG(IS_APPLE)
const int kSystemKeyModifierMask = EF_COMMAND_DOWN;
#else
const int kSystemKeyModifierMask = …;
#endif
}
base::AtomicSequenceNumber g_next_event_id;
uint32_t GetNextTouchEventId() { … }
bool IsSystemKeyModifier(int flags) { … }
base::LazyInstance<const base::TickClock*>::Leaky g_tick_clock = …;
base::TimeTicks EventTimeForNow() { … }
void SetEventTickClockForTesting(const base::TickClock* tick_clock) { … }
double EventTimeStampToSeconds(base::TimeTicks time_stamp) { … }
base::TimeTicks EventTimeStampFromSeconds(double time_stamp_seconds) { … }
bool IsValidTimebase(base::TimeTicks now, base::TimeTicks timestamp) { … }
void ValidateEventTimeClock(base::TimeTicks* timestamp) { … }
}