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 (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/fling_curve_new_unittest.cc | C++ | unknown | 1,545 |
// 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/gestures/fling_curve.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_OHOS)
#include "base/system/sys_info.h"
#endif // BUILDFLAG(IS_OHO... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/fling_curve_unittest.cc | C++ | unknown | 1,477 |
// 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/gestures/gesture_provider_aura.h"
#include <utility>
#include "base/auto_reset.h"
#include "base/check.h"
#include "build/chromeos_buildflags.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_provider_aura.cc | C++ | unknown | 3,809 |
// 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_GESTURES_GESTURE_PROVIDER_AURA_H_
#define UI_EVENTS_GESTURES_GESTURE_PROVIDER_AURA_H_
#include <stdint.h>
#include <memory>
#include <vector>
#include "bas... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_provider_aura.h | C++ | unknown | 2,862 |
// 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/gestures/gesture_provider_aura.h"
#include <memory>
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/ev... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_provider_aura_unittest.cc | C++ | unknown | 11,733 |
// 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 "ui/events/gestures/gesture_recognizer.h"
namespace ui {
GestureRecognizer::GestureRecognizer() = default;
GestureRecognizer::~GestureRecognizer() = default;
} // ... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer.cc | C++ | unknown | 333 |
// 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_GESTURES_GESTURE_RECOGNIZER_H_
#define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_H_
#include <stdint.h>
#include <memory>
#include <vector>
#include "ui/events... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer.h | C++ | unknown | 5,386 |
// 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/gestures/gesture_recognizer_impl.h"
#include <stddef.h>
#include <limits>
#include <memory>
#include "base/check.h"
#include "base/command_line.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer_impl.cc | C++ | unknown | 15,941 |
// 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_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
#define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_H_
#include <stdint.h>
#include <map>
#include <memory>
#include <vec... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer_impl.h | C++ | unknown | 5,667 |
// 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/gestures/gesture_recognizer_impl_mac.h"
namespace ui {
GestureRecognizerImplMac::GestureRecognizerImplMac() = default;
GestureRecognizerImplMac::~GestureR... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer_impl_mac.cc | C++ | unknown | 2,438 |
// 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_GESTURES_GESTURE_RECOGNIZER_IMPL_MAC_H_
#define UI_EVENTS_GESTURES_GESTURE_RECOGNIZER_IMPL_MAC_H_
#include <stdint.h>
#include "ui/events/event.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_recognizer_impl_mac.h | C++ | unknown | 2,711 |
// 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 "ui/events/gestures/gesture_types.h"
namespace ui {
bool GestureConsumer::RequiresDoubleTapGestureEvents() const {
return false;
}
const std::string& GestureConsu... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_types.cc | C++ | unknown | 432 |
// 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_GESTURES_GESTURE_TYPES_H_
#define UI_EVENTS_GESTURES_GESTURE_TYPES_H_
#include <string>
#include "ui/events/events_export.h"
namespace ui {
class GestureE... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/gesture_types.h | C++ | unknown | 1,900 |
// 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/gestures/motion_event_aura.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
names... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/motion_event_aura.cc | C++ | unknown | 6,193 |
// 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_GESTURES_MOTION_EVENT_AURA_H_
#define UI_EVENTS_GESTURES_MOTION_EVENT_AURA_H_
#include <stddef.h>
#include "ui/events/event.h"
#include "ui/events/events_ex... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/motion_event_aura.h | C++ | unknown | 1,533 |
// 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/gestures/motion_event_aura.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event.h"
#include "ui/events/test/motion_event_test_utils.... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/motion_event_aura_unittest.cc | C++ | unknown | 19,797 |
// 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/gestures/physics_based_fling_curve.h"
#include <algorithm>
#include <cmath>
#include "base/check.h"
namespace {
// These constants are defined based on ... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/physics_based_fling_curve.cc | C++ | unknown | 6,312 |
// 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_GESTURES_PHYSICS_BASED_FLING_CURVE_H_
#define UI_EVENTS_GESTURES_PHYSICS_BASED_FLING_CURVE_H_
#include "base/time/time.h"
#include "ui/events/events_base_exp... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/physics_based_fling_curve.h | C++ | unknown | 3,151 |
// 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/gestures/physics_based_fling_curve.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
const float kDefaultPixelsPerInch = 96.f;
const float... | Zhao-PengFei35/chromium_src_4 | ui/events/gestures/physics_based_fling_curve_unittest.cc | C++ | unknown | 6,983 |
// 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/event_utils.h"
#import <UIKit/UIKit.h>
#include "base/notreached.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "ui/events/base_e... | Zhao-PengFei35/chromium_src_4 | ui/events/ios/events_ios.mm | Objective-C++ | unknown | 3,884 |
// 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/ipc/ui_events_param_traits_macros.h"
#include "ipc/param_traits_write_macros.h"
namespace IPC {
#undef UI_EVENTS_IPC_UI_EVENTS_PARAM_TRAITS_MACROS_H_
#inc... | Zhao-PengFei35/chromium_src_4 | ui/events/ipc/ui_events_param_traits.cc | C++ | unknown | 849 |
// 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_IPC_UI_EVENTS_PARAM_TRAITS_MACROS_H_
#define UI_EVENTS_IPC_UI_EVENTS_PARAM_TRAITS_MACROS_H_
#include "base/component_export.h"
#include "ipc/ipc_message_macr... | Zhao-PengFei35/chromium_src_4 | ui/events/ipc/ui_events_param_traits_macros.h | C | unknown | 829 |
// 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/keyboard_event_counter.h"
#include "base/check_op.h"
namespace ui {
KeyboardEventCounter::KeyboardEventCounter() : total_key_presses_(0) {}
KeyboardEven... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_event_counter.cc | C++ | unknown | 938 |
// 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_KEYBOARD_EVENT_COUNTER_H_
#define UI_EVENTS_KEYBOARD_EVENT_COUNTER_H_
#include <stddef.h>
#include <atomic>
#include <set>
#include "ui/events/events_expor... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_event_counter.h | C++ | unknown | 1,418 |
// 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/keyboard_event_counter.h"
#include <memory>
#include "base/run_loop.h"
#include "build/build_config.h"
#include "testing/gmock/include/gmock/gmock.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_event_counter_unittest.cc | C++ | unknown | 1,143 |
// 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_KEYBOARD_HOOK_H_
#define UI_EVENTS_KEYBOARD_HOOK_H_
#include <memory>
#include "base/component_export.h"
#include "base/containers/flat_set.h"
#include "bas... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_hook.h | C++ | unknown | 1,990 |
// 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 "ui/events/keyboard_hook_base.h"
#include <utility>
#include "base/containers/contains.h"
#include "ui/events/event.h"
#include "ui/events/keycodes/dom/dom_code.h"
... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_hook_base.cc | C++ | unknown | 1,134 |
// 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_KEYBOARD_HOOK_BASE_H_
#define UI_EVENTS_KEYBOARD_HOOK_BASE_H_
#include "ui/events/keyboard_hook.h"
namespace ui {
enum class DomCode;
class KeyEvent;
clas... | Zhao-PengFei35/chromium_src_4 | ui/events/keyboard_hook_base.h | C++ | unknown | 1,472 |
include_rules = [
# Remove DEPS allowed by ui/base
"-grit",
"-jni",
"-net",
"-skia",
"-third_party",
"-ui",
"+ui/base/buildflags.h", # Doesn't bring in all of UI.
"+ui/gfx/x",
"+ui/events",
# Abseil is allowed by default, but some features are banned. See
# //styleguide/c++/c++-features.md.
... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/DEPS | Python | unknown | 1,200 |
include_rules = [
"+ui/events/keycodes/dom",
]
| Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/DEPS | Python | unknown | 49 |
// 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_KEYCODES_DOM_DOM_CODE_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_CODE_H_
namespace ui {
// Declares named values for each of the recognized DOM Code values.
#def... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_code.h | C++ | unknown | 590 |
// 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_KEYCODES_DOM_DOM_CODES_ARRAY_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_CODES_ARRAY_H_
#include "ui/events/keycodes/dom/dom_code.h"
namespace ui {
// Declares a... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_codes_array.h | C++ | unknown | 760 |
// 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_KEYCODES_DOM_DOM_KEY_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_KEY_H_
#include <stdint.h>
#include <ostream>
#include "base/check.h"
#include "build/build_conf... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_key.h | C++ | unknown | 6,820 |
// 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 "ui/events/keycodes/dom/dom_keyboard_layout.h"
#include "base/strings/utf_string_conversion_utils.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout.cc | C++ | unknown | 3,541 |
// 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_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_H_
#include <cstddef>
#include <cstdint>
#include <map>
#include <stri... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout.h | C++ | unknown | 2,346 |
// 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 "ui/events/keycodes/dom/dom_keyboard_layout_manager.h"
#include <utility>
namespace ui {
DomKeyboardLayoutManager::DomKeyboardLayoutManager() = default;
DomKeyboa... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_manager.cc | C++ | unknown | 917 |
// 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_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MANAGER_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MANAGER_H_
#include <map>
#include <memory>
#include <vector>
... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_manager.h | C++ | unknown | 1,198 |
// 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_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MAP_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MAP_H_
#include <string>
#include "base/containers/flat_map.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map.h | C++ | unknown | 829 |
// 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 "ui/events/keycodes/dom/dom_keyboard_layout_map_base.h"
#include <cstdint>
#include <memory>
#include <string>
#include "base/check.h"
#include "ui/events/keycodes/d... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_base.cc | C++ | unknown | 2,231 |
// 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_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MAP_BASE_H_
#define UI_EVENTS_KEYCODES_DOM_DOM_KEYBOARD_LAYOUT_MAP_BASE_H_
#include <cstdint>
#include <string>
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_base.h | C++ | unknown | 2,151 |
// 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 <Carbon/Carbon.h>
#include <cstdint>
#include <string>
#include "base/check_op.h"
#include "base/mac/foundation_util.h"
#include "ui/events/keycodes/dom/dom_code.h"
... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_mac.mm | Objective-C++ | unknown | 2,247 |
// 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 <cstdint>
#include <string>
#include "base/check_op.h"
#include "base/containers/flat_map.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/events/keycodes... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_ozone.cc | C++ | unknown | 2,066 |
// 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 <string>
#include <vector>
#include "base/check_op.h"
#include "base/containers/flat_map.h"
#include "base/notreached.h"
#include "testing/gtest/include/gtest/gtest.h... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_unittest.cc | C++ | unknown | 13,286 |
// 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 <windows.h>
#include <cstdint>
#include <string>
#include <utility>
#include <vector>
#include "base/check_op.h"
#include "base/containers/flat_map.h"
#include "base... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/dom_keyboard_layout_map_win.cc | C++ | unknown | 6,038 |
// 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/keycodes/dom/keycode_converter.h"
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversion_utils.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/keycode_converter.cc | C++ | unknown | 15,584 |
// 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_KEYCODES_DOM_KEYCODE_CONVERTER_H_
#define UI_EVENTS_KEYCODES_DOM_KEYCODE_CONVERTER_H_
#include <stddef.h>
#include <stdint.h>
#include <string>
#include "ba... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/keycode_converter.h | C++ | unknown | 5,678 |
// 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/keycodes/dom/keycode_converter.h"
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <set>
#include "build/build_config.h"
#include "testing... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom/keycode_converter_unittest.cc | C++ | unknown | 10,355 |
// 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_KEYCODES_DOM_US_LAYOUT_DATA_H_
#define UI_EVENTS_KEYCODES_DOM_US_LAYOUT_DATA_H_
#include "build/build_config.h"
namespace ui {
// This table maps a DomCode... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/dom_us_layout_data.h | C++ | unknown | 31,735 |
// Copyright 2011 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/keycodes/keyboard_code_conversion.h"
#include <algorithm>
#include "ui/events/event_constants.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion.cc | C++ | unknown | 9,085 |
// Copyright 2011 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_KEYCODES_KEYBOARD_CODE_CONVERSION_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_H_
#include "ui/events/events_base_export.h"
#include "ui/events/key... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion.h | C++ | unknown | 5,509 |
// 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/keycodes/keyboard_code_conversion_android.h"
#include <android/keycodes.h>
namespace ui {
namespace {
const int kCombiningAccent = 0x80000000;
const int ... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_android.cc | C++ | unknown | 22,803 |
// 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_KEYCODES_KEYBOARD_CODE_CONVERSION_ANDROID_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_ANDROID_H_
#include "ui/events/events_base_export.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_android.h | C++ | unknown | 790 |
// 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/keycodes/keyboard_code_conversion_fuchsia.h"
#include <fidl/fuchsia.ui.input3/cpp/fidl.h>
#include "base/containers/flat_map.h"
namespace ui {
namespace ... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_fuchsia.cc | C++ | unknown | 1,365 |
// 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_KEYCODES_KEYBOARD_CODE_CONVERSION_FUCHSIA_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_FUCHSIA_H_
#include "ui/events/events_base_export.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_fuchsia.h | C++ | unknown | 694 |
// 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/keycodes/keyboard_code_conversion_fuchsia.h"
#include <fidl/fuchsia.ui.input3/cpp/fidl.h>
#include <cstdint>
#include "base/logging.h"
#include "testing/g... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_fuchsia_unittest.cc | C++ | unknown | 2,289 |
// Copyright 2011 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_KEYCODES_KEYBOARD_CODE_CONVERSION_MAC_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_MAC_H_
#include <Carbon/Carbon.h>
#import <Cocoa/Cocoa.h>
#incl... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_mac.h | Objective-C | unknown | 3,024 |
// 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.
#import "ui/events/keycodes/keyboard_code_conversion_mac.h"
#import <Carbon/Carbon.h>
#include <algorithm>
#include "base/check_op.h"
#include "base/mac/mac_logging.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_mac.mm | Objective-C++ | unknown | 32,355 |
// 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/keycodes/keyboard_code_conversion.h"
#include <stdint.h>
#include "base/strings/stringprintf.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "u... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_unittest.cc | C++ | unknown | 26,706 |
// Copyright 2011 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/keycodes/keyboard_code_conversion_win.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
namespace ui {
namespace {
const WORD kAltPrintScreenScanC... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_win.cc | C++ | unknown | 1,593 |
// Copyright 2011 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_KEYCODES_KEYBOARD_CODE_CONVERSION_WIN_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_WIN_H_
#include "base/win/windows_types.h"
#include "ui/events/e... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_win.h | C++ | unknown | 827 |
// 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/keycodes/keyboard_code_conversion_x.h"
#include <stddef.h>
#include <algorithm>
#include "base/logging.h"
#include "base/strings/stringprintf.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_x.cc | C++ | unknown | 56,398 |
// Copyright 2011 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_KEYCODES_KEYBOARD_CODE_CONVERSION_X_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_X_H_
#include <stdint.h>
#include "ui/events/keycodes/dom/dom_ke... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_x.h | C++ | unknown | 1,818 |
// 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/keycodes/keyboard_code_conversion_xkb.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/events/keycodes/dom/dom_key.h"... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_xkb.cc | C++ | unknown | 16,344 |
// 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_KEYCODES_KEYBOARD_CODE_CONVERSION_XKB_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODE_CONVERSION_XKB_H_
// These functions are used by X11 targets and by Ozone/X... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_code_conversion_xkb.h | C++ | unknown | 1,180 |
// Copyright 2011 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_KEYCODES_KEYBOARD_CODES_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODES_H_
#include "build/build_config.h"
#if BUILDFLAG(IS_WIN)
#include "ui/events/keycodes/k... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_codes.h | C | unknown | 501 |
// 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.
/*
* Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com. All rights reserved.
* Copyright (C) 2008, 2009 Google Inc.
*
* Redistribution and use in source and binary form... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_codes_posix.h | C++ | unknown | 7,372 |
// 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_KEYCODES_KEYBOARD_CODES_WIN_H_
#define UI_EVENTS_KEYCODES_KEYBOARD_CODES_WIN_H_
#include "ui/events/keycodes/keyboard_defines_win.h"
namespace ui {
enum Ke... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keyboard_codes_win.h | C++ | unknown | 5,251 |
// 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_KEYCODES_KEYCODES_X_EXPORT_H_
#define UI_EVENTS_KEYCODES_KEYCODES_X_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(KEYCODES_X_IMPLEME... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keycodes_x_export.h | C | unknown | 774 |
// 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/keycodes/keysym_to_unicode.h"
#include <stddef.h>
#include <unordered_map>
#include "base/lazy_instance.h"
#include "ui/gfx/x/keysyms/keysyms.h"
namespa... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keysym_to_unicode.cc | C++ | unknown | 55,311 |
// 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_KEYCODES_KEYSYM_TO_UNICODE_H_
#define UI_EVENTS_KEYCODES_KEYSYM_TO_UNICODE_H_
#include <stdint.h>
#include "ui/events/keycodes/keycodes_x_export.h"
namespa... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/keysym_to_unicode.h | C++ | unknown | 730 |
// 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/keycodes/platform_key_map_win.h"
#include <algorithm>
#include <utility>
#include "base/check_op.h"
#include "base/feature_list.h"
#include "base/lazy_ins... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/platform_key_map_win.cc | C++ | unknown | 15,046 |
// 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_KEYCODES_PLATFORM_KEY_MAP_WIN_H_
#define UI_EVENTS_KEYCODES_PLATFORM_KEY_MAP_WIN_H_
#include <windows.h>
#include <unordered_map>
#include "base/hash/hash.... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/platform_key_map_win.h | C++ | unknown | 2,696 |
// 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/keycodes/platform_key_map_win.h"
#include <string>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/event_constants.h"
#include "ui/even... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/platform_key_map_win_unittest.cc | C++ | unknown | 16,701 |
// 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_KEYCODES_SCOPED_XKB_H_
#define UI_EVENTS_KEYCODES_SCOPED_XKB_H_
#include <xkbcommon/xkbcommon.h>
namespace ui {
// libxkbcommon uses explicit reference cou... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/scoped_xkb.h | C++ | unknown | 742 |
// 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_KEYCODES_XKB_KEYSYM_H_
#define UI_EVENTS_KEYCODES_XKB_KEYSYM_H_
#include "ui/base/buildflags.h"
// This file provides definitions of the xkbcommon keysym ty... | Zhao-PengFei35/chromium_src_4 | ui/events/keycodes/xkb_keysym.h | C | unknown | 33,685 |
// 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 "ui/events/keyboard_hook.h"
#include "ui/events/keycodes/dom/dom_code.h"
#include "ui/gfx/native_widget_types.h"
namespace ui {
// static
std::unique_ptr<KeyboardHoo... | Zhao-PengFei35/chromium_src_4 | ui/events/mac/keyboard_hook_mac.mm | Objective-C++ | unknown | 673 |
// 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/mobile_scroller.h"
#include <cmath>
#include <ostream>
#include "base/check_op.h"
#include "base/lazy_instance.h"
#include "base/notreached.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/events/mobile_scroller.cc | C++ | unknown | 13,466 |
// 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_MOBILE_SCROLLER_H_
#define UI_EVENTS_MOBILE_SCROLLER_H_
#include "base/time/time.h"
#include "ui/events/events_base_export.h"
#include "ui/events/gesture_cur... | Zhao-PengFei35/chromium_src_4 | ui/events/mobile_scroller.h | C++ | unknown | 4,478 |
// 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 <limits.h>
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/events/mobile_scroller.h"
namespace ui {
namespace {
const float ... | Zhao-PengFei35/chromium_src_4 | ui/events/mobile_scroller_unittest.cc | C++ | unknown | 6,692 |
include_rules = [
"+mojo/public",
"+ui/events",
"+ui/latency/mojom",
]
| Zhao-PengFei35/chromium_src_4 | ui/events/mojom/DEPS | Python | unknown | 77 |
// 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/mojom/event_latency_metadata_mojom_traits.h"
namespace mojo {
// static
bool StructTraits<
ui::mojom::EventLatencyMetadataDataView,
ui::EventLaten... | Zhao-PengFei35/chromium_src_4 | ui/events/mojom/event_latency_metadata_mojom_traits.cc | C++ | unknown | 829 |
// 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_MOJOM_EVENT_LATENCY_METADATA_MOJOM_TRAITS_H_
#define UI_EVENTS_MOJOM_EVENT_LATENCY_METADATA_MOJOM_TRAITS_H_
#include "mojo/public/cpp/base/time_mojom_traits.... | Zhao-PengFei35/chromium_src_4 | ui/events/mojom/event_latency_metadata_mojom_traits.h | C++ | unknown | 1,426 |
// 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/mojom/event_mojom_traits.h"
#include "base/time/time.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "ui/events/event.h"
#include "ui/event... | Zhao-PengFei35/chromium_src_4 | ui/events/mojom/event_mojom_traits.cc | C++ | unknown | 19,498 |
// 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_MOJOM_EVENT_MOJOM_TRAITS_H_
#define UI_EVENTS_MOJOM_EVENT_MOJOM_TRAITS_H_
#include <stdint.h>
#include <string>
#include "base/containers/flat_map.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/events/mojom/event_mojom_traits.h | C++ | unknown | 7,252 |
// 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 <utility>
#include "build/build_config.h"
#include "mojo/public/cpp/base/time_mojom_traits.h"
#include "mojo/public/cpp/test_support/test_utils.h"
#include "testing/g... | Zhao-PengFei35/chromium_src_4 | ui/events/mojom/mojom_traits_unittest.cc | C++ | unknown | 18,889 |
#include "ui/events/native_scroller_ohos.h"
#include <cmath>
#include "base/logging.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
namespace ui {
namespace {
constexpr float kDefaultFriction = 0.75f;
constexpr float kFrictionScale = -4.2f;
constexpr float kDefaultThreshold = 2.0f;
constexpr float kD... | Zhao-PengFei35/chromium_src_4 | ui/events/native_scroller_ohos.cc | C++ | unknown | 3,489 |
#ifndef UI_EVENTS_NATIVE_SCROLLER_OHOS_H_
#define UI_EVENTS_NATIVE_SCROLLER_OHOS_H_
#include "base/time/time.h"
#include "ui/events/events_base_export.h"
#include "ui/events/gesture_curve.h"
#include "ui/gfx/geometry/vector2d.h"
namespace ui {
class EVENTS_BASE_EXPORT NativeScrollerOhos : public GestureCurve {
publi... | Zhao-PengFei35/chromium_src_4 | ui/events/native_scroller_ohos.h | C++ | unknown | 1,636 |
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Zhao-PengFei35/chromium_src_4 | ui/events/native_scroller_ohos_unittest.cc | C++ | unknown | 5,771 |
// 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/null_event_targeter.h"
#include "base/notreached.h"
namespace ui {
NullEventTargeter::NullEventTargeter() {
}
NullEventTargeter::~NullEventTargeter() {
... | Zhao-PengFei35/chromium_src_4 | ui/events/null_event_targeter.cc | C++ | unknown | 685 |
// 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_NULL_EVENT_TARGETER_H_
#define UI_EVENTS_NULL_EVENT_TARGETER_H_
#include "ui/events/event_targeter.h"
#include "ui/events/events_export.h"
namespace ui {
/... | Zhao-PengFei35/chromium_src_4 | ui/events/null_event_targeter.h | C++ | unknown | 981 |
include_rules = [
"+device/udev_linux",
"+mojo/public/cpp/bindings",
"+ui/ozone/public",
]
| Zhao-PengFei35/chromium_src_4 | ui/events/ozone/DEPS | Python | unknown | 97 |
// 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/ozone/chromeos/cursor_controller.h"
namespace ui {
namespace {
void TransformCursorMove(display::Display::Rotation rotation,
flo... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/chromeos/cursor_controller.cc | C++ | unknown | 2,625 |
// 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_CHROMEOS_CURSOR_CONTROLLER_H_
#define UI_EVENTS_OZONE_CHROMEOS_CURSOR_CONTROLLER_H_
#include <map>
#include "base/component_export.h"
#include "base/m... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/chromeos/cursor_controller.h | C++ | unknown | 3,493 |
// 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 "testing/gtest/include/gtest/gtest.h"
#include "ui/events/ozone/chromeos/cursor_controller.h"
namespace ui {
namespace {
const gfx::AcceleratedWidget kTestWindow = ... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/chromeos/cursor_controller_unittest.cc | C++ | unknown | 2,150 |
// 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/ozone/device/device_event.h"
namespace ui {
DeviceEvent::DeviceEvent(DeviceType type,
ActionType action,
... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_event.cc | C++ | unknown | 575 |
// 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_DEVICE_DEVICE_EVENT_H_
#define UI_EVENTS_OZONE_DEVICE_DEVICE_EVENT_H_
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_event.h | C++ | unknown | 1,336 |
// 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_DEVICE_DEVICE_EVENT_OBSERVER_H_
#define UI_EVENTS_OZONE_DEVICE_DEVICE_EVENT_OBSERVER_H_
#include "base/component_export.h"
namespace ui {
class Devic... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_event_observer.h | C++ | unknown | 577 |
// 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/ozone/device/device_manager.h"
#include "base/trace_event/trace_event.h"
#if defined(USE_UDEV)
#include "ui/events/ozone/device/udev/device_manager_udev.h... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_manager.cc | C++ | unknown | 668 |
// 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_DEVICE_DEVICE_MANAGER_H_
#define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_H_
#include <memory>
#include "base/component_export.h"
namespace ui {
class ... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_manager.h | C++ | unknown | 1,162 |
// 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/ozone/device/device_manager_manual.h"
#include "base/files/file_enumerator.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/events/ozone/device/device_manager_manual.cc | C++ | unknown | 4,622 |