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 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/base/win/win_cursor_factory.h"
#include "base/win/windows_types.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/cursor/mojom/cursor_type.mojom... | Zhao-PengFei35/chromium_src_4 | ui/base/win/win_cursor_factory_unittest.cc | C++ | unknown | 785 |
// 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/base/win/window_event_target.h"
namespace ui {
const char WindowEventTarget::kWin32InputEventTarget[]
= "Win32_InputEventTarget";
WindowEventTarget::WindowE... | Zhao-PengFei35/chromium_src_4 | ui/base/win/window_event_target.cc | C++ | unknown | 400 |
// 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_BASE_WIN_WINDOW_EVENT_TARGET_H_
#define UI_BASE_WIN_WINDOW_EVENT_TARGET_H_
#include <windows.h>
#include "base/component_export.h"
namespace ui {
// This interfa... | Zhao-PengFei35/chromium_src_4 | ui/base/win/window_event_target.h | C++ | unknown | 6,616 |
// 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_BASE_WINDOW_OPEN_DISPOSITION_H_
#define UI_BASE_WINDOW_OPEN_DISPOSITION_H_
enum class WindowOpenDisposition {
UNKNOWN,
CURRENT_TAB,
// Indicates that only one... | Zhao-PengFei35/chromium_src_4 | ui/base/window_open_disposition.h | C | unknown | 1,185 |
// 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/base/window_open_disposition_utils.h"
#include "build/build_config.h"
#include "ui/events/event_constants.h"
namespace ui {
WindowOpenDisposition DispositionFro... | Zhao-PengFei35/chromium_src_4 | ui/base/window_open_disposition_utils.cc | C++ | unknown | 1,514 |
// 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_BASE_WINDOW_OPEN_DISPOSITION_UTILS_H_
#define UI_BASE_WINDOW_OPEN_DISPOSITION_UTILS_H_
#include "base/component_export.h"
#include "ui/base/window_open_disposition.... | Zhao-PengFei35/chromium_src_4 | ui/base/window_open_disposition_utils.h | C++ | unknown | 1,369 |
// 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/base/wm_role_names_linux.h"
namespace ui {
const char kStatusIconWmRoleName[] = "status-icon";
} // namespace ui
| Zhao-PengFei35/chromium_src_4 | ui/base/wm_role_names_linux.cc | C++ | unknown | 274 |
// 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_BASE_WM_ROLE_NAMES_LINUX_H_
#define UI_BASE_WM_ROLE_NAMES_LINUX_H_
namespace ui {
// Return the status-icon wm_role_name. Only used to construct status-icon
// win... | Zhao-PengFei35/chromium_src_4 | ui/base/wm_role_names_linux.h | C++ | unknown | 440 |
include_rules = [
"+third_party/khronos/EGL/egl.h",
"+ui/gl/gl_surface_egl.h",
"+ui/linux",
"+ui/platform_window/common/platform_window_defaults.h",
]
| Zhao-PengFei35/chromium_src_4 | ui/base/x/DEPS | Python | unknown | 159 |
// 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/base/x/selection_owner.h"
#include <algorithm>
#include "base/logging.h"
#include "base/memory/ref_counted_memory.h"
#include "ui/base/x/selection_utils.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_owner.cc | C++ | unknown | 12,101 |
// 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_BASE_X_SELECTION_OWNER_H_
#define UI_BASE_X_SELECTION_OWNER_H_
#include <stddef.h>
#include <vector>
#include "base/component_export.h"
#include "base/functional/... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_owner.h | C++ | unknown | 5,117 |
// 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/base/x/selection_requestor.h"
#include "base/memory/ref_counted_memory.h"
#include "base/ranges/algorithm.h"
#include "ui/base/x/selection_owner.h"
#include "ui/b... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_requestor.cc | C++ | unknown | 7,967 |
// 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_BASE_X_SELECTION_REQUESTOR_H_
#define UI_BASE_X_SELECTION_REQUESTOR_H_
#include <cstddef>
#include <vector>
#include "base/component_export.h"
#include "base/memor... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_requestor.h | C++ | unknown | 4,874 |
// 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/base/x/selection_requestor.h"
#include <stddef.h>
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/ref_... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_requestor_unittest.cc | C++ | unknown | 4,734 |
// 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/base/x/selection_utils.h"
#include <stdint.h>
#include <set>
#include "base/containers/contains.h"
#include "base/i18n/icu_string_conversions.h"
#include "base/... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_utils.cc | C++ | unknown | 6,780 |
// 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_BASE_X_SELECTION_UTILS_H_
#define UI_BASE_X_SELECTION_UTILS_H_
#include <stddef.h>
#include <map>
#include "base/component_export.h"
#include "base/memory/ref_coun... | Zhao-PengFei35/chromium_src_4 | ui/base/x/selection_utils.h | C++ | unknown | 4,263 |
// 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/base/x/test/x11_property_change_waiter.h"
#include <utility>
#include "base/run_loop.h"
#include "ui/events/event.h"
#include "ui/events/platform/scoped_event_di... | Zhao-PengFei35/chromium_src_4 | ui/base/x/test/x11_property_change_waiter.cc | C++ | unknown | 1,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_BASE_X_TEST_X11_PROPERTY_CHANGE_WAITER_H_
#define UI_BASE_X_TEST_X11_PROPERTY_CHANGE_WAITER_H_
#include <stdint.h>
#include <memory>
#include "base/functional/cal... | Zhao-PengFei35/chromium_src_4 | ui/base/x/test/x11_property_change_waiter.h | C++ | unknown | 1,491 |
// 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/base/x/test/x11_ui_controls_test_helper.h"
#include "base/check_op.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "ui/base/x/x11_util.h"... | Zhao-PengFei35/chromium_src_4 | ui/base/x/test/x11_ui_controls_test_helper.cc | C++ | unknown | 7,260 |
// 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_BASE_X_TEST_X11_UI_CONTROLS_TEST_HELPER_H_
#define UI_BASE_X_TEST_X11_UI_CONTROLS_TEST_HELPER_H_
#include "base/memory/raw_ptr.h"
#include "ui/gfx/native_widget_typ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/test/x11_ui_controls_test_helper.h | C++ | unknown | 2,627 |
// 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/base/x/visual_picker_glx.h"
#include <algorithm>
#include <bitset>
#include <cstring>
#include <map>
#include <numeric>
#include <vector>
#include "base/memory/s... | Zhao-PengFei35/chromium_src_4 | ui/base/x/visual_picker_glx.cc | C++ | unknown | 10,168 |
// 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_BASE_X_VISUAL_PICKER_GLX_H_
#define UI_BASE_X_VISUAL_PICKER_GLX_H_
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#include "base/memory/ra... | Zhao-PengFei35/chromium_src_4 | ui/base/x/visual_picker_glx.h | C++ | unknown | 1,969 |
// 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/base/x/x11_clipboard_helper.h"
#include <string>
#include <vector>
#include "base/containers/contains.h"
#include "base/feature_list.h"
#include "base/memory/ref... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_clipboard_helper.cc | C++ | unknown | 14,946 |
// 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_BASE_X_X11_CLIPBOARD_HELPER_H_
#define UI_BASE_X_X11_CLIPBOARD_HELPER_H_
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include "base/co... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_clipboard_helper.h | C++ | unknown | 5,301 |
// 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/base/x/x11_cursor.h"
#include "base/memory/scoped_refptr.h"
#include "ui/base/x/x11_cursor_loader.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/future.h"... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor.cc | C++ | unknown | 1,284 |
// 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_BASE_X_X11_CURSOR_H_
#define UI_BASE_X_X11_CURSOR_H_
#include <vector>
#include "base/component_export.h"
#include "base/functional/callback.h"
#include "ui/base/c... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor.h | C++ | unknown | 1,492 |
// 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/base/x/x11_cursor_factory.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/cursor/mojom/cursor_type.mojom-shared.h"
#include "ui/base/curs... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_factory.cc | C++ | unknown | 2,859 |
// 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_BASE_X_X11_CURSOR_FACTORY_H_
#define UI_BASE_X_X11_CURSOR_FACTORY_H_
#include <map>
#include <string>
#include <vector>
#include "base/component_export.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_factory.h | C++ | unknown | 2,049 |
// 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/base/x/x11_cursor_factory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/base/cursor/mojom/cur... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_factory_unittest.cc | C++ | unknown | 935 |
// 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/base/x/x11_cursor_loader.h"
#include <dlfcn.h>
#include <limits>
#include <string>
#include "base/compiler_specific.h"
#include "base/environment.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_loader.cc | C++ | unknown | 18,303 |
// 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_BASE_X_X11_CURSOR_LOADER_H_
#define UI_BASE_X_X11_CURSOR_LOADER_H_
#include <unordered_map>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_loader.h | C++ | unknown | 2,883 |
// 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 <stdint.h>
#include <tuple>
#include <fuzzer/FuzzedDataProvider.h>
#include "base/containers/span.h"
#include "base/memory/ref_counted_memory.h"
#include "base/memo... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_loader_fuzzer.cc | C++ | unknown | 793 |
// 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/base/x/x11_cursor_loader.h"
#undef Bool
#include "base/memory/ref_counted_memory.h"
#include "base/sys_byteorder.h"
#include "testing/gtest/include/gtest/gtest.h... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_cursor_loader_unittest.cc | C++ | unknown | 5,085 |
// 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/base/x/x11_desktop_window_move_client.h"
#include "ui/base/x/x11_util.h"
#include "ui/events/event.h"
#include "ui/gfx/geometry/rect.h"
namespace ui {
X11Deskto... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_desktop_window_move_client.cc | C++ | unknown | 1,439 |
// 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_BASE_X_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
#define UI_BASE_X_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
#include "base/component_export.h"
#include "base/functional/callback.h... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_desktop_window_move_client.h | C++ | unknown | 2,126 |
// 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/base/x/x11_display_manager.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/base/x/x11_displ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_display_manager.cc | C++ | unknown | 3,704 |
// 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_BASE_X_X11_DISPLAY_MANAGER_H_
#define UI_BASE_X_X11_DISPLAY_MANAGER_H_
#include <memory>
#include <vector>
#include "base/cancelable_callback.h"
#include "base/com... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_display_manager.h | C++ | unknown | 3,272 |
// 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/base/x/x11_display_util.h"
#include <dlfcn.h>
#include <bitset>
#include "base/bits.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_display_util.cc | C++ | unknown | 14,430 |
// 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_BASE_X_X11_DISPLAY_UTIL_H_
#define UI_BASE_X_X11_DISPLAY_UTIL_H_
#include "base/component_export.h"
#include "base/time/time.h"
#include "ui/display/display.h"
nam... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_display_util.h | C++ | unknown | 1,259 |
// 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/base/x/x11_drag_context.h"
#include "base/logging.h"
#include "base/memory/ref_counted_memory.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/x... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_drag_context.cc | C++ | unknown | 7,436 |
// 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_BASE_X_X11_DRAG_CONTEXT_H_
#define UI_BASE_X_X11_DRAG_CONTEXT_H_
#include <memory>
#include <vector>
#include "base/component_export.h"
#include "base/memory/raw_p... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_drag_context.h | C++ | unknown | 3,731 |
// 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/base/x/x11_drag_drop_client.h"
#include "base/containers/flat_set.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/notreached.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_drag_drop_client.cc | C++ | unknown | 26,218 |
// 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_BASE_X_X11_DRAG_DROP_CLIENT_H_
#define UI_BASE_X_X11_DRAG_DROP_CLIENT_H_
#include <vector>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_drag_drop_client.h | C++ | unknown | 10,508 |
// 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/base/x/x11_gl_egl_utility.h"
#include "base/containers/contains.h"
#include "ui/base/x/x11_util.h"
#include "ui/gl/gl_surface_egl.h"
#ifndef EGL_ANGLE_x11_visual... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_gl_egl_utility.cc | C++ | unknown | 2,708 |
// 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_BASE_X_X11_GL_EGL_UTILITY_H_
#define UI_BASE_X_X11_GL_EGL_UTILITY_H_
#include <vector>
#include "third_party/khronos/EGL/egl.h"
namespace ui {
// Returns display... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_gl_egl_utility.h | C++ | unknown | 825 |
// 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/base/x/x11_global_shortcut_listener.h"
#include <stddef.h>
#include "base/containers/contains.h"
#include "ui/base/x/x11_util.h"
#include "ui/events/event.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_global_shortcut_listener.cc | C++ | unknown | 5,399 |
// 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_BASE_X_X11_GLOBAL_SHORTCUT_LISTENER_H_
#define UI_BASE_X_X11_GLOBAL_SHORTCUT_LISTENER_H_
#include <stdint.h>
#include <set>
#include "base/memory/raw_ptr.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_global_shortcut_listener.h | C++ | unknown | 2,898 |
// 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/base/x/x11_idle_query.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/future.h"
#include "ui/gfx/x/screensaver.h"
namespace ui {
IdleQueryX11::IdleQueryX... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_idle_query.cc | C++ | unknown | 858 |
// 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_BASE_X_X11_IDLE_QUERY_H_
#define UI_BASE_X_X11_IDLE_QUERY_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
namespace x11 {
class Connection;
... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_idle_query.h | C++ | unknown | 672 |
// 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_BASE_X_X11_MOVE_LOOP_H_
#define UI_BASE_X_X11_MOVE_LOOP_H_
#include "ui/gfx/native_widget_types.h"
namespace ui {
class X11Cursor;
// Runs a nested run loop and ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_move_loop.h | C++ | unknown | 1,191 |
// 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_BASE_X_X11_MOVE_LOOP_DELEGATE_H_
#define UI_BASE_X_X11_MOVE_LOOP_DELEGATE_H_
namespace base {
class TimeTicks;
}
namespace gfx {
class Point;
}
namespace ui {
//... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_move_loop_delegate.h | C++ | unknown | 1,006 |
// 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/base/x/x11_os_exchange_data_provider.h"
#include <utility>
#include "base/containers/contains.h"
#include "base/memory/ref_counted_memory.h"
#include "base/strin... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_os_exchange_data_provider.cc | C++ | unknown | 18,423 |
// 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_BASE_X_X11_OS_EXCHANGE_DATA_PROVIDER_H_
#define UI_BASE_X_X11_OS_EXCHANGE_DATA_PROVIDER_H_
#include <stdint.h>
#include <map>
#include "base/component_export.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_os_exchange_data_provider.h | C++ | unknown | 6,548 |
// 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/base/x/x11_pointer_grab.h"
#include "base/cancelable_callback.h"
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_pointer_grab.cc | C++ | unknown | 4,773 |
// 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_BASE_X_X11_POINTER_GRAB_H_
#define UI_BASE_X_X11_POINTER_GRAB_H_
#include "base/component_export.h"
#include "ui/gfx/x/xproto.h"
namespace ui {
class X11Cursor;
... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_pointer_grab.h | C++ | unknown | 906 |
// 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/base/x/x11_screensaver.h"
#include <memory>
#include "base/command_line.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "ui/base/x/x11_u... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_screensaver.cc | C++ | unknown | 3,095 |
// 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_BASE_X_X11_SCREENSAVER_H_
#define UI_BASE_X_X11_SCREENSAVER_H_
#include "base/component_export.h"
namespace ui {
COMPONENT_EXPORT(UI_BASE_X) bool IsXScreensaverAc... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_screensaver.h | C++ | unknown | 389 |
// 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/base/x/x11_shm_image_pool.h"
#include <sys/ipc.h>
#include <sys/shm.h>
#include <memory>
#include <utility>
#include "base/command_line.h"
#include "base/enviro... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_shm_image_pool.cc | C++ | unknown | 9,651 |
// 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_BASE_X_X11_SHM_IMAGE_POOL_H_
#define UI_BASE_X_X11_SHM_IMAGE_POOL_H_
#include <cstring>
#include <list>
#include <vector>
#include "base/component_export.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_shm_image_pool.h | C++ | unknown | 2,843 |
// 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/base/x/x11_software_bitmap_presenter.h"
#include <stddef.h>
#include <stdint.h>
#include <string.h>
#include <cstring>
#include <memory>
#include <utility>
#inc... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_software_bitmap_presenter.cc | C++ | unknown | 9,741 |
// 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_BASE_X_X11_SOFTWARE_BITMAP_PRESENTER_H_
#define UI_BASE_X_X11_SOFTWARE_BITMAP_PRESENTER_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_software_bitmap_presenter.h | C++ | unknown | 2,692 |
// 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/base/x/x11_user_input_monitor.h"
#include "base/logging.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/events/devices/x11/xinput_util.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_user_input_monitor.cc | C++ | unknown | 4,180 |
// 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_BASE_X_X11_USER_INPUT_MONITOR_H_
#define UI_BASE_X_X11_USER_INPUT_MONITOR_H_
#include <memory>
#include "base/component_export.h"
#include "base/files/file_descrip... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_user_input_monitor.h | C++ | unknown | 2,355 |
// 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.
// This file defines utility functions for X11 (Linux only). This code has been
// ported from XCB since we can't use XCB on Ubuntu while its 32-bit support
// remains woefully... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_util.cc | C++ | unknown | 34,261 |
// 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_BASE_X_X11_UTIL_H_
#define UI_BASE_X_X11_UTIL_H_
// This file declares utility functions for X11 (Linux only).
#include <cstddef>
#include <cstdint>
#include <memo... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_util.h | C++ | unknown | 13,978 |
// 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/base/x/x11_whole_screen_move_loop.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_whole_screen_move_loop.cc | C++ | unknown | 9,157 |
// 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_BASE_X_X11_WHOLE_SCREEN_MOVE_LOOP_H_
#define UI_BASE_X_X11_WHOLE_SCREEN_MOVE_LOOP_H_
#include <stdint.h>
#include <memory>
#include "base/component_export.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_whole_screen_move_loop.h | C++ | unknown | 3,081 |
// 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/base/x/x11_workspace_handler.h"
#include "base/strings/string_number_conversions.h"
#include "ui/base/x/x11_util.h"
#include "ui/gfx/x/x11_atom_cache.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_workspace_handler.cc | C++ | unknown | 2,234 |
// 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_BASE_X_X11_WORKSPACE_HANDLER_H_
#define UI_BASE_X_X11_WORKSPACE_HANDLER_H_
#include <memory>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_workspace_handler.h | C++ | unknown | 1,717 |
// 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/base/x/x11_xrandr_interval_only_vsync_provider.h"
#include "base/functional/bind.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_task_runner.... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_xrandr_interval_only_vsync_provider.cc | C++ | unknown | 2,722 |
// 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_BASE_X_X11_XRANDR_INTERVAL_ONLY_VSYNC_PROVIDER_H_
#define UI_BASE_X_X11_XRANDR_INTERVAL_ONLY_VSYNC_PROVIDER_H_
#include "base/component_export.h"
#include "ui/gfx/v... | Zhao-PengFei35/chromium_src_4 | ui/base/x/x11_xrandr_interval_only_vsync_provider.h | C++ | unknown | 971 |
include_rules = [
"+ash/constants",
"+chromeos",
"+components/device_event_log",
"+device/udev_linux",
"+grit/ui_chromeos_resources.h",
"+grit/ui_chromeos_strings.h",
"+mojo/public/cpp/bindings",
"+services/device/public",
"+services/service_manager/public",
"+third_party/cros_system_api",
"+third... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/DEPS | Python | unknown | 608 |
// 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/chromeos/devicetype_utils.h"
#include "base/notreached.h"
#include "build/chromeos_buildflags.h"
#include "chromeos/constants/devicetype.h"
#include "ui/base/l10n... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/devicetype_utils.cc | C++ | unknown | 2,171 |
// 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_CHROMEOS_DEVICETYPE_UTILS_H_
#define UI_CHROMEOS_DEVICETYPE_UTILS_H_
#include <string>
#include "ui/chromeos/ui_chromeos_export.h"
namespace ui {
// Assuming the... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/devicetype_utils.h | C++ | unknown | 1,242 |
// 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 "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/path_service.h"
#include "base/test/launcher/unit_test_launcher.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/run_all_unittests.cc | C++ | unknown | 1,964 |
// 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/chromeos/shill_error.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "chromeos/ash/components/network/network_s... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/shill_error.cc | C++ | unknown | 5,441 |
// 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_CHROMEOS_SHILL_ERROR_H_
#define UI_CHROMEOS_SHILL_ERROR_H_
#include <string>
#include "ui/chromeos/ui_chromeos_export.h"
namespace ui {
namespace shill_error {
U... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/shill_error.h | C++ | unknown | 527 |
include_rules = [
"+content/public/browser/web_ui_data_source.h",
"+third_party/cros_system_api/dbus/service_constants.h",
"+components/login",
"+components/strings",
"+ui/strings",
"+ui/chromeos",
] | Zhao-PengFei35/chromium_src_4 | ui/chromeos/strings/DEPS | Python | unknown | 211 |
// 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/chromeos/strings/network/network_element_localized_strings_provider.h"
#include "ash/constants/ash_features.h"
#include "base/feature_list.h"
#include "base/strin... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/strings/network/network_element_localized_strings_provider.cc | C++ | unknown | 32,372 |
// 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_CHROMEOS_STRINGS_NETWORK_NETWORK_ELEMENT_LOCALIZED_STRINGS_PROVIDER_H_
#define UI_CHROMEOS_STRINGS_NETWORK_NETWORK_ELEMENT_LOCALIZED_STRINGS_PROVIDER_H_
namespace l... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/strings/network/network_element_localized_strings_provider.h | C++ | unknown | 1,533 |
# 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.
PRESUBMIT_VERSION = '2.0.0'
USE_PYTHON3 = True
TEST_PATTERNS = [r'.+_test.py$']
# Regex patterns which identify all source json5 files we currently use in
# production. Note thes... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/styles/PRESUBMIT.py | Python | unknown | 1,572 |
# 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.
def _CheckSemanticColors(input_api, output_api):
"""Check that any colors present in HTML, CSS or JS files that are CSS
variables and start with a known CSS context (pres... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/styles/presubmit_support.py | Python | unknown | 4,282 |
#!/usr/bin/env python3
# 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.
import os.path
import subprocess
import unittest
import sys
from presubmit_support import _CheckSemanticColors
sys.path.append(os.path.join(os.path.dirname... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/styles/presubmit_support_test.py | Python | unknown | 4,111 |
# 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.
import re
_NON_SEMANTIC_CSS_COLOR_PATTERNS = [
"var(--google-",
"var(--paper-",
": #",
"rgb",
"hsl",
]
class SemanticCssChecker(object):
"""Checks that only semantic... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/styles/semantic_css_checker.py | Python | unknown | 2,148 |
#!/usr/bin/env python3
# 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.
import os
import sys
import unittest
from semantic_css_checker import SemanticCssChecker
# Update system path to src/ so we can access src/PRESUBMIT_test_... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/styles/semantic_css_checker_test.py | Python | unknown | 2,277 |
// 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_CHROMEOS_UI_CHROMEOS_EXPORT_H_
#define UI_CHROMEOS_UI_CHROMEOS_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(UI_CHROMEOS_IMPLEMENTATION)
#define UI_CHROMEOS_EX... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/ui_chromeos_export.h | C | unknown | 520 |
// 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/chromeos/user_activity_power_manager_notifier.h"
#include "ui/base/user_activity/user_activity_detector.h"
#include "ui/events/devices/device_data_manager.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/user_activity_power_manager_notifier.cc | C++ | unknown | 4,421 |
// 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_CHROMEOS_USER_ACTIVITY_POWER_MANAGER_NOTIFIER_H_
#define UI_CHROMEOS_USER_ACTIVITY_POWER_MANAGER_NOTIFIER_H_
#include "base/memory/raw_ptr.h"
#include "base/time/ti... | Zhao-PengFei35/chromium_src_4 | ui/chromeos/user_activity_power_manager_notifier.h | C++ | unknown | 3,354 |
include_rules = [
"+third_party/material_color_utilities",
"+third_party/skia/include",
"+skia/ext",
"+ui/base",
"+ui/gfx",
"+ui/base",
]
| Zhao-PengFei35/chromium_src_4 | ui/color/DEPS | Python | unknown | 150 |
# 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.
"""Presubmit script for changes affecting //ui/views.
See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts
for more details about the presubmit API built i... | Zhao-PengFei35/chromium_src_4 | ui/color/PRESUBMIT.py | Python | unknown | 1,109 |
// 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/color/color_mixers.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer.h"
#include "ui/color/color... | Zhao-PengFei35/chromium_src_4 | ui/color/chromeos/native_color_mixers_chromeos.cc | C++ | unknown | 3,904 |
// 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_COLOR_COLOR_ID_H_
#define UI_COLOR_COLOR_ID_H_
#include "base/check_op.h"
#include "build/build_config.h"
#include "build/buildflag.h"
// clang-format off
#define ... | Zhao-PengFei35/chromium_src_4 | ui/color/color_id.h | C++ | unknown | 21,994 |
// 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.
// The following macros are used to declare both the color id enumerations and
// the stringized names of the enumeration elements for use in dump_colors. To
// stringize the e... | Zhao-PengFei35/chromium_src_4 | ui/color/color_id_macros.inc | C++ | unknown | 1,606 |
// 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.
// The following macros are used to declare a map from color id enum to the
// stringized name of the color id enum for use in extracting the color id enum
// in string format.... | Zhao-PengFei35/chromium_src_4 | ui/color/color_id_map_macros.inc | Pawn | unknown | 937 |
// 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/color/color_metrics.h"
#include "base/command_line.h"
#include "base/metrics/histogram_functions.h"
namespace {
// Estimated upper limit of what we should recor... | Zhao-PengFei35/chromium_src_4 | ui/color/color_metrics.cc | C++ | unknown | 1,837 |
// 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_COLOR_COLOR_METRICS_H_
#define UI_COLOR_COLOR_METRICS_H_
#include "base/component_export.h"
namespace base {
class TimeDelta;
} // namespace base
namespace ui {
... | Zhao-PengFei35/chromium_src_4 | ui/color/color_metrics.h | C++ | unknown | 790 |
// 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/color/color_mixer.h"
#include <utility>
#include "base/logging.h"
#include "base/ranges/algorithm.h"
#include "ui/color/color_provider_utils.h"
#include "ui/colo... | Zhao-PengFei35/chromium_src_4 | ui/color/color_mixer.cc | C++ | unknown | 2,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_COLOR_COLOR_MIXER_H_
#define UI_COLOR_COLOR_MIXER_H_
#include <map>
#include <set>
#include "base/component_export.h"
#include "base/functional/callback_forward.h"... | Zhao-PengFei35/chromium_src_4 | ui/color/color_mixer.h | C++ | unknown | 3,084 |
// 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/color/color_mixer.h"
#include <set>
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "testing/gtest/include/gtest/gtest.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/color/color_mixer_unittest.cc | C++ | unknown | 4,464 |
// 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/color/color_mixers.h"
#include "ui/base/ui_base_features.h"
#include "ui/color/core_default_color_mixer.h"
#include "ui/color/material_ui_color_mixer.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/color/color_mixers.cc | C++ | unknown | 1,207 |