code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/false_touch_finder.h" #include "base/command_line.h" #include "base/memory/ptr_util.h" #include "base/metrics/histogram_macros.h" ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/false_touch_finder.cc
C++
unknown
1,673
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_FALSE_TOUCH_FINDER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_FALSE_TOUCH_FINDER_H_ #include <stddef.h> #include <bitset> #inclu...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/false_touch_finder.h
C++
unknown
2,005
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/false_touch_finder.h" #include <stddef.h> #include <algorithm> #include <memory> #include "base/command_line.h" #include "base/l...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/false_touch_finder_unittest.cc
C++
unknown
5,669
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/heuristic_stylus_palm_detection_filter.h" #include <linux/input.h> #include <ostream> namespace ui { void HeuristicStylusPalmDe...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/heuristic_stylus_palm_detection_filter.cc
C++
unknown
3,678
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_HEURISTIC_STYLUS_PALM_DETECTION_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_HEURISTIC_STYLUS_PALM_DETECTION_FILTER_H_ #incl...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/heuristic_stylus_palm_detection_filter.h
C++
unknown
3,066
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/heuristic_stylus_palm_detection_filter.h" #include <linux/input.h> #include "base/test/gtest_util.h" #include "base/time/time.h" ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/heuristic_stylus_palm_detection_filter_unittest.cc
C++
unknown
7,106
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.h" #include <functional> #include <memory> #include <queue> #include <string> #include <tuple>...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.cc
C++
unknown
23,016
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_H_ #include <b...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.h
C++
unknown
4,305
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h" #include "base/logging.h" namespace ui { NeuralStylusPalmDetectionFilterModelConfig...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.cc
C++
unknown
1,078
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_MODEL_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_MODEL_H_ ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_model.h
C++
unknown
4,798
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter.h" #include <memory> #include <utility> #include <vector> #include "base/memory/raw_ptr.h" #i...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_unittest.cc
C++
unknown
24,355
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h" #include <base/logging.h> #include <algorithm> namespace ui { PalmFilterDeviceInfo C...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.cc
C++
unknown
9,250
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_UTIL_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_DETECTION_FILTER_UTIL_H_ #...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h
C++
unknown
4,230
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util.h" #include <algorithm> #include <cstdint> #include <utility> #include <vector> #include...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_detection_filter_util_unittest.cc
C++
unknown
17,010
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_report_filter.h" #include "base/metrics/histogram_macros.h" namespace ui { NeuralStylusReportFilter::NeuralSt...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_report_filter.cc
C++
unknown
2,275
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_REPORT_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_NEURAL_STYLUS_PALM_REPORT_FILTER_H_ #include <bitset>...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_report_filter.h
C++
unknown
1,940
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/neural_stylus_palm_report_filter.h" #include <memory> #include "base/test/metrics/histogram_tester.h" #include "base/time/time.h"...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/neural_stylus_palm_report_filter_unittest.cc
C++
unknown
6,215
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/open_palm_detection_filter.h" namespace ui { OpenPalmDetectionFilter::OpenPalmDetectionFilter( SharedPalmDetectionFilterState...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/open_palm_detection_filter.cc
C++
unknown
1,067
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_OPEN_PALM_DETECTION_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_OPEN_PALM_DETECTION_FILTER_H_ #include <bitset> #include <v...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/open_palm_detection_filter.h
C++
unknown
1,483
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/open_palm_detection_filter.h" #include <memory> #include "testing/gtest/include/gtest/gtest.h" #include "ui/events/ozone/evdev/to...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/open_palm_detection_filter_unittest.cc
C++
unknown
1,552
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/palm_detection_filter.h" namespace ui { PalmDetectionFilter::PalmDetectionFilter( SharedPalmDetectionFilterState* shared_palm...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_detection_filter.cc
C++
unknown
484
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_DETECTION_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_DETECTION_FILTER_H_ #include <bitset> #include <vector> #i...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_detection_filter.h
C++
unknown
2,068
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/palm_detection_filter_factory.h" #include <memory> #include <utility> #include "base/command_line.h" #include "base/feature_list....
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_detection_filter_factory.cc
C++
unknown
6,227
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_DETECTION_FILTER_FACTORY_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_DETECTION_FILTER_FACTORY_H_ #include <memory> #incl...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_detection_filter_factory.h
C++
unknown
1,916
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/palm_detection_filter_factory.h" #include <linux/input.h> #include "base/command_line.h" #include "base/test/gtest_util.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_detection_filter_factory_unittest.cc
C++
unknown
9,632
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_inference_beta.h" #include <algorithm> #include <cassert> #include <cmath> #inclu...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_inference_beta.cc
C++
unknown
249,702
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_model.h" #include <algorithm> #include <cassert> #include <cmath> #include <cstdi...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_model.cc
C++
unknown
3,750
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_MODEL_ONEDEVICE_TRAIN_PALM_DETECTION_FILTER_MODEL_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_PALM_MODEL_ONEDEVICE_TRAIN_PALM_...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/palm_model/onedevice_train_palm_detection_filter_model.h
C++
unknown
1,669
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_SHARED_PALM_DETECTION_FILTER_STATE_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_SHARED_PALM_DETECTION_FILTER_STATE_H_ #include "bas...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/shared_palm_detection_filter_state.h
C++
unknown
1,244
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_TOUCH_FILTER_H_ #define UI_EVENTS_OZONE_EVDEV_TOUCH_FILTER_TOUCH_FILTER_H_ #include <bitset> #include <vector> #include "base/time/...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/evdev/touch_filter/touch_filter.h
C++
unknown
737
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/events_ozone.h" #include "base/check.h" #include "ui/events/event.h" namespace ui { namespace { bool dispatch_disabled = false; } bool DispatchEven...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/events_ozone.cc
C++
unknown
2,945
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_EVENTS_OZONE_H_ #define UI_EVENTS_OZONE_EVENTS_OZONE_H_ #include <stdint.h> #include "base/functional/callback.h" #include "ui/events/event.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/events_ozone.h
C++
unknown
3,031
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/features.h" namespace ui { BASE_FEATURE(kEnableHeuristicPalmDetectionFilter, "EnableHeuristicPalmDetectionFilter", base::F...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/features.cc
C++
unknown
2,983
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_FEATURES_H_ #define UI_EVENTS_OZONE_FEATURES_H_ #include "base/component_export.h" #include "base/feature_list.h" #include "base/metrics/field_trial_pa...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/features.h
C++
unknown
2,240
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/gamepad/gamepad_event.h" namespace ui { GamepadEvent::GamepadEvent(int device_id, GamepadEventType type, ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/gamepad/gamepad_event.cc
C++
unknown
580
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_EVENT_H_ #define UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_EVENT_H_ #include "base/component_export.h" #include "base/time/time.h" namespace ui ...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/gamepad/gamepad_event.h
C++
unknown
1,121
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_ #define UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_OBSERVER_H_ #include "ui/events/ozone/gamepad/gamepad_event.h" namespace ui { cla...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/gamepad/gamepad_observer.h
C++
unknown
699
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/gamepad/gamepad_provider_ozone.h" #include "base/memory/singleton.h" #include "base/observer_list.h" #include "ui/events/ozone/gamepad/gamepad_observe...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/gamepad/gamepad_provider_ozone.cc
C++
unknown
1,485
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_PROVIDER_OZONE_H_ #define UI_EVENTS_OZONE_GAMEPAD_GAMEPAD_PROVIDER_OZONE_H_ #include <set> #include <vector> #include "base/component_e...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/gamepad/gamepad_provider_ozone.h
C++
unknown
2,300
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/ozone/keyboard/event_auto_repeat_handler.h" #include "base/functional/bind.h" #include "base/task/single_thread_task_runner.h" #include "ui/events/base_eve...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/keyboard/event_auto_repeat_handler.cc
C++
unknown
3,398
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_OZONE_KEYBOARD_EVENT_AUTO_REPEAT_HANDLER_H_ #define UI_EVENTS_OZONE_KEYBOARD_EVENT_AUTO_REPEAT_HANDLER_H_ #include "base/component_export.h" #include "base/f...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/keyboard/event_auto_repeat_handler.h
C++
unknown
2,631
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include <utility> #include "third_party/abseil-cpp/absl/types/optional.h" #include "ui/events/event.h" #include "ui/events/keyboard_hook.h" #include "ui/eve...
Zhao-PengFei35/chromium_src_4
ui/events/ozone/keyboard_hook_ozone.cc
C++
unknown
1,928
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_PLATFORM_EVENT_DISPATCHER_H_ #define UI_EVENTS_PLATFORM_PLATFORM_EVENT_DISPATCHER_H_ #include <stdint.h> #include "ui/events/events_export.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_dispatcher.h
C++
unknown
1,547
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_PLATFORM_EVENT_OBSERVER_H_ #define UI_EVENTS_PLATFORM_PLATFORM_EVENT_OBSERVER_H_ #include "ui/events/events_export.h" #include "ui/events/platform_e...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_observer.h
C++
unknown
938
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/platform_event_source.h" #include <algorithm> #include <ostream> #include "base/observer_list.h" #include "third_party/abseil-cpp/absl/base/attri...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_source.cc
C++
unknown
3,543
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_PLATFORM_EVENT_SOURCE_H_ #define UI_EVENTS_PLATFORM_PLATFORM_EVENT_SOURCE_H_ #include <stdint.h> #include <memory> #include "base/auto_reset.h" #i...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_source.h
C++
unknown
4,799
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/platform_event_source.h" namespace ui { std::unique_ptr<PlatformEventSource> PlatformEventSource::CreateDefault() { return nullptr; } } // na...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_source_stub.cc
C++
unknown
331
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/platform_event_source.h" #include <stddef.h> #include <stdint.h> #include <memory> #include <utility> #include <vector> #include "base/functiona...
Zhao-PengFei35/chromium_src_4
ui/events/platform/platform_event_source_unittest.cc
C++
unknown
23,806
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/scoped_event_dispatcher.h" #include "ui/events/platform/platform_event_source.h" namespace ui { ScopedEventDispatcher::ScopedEventDispatcher( ...
Zhao-PengFei35/chromium_src_4
ui/events/platform/scoped_event_dispatcher.cc
C++
unknown
647
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_SCOPED_EVENT_DISPATCHER_H_ #define UI_EVENTS_PLATFORM_SCOPED_EVENT_DISPATCHER_H_ #include "base/auto_reset.h" #include "base/memory/raw_ptr.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/events/platform/scoped_event_dispatcher.h
C++
unknown
1,517
specific_include_rules = { ".*wayland_event_watcher.cc": [ "+components/crash/core/common/crash_key.h", "+third_party/re2/src/re2/re2.h", ], }
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/DEPS
Python
unknown
155
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/wayland/wayland_event_watcher.h" #include <wayland-client-core.h> #include <cstring> #include "base/environment.h" #include "base/logging.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher.cc
C++
unknown
6,811
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_H_ #define UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_H_ #include "base/functional/callback.h" #include "base/me...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher.h
C++
unknown
3,781
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/wayland/wayland_event_watcher_fdwatch.h" #include "base/notreached.h" #include "base/task/current_thread.h" namespace ui { WaylandEventWatcherFd...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher_fdwatch.cc
C++
unknown
2,250
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_FDWATCH_H_ #define UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_FDWATCH_H_ #include "base/message_loop/message_pum...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher_fdwatch.h
C++
unknown
1,350
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/wayland/wayland_event_watcher_glib.h" #include <glib.h> #include "base/memory/raw_ptr.h" namespace ui { namespace { // The priorities of the e...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher_glib.cc
C++
unknown
3,909
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_GLIB_H_ #define UI_EVENTS_PLATFORM_WAYLAND_WAYLAND_EVENT_WATCHER_GLIB_H_ #include "base/memory/raw_ptr.h" #include "ui...
Zhao-PengFei35/chromium_src_4
ui/events/platform/wayland/wayland_event_watcher_glib.h
C++
unknown
1,564
include_rules = [ "+ui/base/x", "+ui/base/ui_base_features.h", ]
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/DEPS
Python
unknown
69
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include <type_traits> #include "base/auto_reset.h" #include "base/logging.h" #include "base/memory/free_deleter.h" #include "base/memory/ref_counted_memory....
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_source.cc
C++
unknown
10,308
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ #define UI_EVENTS_PLATFORM_X11_X11_EVENT_SOURCE_H_ #include <stdint.h> #include <memory> #include "base/auto_reset.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_source.h
C++
unknown
3,291
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/x11/x11_event_watcher_fdwatch.h" #include <fcntl.h> #include <unistd.h> #include "base/task/current_thread.h" namespace ui { X11EventWatcherFdW...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_watcher_fdwatch.cc
C++
unknown
2,449
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_WATCHER_FDWATCH_H_ #define UI_EVENTS_PLATFORM_X11_X11_EVENT_WATCHER_FDWATCH_H_ #include "base/memory/raw_ptr_exclusion.h" #include "ba...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_watcher_fdwatch.h
C++
unknown
1,482
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/x11/x11_event_watcher_glib.h" #include <glib.h> #include "base/memory/raw_ptr.h" namespace ui { namespace { struct GLibX11Source : public GSou...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_watcher_glib.cc
C++
unknown
3,946
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_X11_X11_EVENT_WATCHER_GLIB_H_ #define UI_EVENTS_PLATFORM_X11_X11_EVENT_WATCHER_GLIB_H_ #include <memory> #include "base/memory/raw_ptr.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_event_watcher_glib.h
C++
unknown
1,364
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/platform/x11/x11_hotplug_event_handler.h" #include <stdint.h> #include <algorithm> #include <cmath> #include <limits> #include <set> #include <string> #in...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_hotplug_event_handler.cc
C++
unknown
17,297
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ #define UI_EVENTS_PLATFORM_X11_X11_HOTPLUG_EVENT_HANDLER_H_ #include "ui/events/devices/x11/device_list_cache_x11.h...
Zhao-PengFei35/chromium_src_4
ui/events/platform/x11/x11_hotplug_event_handler.h
C++
unknown
821
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_PLATFORM_EVENT_H_ #define UI_EVENTS_PLATFORM_EVENT_H_ #include "build/build_config.h" #if BUILDFLAG(IS_WIN) #include "base/win/windows_types.h" #elif BUILDF...
Zhao-PengFei35/chromium_src_4
ui/events/platform_event.h
Objective-C
unknown
978
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/pointer_details.h" #include <cmath> #include <sstream> namespace ui { PointerDetails::PointerDetails() {} PointerDetails::PointerDetails(EventPointerTyp...
Zhao-PengFei35/chromium_src_4
ui/events/pointer_details.cc
C++
unknown
2,518
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_POINTER_DETAILS_H_ #define UI_EVENTS_POINTER_DETAILS_H_ #include <stdint.h> #include <limits> #include "ui/events/event_constants.h" #include "ui/events/ev...
Zhao-PengFei35/chromium_src_4
ui/events/pointer_details.h
C++
unknown
3,101
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/scoped_target_handler.h" #include "ui/events/event.h" #include "ui/events/event_handler.h" #include "ui/events/event_target.h" namespace ui { ScopedTarge...
Zhao-PengFei35/chromium_src_4
ui/events/scoped_target_handler.cc
C++
unknown
1,172
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_SCOPED_TARGET_HANDLER_H_ #define UI_EVENTS_SCOPED_TARGET_HANDLER_H_ #include "base/memory/raw_ptr.h" #include "base/memory/weak_ptr.h" #include "base/strings...
Zhao-PengFei35/chromium_src_4
ui/events/scoped_target_handler.h
C++
unknown
1,812
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/scoped_target_handler.h" #include <memory> #include <utility> #include "base/memory/ptr_util.h" #include "base/memory/raw_ptr.h" #include "testing/gtest/i...
Zhao-PengFei35/chromium_src_4
ui/events/scoped_target_handler_unittest.cc
C++
unknown
9,062
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_ #define UI_EVENTS_TEST_COCOA_TEST_EVENT_UTILS_H_ #import <Cocoa/Cocoa.h> #import <objc/objc-class.h> #include <utility> #inc...
Zhao-PengFei35/chromium_src_4
ui/events/test/cocoa_test_event_utils.h
Objective-C
unknown
4,727
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/events/test/cocoa_test_event_utils.h" #include <stdint.h> #include "base/mac/scoped_cftyperef.h" #include "base/notreached.h" #include "base/time/time.h" #include...
Zhao-PengFei35/chromium_src_4
ui/events/test/cocoa_test_event_utils.mm
Objective-C++
unknown
18,176
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/event_generator.h" #include <stddef.h> #include <stdint.h> #include <memory> #include <utility> #include "base/functional/bind.h" #include "base/loc...
Zhao-PengFei35/chromium_src_4
ui/events/test/event_generator.cc
C++
unknown
27,471
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_EVENT_GENERATOR_H_ #define UI_EVENTS_TEST_EVENT_GENERATOR_H_ #include <memory> #include <vector> #include "base/functional/callback.h" #include "base/m...
Zhao-PengFei35/chromium_src_4
ui/events/test/event_generator.h
C++
unknown
21,056
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/events_test_utils.h" #include "ui/events/event_source.h" namespace ui { EventTestApi::EventTestApi(Event* event) : event_(event) {} EventTestApi::~E...
Zhao-PengFei35/chromium_src_4
ui/events/test/events_test_utils.cc
C++
unknown
1,008
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_H_ #include "base/memory/raw_ptr.h" #include "ui/events/event.h" #include "ui/events/event...
Zhao-PengFei35/chromium_src_4
ui/events/test/events_test_utils.h
C++
unknown
2,806
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/events_test_utils_x11.h" #include <stddef.h> #include "base/check_op.h" #include "base/notreached.h" #include "ui/events/devices/x11/touch_factory_x1...
Zhao-PengFei35/chromium_src_4
ui/events/test/events_test_utils_x11.cc
C++
unknown
12,391
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ #define UI_EVENTS_TEST_EVENTS_TEST_UTILS_X11_H_ #include <memory> #include "ui/events/devices/x11/device_data_manager_x11.h" #...
Zhao-PengFei35/chromium_src_4
ui/events/test/events_test_utils_x11.h
C++
unknown
3,253
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/keyboard_hook_monitor_utils.h" #include "ui/events/win/keyboard_hook_monitor_impl.h" namespace ui { void SimulateKeyboardHookRegistered() { Keyboa...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_hook_monitor_utils.cc
C++
unknown
513
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_KEYBOARD_HOOK_MONITOR_UTILS_H_ #define UI_EVENTS_TEST_KEYBOARD_HOOK_MONITOR_UTILS_H_ namespace ui { // Simulates a KeyboardHook being registered by cal...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_hook_monitor_utils.h
C++
unknown
838
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/keyboard_layout.h" #include "base/check_op.h" #include "base/notreached.h" #include "build/build_config.h" #if BUILDFLAG(IS_OZONE) #include "ui/event...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_layout.cc
C++
unknown
1,080
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_KEYBOARD_LAYOUT_H_ #define UI_EVENTS_TEST_KEYBOARD_LAYOUT_H_ #include "build/build_config.h" #if BUILDFLAG(IS_WIN) #include <windows.h> #elif BUILDFLAG...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_layout.h
C++
unknown
1,776
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/keyboard_layout.h" #include "base/check_op.h" namespace ui { PlatformKeyboardLayout GetPlatformKeyboardLayout(KeyboardLayout layout) { // Right no...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_layout_mac.cc
C++
unknown
2,380
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/keyboard_layout.h" #include "base/check.h" #include "base/notreached.h" namespace ui { // |LoadKeyboardLayout()| ensures the locale to be loaded int...
Zhao-PengFei35/chromium_src_4
ui/events/test/keyboard_layout_win.cc
C++
unknown
1,772
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/motion_event_test_utils.h" #include <sstream> #include "base/check_op.h" #include "ui/events/base_event_utils.h" #include "ui/events/gesture_detectio...
Zhao-PengFei35/chromium_src_4
ui/events/test/motion_event_test_utils.cc
C++
unknown
8,234
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_ #define UI_EVENTS_TEST_MOTION_EVENT_TEST_UTILS_H_ #include <stddef.h> #include <string> #include <vector> #include "base/ti...
Zhao-PengFei35/chromium_src_4
ui/events/test/motion_event_test_utils.h
C++
unknown
2,351
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/platform_event_source_test_api.h" #include "ui/events/platform/platform_event_source.h" namespace ui { namespace test { PlatformEventSourceTestAPI::...
Zhao-PengFei35/chromium_src_4
ui/events/test/platform_event_source_test_api.cc
C++
unknown
652
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_ #define UI_EVENTS_TEST_PLATFORM_EVENT_SOURCE_TEST_API_H_ #include "base/memory/raw_ptr.h" #include "ui/events/platform...
Zhao-PengFei35/chromium_src_4
ui/events/test/platform_event_source_test_api.h
C++
unknown
921
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_SCOPED_EVENT_TEST_TICK_CLOCK_H_ #define UI_EVENTS_TEST_SCOPED_EVENT_TEST_TICK_CLOCK_H_ #include "base/test/simple_test_tick_clock.h" #include "base/time...
Zhao-PengFei35/chromium_src_4
ui/events/test/scoped_event_test_tick_clock.h
C++
unknown
1,476
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/scoped_event_waiter.h" #include "ui/events/event.h" #include "ui/events/event_target.h" namespace ui::test { ScopedEventWaiter::ScopedEventWaiter(Ev...
Zhao-PengFei35/chromium_src_4
ui/events/test/scoped_event_waiter.cc
C++
unknown
814
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_SCOPED_EVENT_WAITER_H_ #define UI_EVENTS_TEST_SCOPED_EVENT_WAITER_H_ #include "base/memory/raw_ptr.h" #include "base/run_loop.h" #include "ui/events/eve...
Zhao-PengFei35/chromium_src_4
ui/events/test/scoped_event_waiter.h
C++
unknown
1,199
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/scoped_event_waiter.h" #include "base/memory/raw_ptr.h" #include "base/task/sequenced_task_runner.h" #include "base/test/task_environment.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/events/test/scoped_event_waiter_unittest.cc
C++
unknown
2,062
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/test_event.h" namespace ui::test { std::unique_ptr<Event> TestEvent::Clone() const { return std::make_unique<TestEvent>(*this); } } // namespace ...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event.cc
C++
unknown
329
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_TEST_EVENT_H_ #define UI_EVENTS_TEST_TEST_EVENT_H_ #include <memory> #include "base/time/time.h" #include "ui/events/event.h" #include "ui/events/event...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event.h
C++
unknown
737
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/test_event_handler.h" #include "ui/events/event.h" namespace ui { namespace test { TestEventHandler::TestEventHandler() : num_key_events_(0), ...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_handler.cc
C++
unknown
1,469
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_TEST_EVENT_HANDLER_H_ #define UI_EVENTS_TEST_TEST_EVENT_HANDLER_H_ #include <string> #include <vector> #include "base/memory/raw_ptr.h" #include "ui/ev...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_handler.h
C++
unknown
1,969
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/test_event_processor.h" #include <utility> #include "ui/events/event_target.h" namespace ui { namespace test { TestEventProcessor::TestEventProcess...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_processor.cc
C++
unknown
1,527
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_EVENTS_TEST_TEST_EVENT_PROCESSOR_H_ #define UI_EVENTS_TEST_TEST_EVENT_PROCESSOR_H_ #include <memory> #include "ui/events/event_processor.h" namespace ui { namespa...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_processor.h
C++
unknown
1,843