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 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_GFX_WIN_MSG_UTIL_H_
#define UI_GFX_WIN_MSG_UTIL_H_
#include <ostream>
#include "base/memory/weak_ptr.h"
#include "base/notreached.h"
#include "ui/gfx/geometry/poin... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/msg_util.h | C++ | unknown | 101,568 |
// 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/gfx/win/physical_size.h"
#include <windows.h>
#include <setupapi.h>
#include <iostream>
#include <memory>
#include "base/check_op.h"
#include "base/memory/free_... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/physical_size.cc | C++ | unknown | 6,135 |
// 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_GFX_WIN_PHYSICAL_SIZE_H_
#define UI_GFX_WIN_PHYSICAL_SIZE_H_
#include <string>
#include <vector>
#include "ui/gfx/gfx_export.h"
namespace gfx {
struct PhysicalDi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/physical_size.h | C++ | unknown | 785 |
// 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/gfx/win/rendering_window_manager.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/no_destructor.h"
#include "base/task/single_thread_... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/rendering_window_manager.cc | C++ | unknown | 2,645 |
// 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_GFX_WIN_RENDERING_WINDOW_MANAGER_H_
#define UI_GFX_WIN_RENDERING_WINDOW_MANAGER_H_
#include <windows.h>
#include "base/containers/flat_map.h"
#include "base/memory... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/rendering_window_manager.h | C++ | unknown | 1,939 |
// 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_GFX_WIN_SCOPED_SET_MAP_MODE_H_
#define UI_GFX_WIN_SCOPED_SET_MAP_MODE_H_
#include <windows.h>
#include "base/check_op.h"
namespace gfx {
// Helper class for sett... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/scoped_set_map_mode.h | C++ | unknown | 928 |
// 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/gfx/win/singleton_hwnd.h"
#include "base/memory/singleton.h"
#include "base/task/current_thread.h"
#include "ui/gfx/win/singleton_hwnd_observer.h"
namespace gfx ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd.cc | C++ | unknown | 2,087 |
// 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_GFX_WIN_SINGLETON_HWND_H_
#define UI_GFX_WIN_SINGLETON_HWND_H_
#include <windows.h>
#include "base/observer_list.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd.h | C++ | unknown | 1,598 |
// 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/gfx/win/singleton_hwnd_hot_key_observer.h"
#include "base/containers/flat_set.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "bas... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd_hot_key_observer.cc | C++ | unknown | 3,138 |
// 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_GFX_WIN_SINGLETON_HWND_HOT_KEY_OBSERVER_H_
#define UI_GFX_WIN_SINGLETON_HWND_HOT_KEY_OBSERVER_H_
#include "base/win/windows_types.h"
#include "ui/gfx/gfx_export.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd_hot_key_observer.h | C++ | unknown | 1,943 |
// 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/gfx/win/singleton_hwnd_observer.h"
#include "ui/gfx/win/singleton_hwnd.h"
namespace gfx {
SingletonHwndObserver::SingletonHwndObserver(const WndProc& wnd_proc)
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd_observer.cc | C++ | unknown | 945 |
// 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_GFX_WIN_SINGLETON_HWND_OBSERVER_H_
#define UI_GFX_WIN_SINGLETON_HWND_OBSERVER_H_
#include <windows.h>
#include "base/functional/callback.h"
#include "ui/gfx/gfx_ex... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/singleton_hwnd_observer.h | C++ | unknown | 1,259 |
// 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/gfx/win/text_analysis_source.h"
#include "base/check.h"
namespace gfx {
namespace win {
HRESULT TextAnalysisSource::Create(
IDWriteTextAnalysisSource** text... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/text_analysis_source.cc | C++ | unknown | 3,107 |
// 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_GFX_WIN_TEXT_ANALYSIS_SOURCE_H_
#define UI_GFX_WIN_TEXT_ANALYSIS_SOURCE_H_
#include <dwrite.h>
#include <wrl.h>
#include <string>
#include "ui/gfx/gfx_export.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/text_analysis_source.h | C++ | unknown | 2,866 |
// 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/gfx/win/text_analysis_source.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/win/direct_write.h"
namespace mswr = Microsoft::WRL;
namespace g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/text_analysis_source_unittest.cc | C++ | unknown | 3,948 |
// 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/gfx/win/window_impl.h"
#include <list>
#include "base/at_exit.h"
#include "base/debug/alias.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/window_impl.cc | C++ | unknown | 10,113 |
// 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_GFX_WIN_WINDOW_IMPL_H_
#define UI_GFX_WIN_WINDOW_IMPL_H_
#include <string>
#include "base/check_op.h"
#include "base/memory/weak_ptr.h"
#include "ui/gfx/geometry/r... | Zhao-PengFei35/chromium_src_4 | ui/gfx/win/window_impl.h | C++ | unknown | 4,827 |
include_rules = [
"+ui/events/platform/platform_event_source.h",
"+third_party/libx11",
"+third_party/libxcb-keysyms",
"+third_party/x11proto",
]
| Zhao-PengFei35/chromium_src_4 | ui/gfx/x/DEPS | Python | unknown | 154 |
// 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/gfx/x/connection.h"
#include <xcb/xcb.h>
#include <xcb/xcbext.h>
#include <algorithm>
#include <string>
#include "base/auto_reset.h"
#include "base/command_line... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/connection.cc | C++ | unknown | 24,532 |
// 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_GFX_X_CONNECTION_H_
#define UI_GFX_X_CONNECTION_H_
#include "base/component_export.h"
#include "base/containers/circular_deque.h"
#include "base/containers/flat_map... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/connection.h | C++ | unknown | 13,164 |
// 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/gfx/x/connection.h"
#include "base/memory/ref_counted_memory.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/x/event.h"
#include "ui/gfx/x/futu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/connection_unittest.cc | C++ | unknown | 3,034 |
// 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/gfx/x/error.h"
namespace x11 {
Error::Error() = default;
Error::~Error() = default;
} // namespace x11
| Zhao-PengFei35/chromium_src_4 | ui/gfx/x/error.cc | C++ | unknown | 265 |
// 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_GFX_X_ERROR_H_
#define UI_GFX_X_ERROR_H_
#include <string>
#include "base/component_export.h"
namespace x11 {
// This class is a generic interface for X11 errors... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/error.h | C++ | unknown | 584 |
// 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/gfx/x/event.h"
#include <xcb/xcb.h>
#include <cstring>
#include "base/check_op.h"
#include "base/memory/scoped_refptr.h"
#include "ui/gfx/x/connection.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/event.cc | C++ | unknown | 3,005 |
// 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_GFX_X_EVENT_H_
#define UI_GFX_X_EVENT_H_
#include <cstdint>
#include <utility>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "base/m... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/event.h | C++ | unknown | 2,761 |
// 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/gfx/x/future.h"
namespace x11 {
FutureBase::FutureBase() = default;
FutureBase::FutureBase(std::unique_ptr<Connection::FutureImpl> impl)
: impl_(std::move(i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/future.cc | C++ | unknown | 742 |
// 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_GFX_X_FUTURE_H_
#define UI_GFX_X_FUTURE_H_
#include "base/component_export.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto_types.h"
namespace x11 {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/future.h | C++ | unknown | 4,224 |
# 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.
# This script generates header/source files with C++ language bindings
# for the X11 protocol and its extensions. The protocol information
# is obtained from xcbproto which provi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/gen_xproto.py | Python | unknown | 64,217 |
// 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/gfx/x/keyboard_state.h"
#include "base/i18n/case_conversion.h"
#include "base/memory/raw_ptr.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/future.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/keyboard_state.cc | C++ | unknown | 4,376 |
// 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_GFX_X_KEYBOARD_STATE_H_
#define UI_GFX_X_KEYBOARD_STATE_H_
#include <memory>
#include "ui/gfx/x/xproto.h"
namespace x11 {
class Connection;
// This is an interf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/keyboard_state.h | C++ | unknown | 902 |
// 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_GFX_X_KEYSYMS_KEYSYMS_H_
#define UI_GFX_X_KEYSYMS_KEYSYMS_H_
#include <cstdint>
#include "third_party/x11proto/keysymdef.h"
#endif // UI_GFX_X_KEYSYMS_KEYSYMS_H_... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/keysyms/keysyms.h | C++ | unknown | 321 |
// 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/gfx/x/property_cache.h"
#include <limits>
#include "base/check_op.h"
#include "ui/gfx/x/event.h"
#include "ui/gfx/x/xproto.h"
namespace x11 {
PropertyCache::Pr... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/property_cache.cc | C++ | unknown | 2,847 |
// 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_GFX_X_PROPERTY_CACHE_H_
#define UI_GFX_X_PROPERTY_CACHE_H_
#include <vector>
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#include "bas... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/property_cache.h | C++ | unknown | 2,393 |
// 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/gfx/x/property_cache.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/x/x11_atom_cache.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/property_cache_unittest.cc | C++ | unknown | 5,329 |
// 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/gfx/x/ref_counted_fd.h"
#include "base/check_op.h"
#include "base/files/scoped_file.h"
#include "base/memory/scoped_refptr.h"
#include "base/posix/eintr_wrapper.h... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/ref_counted_fd.cc | C++ | unknown | 1,119 |
// 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_GFX_X_REF_COUNTED_FD_H_
#define UI_GFX_X_REF_COUNTED_FD_H_
#include "base/component_export.h"
#include "base/files/scoped_file.h"
#include "base/memory/ref_counted.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/ref_counted_fd.h | C++ | unknown | 1,348 |
// 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/gfx/x/scoped_ignore_errors.h"
namespace x11 {
namespace {
void IgnoreErrors(const Error* error, const char* request_name) {}
} // namespace
ScopedIgnoreError... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/scoped_ignore_errors.cc | C++ | unknown | 614 |
// 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_GFX_X_SCOPED_IGNORE_ERRORS_H_
#define UI_GFX_X_SCOPED_IGNORE_ERRORS_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "ui/gfx/x/connec... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/scoped_ignore_errors.h | C++ | unknown | 726 |
// 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/gfx/x/window_cache.h"
#include "base/containers/adapters.h"
#include "base/containers/contains.h"
#include "base/containers/cxx20_erase_vector.h"
#include "base/f... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/window_cache.cc | C++ | unknown | 13,887 |
// 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_GFX_X_WINDOW_CACHE_H_
#define UI_GFX_X_WINDOW_CACHE_H_
#include <memory>
#include <unordered_map>
#include <vector>
#include "base/component_export.h"
#include "ba... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/window_cache.h | C++ | unknown | 6,022 |
// 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/gfx/x/window_cache.h"
#include "base/memory/raw_ptr.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/x/conne... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/window_cache_unittest.cc | C++ | unknown | 14,380 |
// 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/gfx/x/x11_atom_cache.h"
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/memory/singleton.h"
#include "ui/gfx/x/connection.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_atom_cache.cc | C++ | unknown | 5,789 |
// 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_GFX_X_X11_ATOM_CACHE_H_
#define UI_GFX_X_X11_ATOM_CACHE_H_
#include <map>
#include <string>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_atom_cache.h | C++ | unknown | 1,604 |
// 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/gfx/x/x11_path.h"
#include <memory>
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkRegion.h"
namespace x11 {
std::... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_path.cc | C++ | unknown | 1,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.
#ifndef UI_GFX_X_X11_PATH_H_
#define UI_GFX_X_X11_PATH_H_
#include "base/component_export.h"
#include "ui/gfx/x/xproto.h"
class SkPath;
class SkRegion;
namespace x11 {
// C... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_path.h | C++ | unknown | 809 |
// 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/gfx/x/x11_window_event_manager.h"
#include <stddef.h>
#include "base/memory/singleton.h"
#include "ui/gfx/x/future.h"
namespace x11 {
namespace {
// Asks the ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_window_event_manager.cc | C++ | unknown | 3,476 |
// 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_GFX_X_X11_WINDOW_EVENT_MANAGER_H_
#define UI_GFX_X_X11_WINDOW_EVENT_MANAGER_H_
#include <map>
#include "base/component_export.h"
#include "base/memory/weak_ptr.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/x11_window_event_manager.h | C++ | unknown | 2,413 |
// 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_GFX_X_XLIB_H_
#define UI_GFX_X_XLIB_H_
extern "C" {
int XInitThreads(void);
struct _XDisplay* XOpenDisplay(const char*);
int XCloseDisplay(struct _XDisplay*);
int X... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xlib.h | C | unknown | 516 |
// 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/gfx/x/xlib_support.h"
#include "base/check.h"
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/no_destructor.h"
#include "library_load... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xlib_support.cc | C++ | unknown | 3,615 |
// 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_GFX_X_XLIB_SUPPORT_H_
#define UI_GFX_X_XLIB_SUPPORT_H_
#include <memory>
#include <string>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
str... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xlib_support.h | C++ | unknown | 1,950 |
// 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_GFX_X_XLIB_XCB_H_
#define UI_GFX_X_XLIB_XCB_H_
extern "C" {
struct xcb_connection_t* XGetXCBConnection(struct _XDisplay*);
}
#endif // UI_GFX_X_XLIB_XCB_H_
| Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xlib_xcb.h | C | unknown | 314 |
// 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/gfx/x/xproto_internal.h"
#include <stdint.h>
#include <xcb/xcb.h>
#include <xcb/xcbext.h>
namespace x11 {
MallocedRefCountedMemory::MallocedRefCountedMemory(voi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_internal.cc | C++ | unknown | 1,520 |
// 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_GFX_X_XPROTO_INTERNAL_H_
#define UI_GFX_X_XPROTO_INTERNAL_H_
#include "base/memory/raw_ptr.h"
#ifndef IS_X11_IMPL
#error "This file should only be included by //ui... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_internal.h | C++ | unknown | 6,205 |
// 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/gfx/x/xproto_types.h"
#include <xcb/xcbext.h>
#include "base/memory/scoped_refptr.h"
#include "ui/gfx/x/connection.h"
#include "ui/gfx/x/xproto_internal.h"
name... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_types.cc | C++ | unknown | 2,384 |
// 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_GFX_X_XPROTO_TYPES_H_
#define UI_GFX_X_XPROTO_TYPES_H_
#include <cstdint>
#include <memory>
#include "base/component_export.h"
#include "base/functional/bind.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_types.h | C++ | unknown | 3,381 |
// 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/gfx/x/xproto_util.h"
namespace x11 {
void DeleteProperty(x11::Window window, x11::Atom name) {
x11::Connection::Get()->DeleteProperty({
.window = static_... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_util.cc | C++ | unknown | 1,232 |
// 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_GFX_X_XPROTO_UTIL_H_
#define UI_GFX_X_XPROTO_UTIL_H_
#include <cstdint>
#include "base/component_export.h"
#include "base/ranges/algorithm.h"
#include "ui/gfx/x/co... | Zhao-PengFei35/chromium_src_4 | ui/gfx/x/xproto_util.h | C++ | unknown | 4,751 |
include_rules = [
"+cc/base",
"+components/metal_util/types.h",
"+components/viz/common/resources/resource_format.h",
"+mojo/public/cpp/bindings",
"+third_party/khronos",
"+third_party/libsync",
"+third_party/skia",
"+ui/events",
"+ui/base/x",
"+ui/gfx",
"+ui/ozone/buildflags.h",
"+third_party/a... | Zhao-PengFei35/chromium_src_4 | ui/gl/DEPS | Python | unknown | 1,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.
// This file contains Chromium-specific GL extensions declarations.
#ifndef UI_GL_GL_GLEXTCHROMIUM_H_
#define UI_GL_GL_GLEXTCHROMIUM_H_
#ifdef __cplusplus
extern "C" {
#endif... | Zhao-PengFei35/chromium_src_4 | ui/gl/GL/glextchromium.h | C | unknown | 712 |
include_rules = [
"+ui/gl/gl_jni_headers",
]
| Zhao-PengFei35/chromium_src_4 | ui/gl/android/DEPS | Python | unknown | 47 |
// 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/gl/android/egl_fence_utils.h"
#include "ui/gl/gl_fence_android_native_fence_sync.h"
namespace gl {
base::ScopedFD CreateEglFenceAndExportFd() {
std::unique_pt... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/egl_fence_utils.cc | C++ | unknown | 2,228 |
// 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_GL_ANDROID_EGL_FENCE_UTILS_H_
#define UI_GL_ANDROID_EGL_FENCE_UTILS_H_
#include "base/files/scoped_file.h"
#include "ui/gl/gl_export.h"
namespace gl {
// Create a... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/egl_fence_utils.h | C++ | unknown | 636 |
// 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/gl/android/scoped_a_native_window.h"
#include <android/native_window_jni.h>
#include "base/android/jni_android.h"
#include "ui/gl/android/scoped_java_surface.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_a_native_window.cc | C++ | unknown | 1,860 |
// 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_GL_ANDROID_SCOPED_A_NATIVE_WINDOW_H_
#define UI_GL_ANDROID_SCOPED_A_NATIVE_WINDOW_H_
#include <cstddef>
#include "base/memory/raw_ptr_exclusion.h"
#include "ui/gl/... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_a_native_window.h | C++ | unknown | 1,481 |
// 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/gl/android/scoped_java_surface.h"
#include <utility>
#include "base/check.h"
#include "ui/gl/android/surface_texture.h"
#include "ui/gl/surface_jni_headers/Surfa... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_java_surface.cc | C++ | unknown | 2,230 |
// 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_GL_ANDROID_SCOPED_JAVA_SURFACE_H_
#define UI_GL_ANDROID_SCOPED_JAVA_SURFACE_H_
#include <jni.h>
#include <cstddef>
#include "base/android/scoped_java_ref.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_java_surface.h | C++ | unknown | 2,171 |
// 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/gl/android/scoped_java_surface_control.h"
#include <utility>
#include "base/android/jni_android.h"
#include "ui/gl/gl_jni_headers/ScopedJavaSurfaceControl_jni.h"... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_java_surface_control.cc | C++ | unknown | 2,330 |
// 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_GL_ANDROID_SCOPED_JAVA_SURFACE_CONTROL_H_
#define UI_GL_ANDROID_SCOPED_JAVA_SURFACE_CONTROL_H_
#include <jni.h>
#include <cstddef>
#include "base/android/scoped_ja... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/scoped_java_surface_control.h | C++ | unknown | 1,931 |
// 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/gl/android/surface_texture.h"
#include <utility>
#include "base/android/jni_android.h"
#include "base/check.h"
#include "base/debug/crash_logging.h"
#include "ui... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/surface_texture.cc | C++ | unknown | 5,311 |
// 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_GL_ANDROID_SURFACE_TEXTURE_H_
#define UI_GL_ANDROID_SURFACE_TEXTURE_H_
#include <jni.h>
#include "base/android/scoped_java_ref.h"
#include "base/functional/callbac... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/surface_texture.h | C++ | unknown | 3,165 |
// 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/gl/android/surface_texture_listener.h"
#include <utility>
#include "base/location.h"
#include "base/task/single_thread_task_runner.h"
#include "ui/gl/gl_jni_head... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/surface_texture_listener.cc | C++ | unknown | 1,278 |
// 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_GL_ANDROID_SURFACE_TEXTURE_LISTENER_H_
#define UI_GL_ANDROID_SURFACE_TEXTURE_LISTENER_H_
#include <jni.h>
#include "base/android/scoped_java_ref.h"
#include "base/... | Zhao-PengFei35/chromium_src_4 | ui/gl/android/surface_texture_listener.h | C++ | unknown | 1,849 |
// 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/gl/angle_platform_impl.h"
#include "base/base64.h"
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gl/angle_platform_impl.cc | C++ | unknown | 7,323 |
// 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_GL_ANGLE_PLATFORM_IMPL_H_
#define UI_GL_ANGLE_PLATFORM_IMPL_H_
// Implements the ANGLE platform interface, for functionality like
// histograms and trace profiling.... | Zhao-PengFei35/chromium_src_4 | ui/gl/angle_platform_impl.h | C++ | unknown | 567 |
// 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/gl/buffer_format_utils.h"
#include "base/notreached.h"
#include "ui/gl/gl_bindings.h"
namespace gl {
unsigned BufferFormatToGLInternalFormat(gfx::BufferFormat f... | Zhao-PengFei35/chromium_src_4 | ui/gl/buffer_format_utils.cc | C++ | unknown | 1,527 |
// 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_GL_BUFFER_FORMAT_UTILS_H_
#define UI_GL_BUFFER_FORMAT_UTILS_H_
#include "ui/gfx/buffer_types.h"
#include "ui/gl/gl_export.h"
namespace gl {
// Map buffer format t... | Zhao-PengFei35/chromium_src_4 | ui/gl/buffer_format_utils.h | C++ | unknown | 521 |
// 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/gl/ca_renderer_layer_params.h"
namespace ui {
CARendererLayerParams::CARendererLayerParams(
bool is_clipped,
const gfx::Rect clip_rect,
const gfx::RR... | Zhao-PengFei35/chromium_src_4 | ui/gl/ca_renderer_layer_params.cc | C++ | unknown | 1,588 |
// 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_GL_CA_RENDERER_LAYER_PARAMS_H_
#define UI_GL_CA_RENDERER_LAYER_PARAMS_H_
#include "base/memory/raw_ptr.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gl/ca_renderer_layer_params.h | C++ | unknown | 2,511 |
// 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/gl/child_window_win.h"
#include <memory>
#include "base/compiler_specific.h"
#include "base/debug/alias.h"
#include "base/functional/bind.h"
#include "base/loggi... | Zhao-PengFei35/chromium_src_4 | ui/gl/child_window_win.cc | C++ | unknown | 5,222 |
// 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_GL_CHILD_WINDOW_WIN_H_
#define UI_GL_CHILD_WINDOW_WIN_H_
#include "base/memory/weak_ptr.h"
#include "base/task/task_runner.h"
#include "base/threading/thread.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gl/child_window_win.h | C++ | unknown | 1,269 |
// 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/gl/dc_layer_overlay_image.h"
#if BUILDFLAG(IS_WIN)
#include <d3d11.h>
#include <dcomp.h>
#include <dxgi.h>
#include <unknwn.h>
#endif
#include "base/notreached.h... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_overlay_image.cc | C++ | unknown | 2,382 |
// 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_GL_DC_LAYER_OVERLAY_IMAGE_H_
#define UI_GL_DC_LAYER_OVERLAY_IMAGE_H_
#include "ui/gl/gl_export.h"
#include <wrl/client.h>
#include "ui/gl/dcomp_surface_proxy.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_overlay_image.h | C++ | unknown | 4,384 |
// 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/gl/dc_layer_overlay_params.h"
namespace gl {
DCLayerOverlayParams::DCLayerOverlayParams() = default;
DCLayerOverlayParams::~DCLayerOverlayParams() = default;
} ... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_overlay_params.cc | C++ | unknown | 337 |
// 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_GL_DC_LAYER_OVERLAY_PARAMS_H_
#define UI_GL_DC_LAYER_OVERLAY_PARAMS_H_
#include "base/functional/callback.h"
#include "base/memory/scoped_refptr.h"
#include "third_... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_overlay_params.h | C++ | unknown | 1,778 |
// 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 <d3d11_1.h>
#include "ui/gl/dc_layer_tree.h"
#include <utility>
#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
#include "base/metrics/histogram_fu... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_tree.cc | C++ | unknown | 25,258 |
// 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_GL_DC_LAYER_TREE_H_
#define UI_GL_DC_LAYER_TREE_H_
#include <windows.h>
#include <d3d11.h>
#include <dcomp.h>
#include <wrl/client.h>
#include <memory>
#include "... | Zhao-PengFei35/chromium_src_4 | ui/gl/dc_layer_tree.h | C++ | unknown | 13,663 |
// 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/gl/dcomp_presenter.h"
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/metrics... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_presenter.cc | C++ | unknown | 10,513 |
// 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_GL_DCOMP_PRESENTER_H_
#define UI_GL_DCOMP_PRESENTER_H_
#include <d3d11.h>
#include <dcomp.h>
#include <windows.h>
#include <wrl/client.h>
#include "base/containers... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_presenter.h | C++ | unknown | 5,504 |
// 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/gl/dcomp_presenter.h"
#include <wrl/client.h>
#include <wrl/implements.h>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_presenter_unittest.cc | C++ | unknown | 48,580 |
// 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_GL_DCOMP_SURFACE_PROXY_H_
#define UI_GL_DCOMP_SURFACE_PROXY_H_
#include "base/memory/ref_counted.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/video_types.h... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_surface_proxy.h | C++ | unknown | 890 |
// 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/gl/dcomp_surface_registry.h"
#include "base/logging.h"
#include "base/no_destructor.h"
namespace gl {
DCOMPSurfaceRegistry* DCOMPSurfaceRegistry::GetInstance() {... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_surface_registry.cc | C++ | unknown | 1,647 |
// 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_GL_DCOMP_SURFACE_REGISTRY_H_
#define UI_GL_DCOMP_SURFACE_REGISTRY_H_
#include "base/containers/flat_map.h"
#include "base/no_destructor.h"
#include "base/unguessabl... | Zhao-PengFei35/chromium_src_4 | ui/gl/dcomp_surface_registry.h | C++ | unknown | 1,827 |
// 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/gl/debug_utils.h"
#include <d3d11.h>
#include <dxgi.h>
namespace gl {
namespace {
// ID3D11DeviceChild and IDXGIObject implement SetPrivateData with
// the exa... | Zhao-PengFei35/chromium_src_4 | ui/gl/debug_utils.cc | C++ | unknown | 928 |
// 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_GL_DEBUG_UTILS_H_
#define UI_GL_DEBUG_UTILS_H_
#include "base/win/windows_types.h"
struct ID3D11DeviceChild;
struct IDXGIObject;
namespace gl {
// Set the debug ... | Zhao-PengFei35/chromium_src_4 | ui/gl/debug_utils.h | C++ | unknown | 675 |
// 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_GL_DELEGATED_INK_POINT_RENDERER_GPU_H_
#define UI_GL_DELEGATED_INK_POINT_RENDERER_GPU_H_
#include <dcomp.h>
#include <wrl/client.h>
#include <algorithm>
#include <... | Zhao-PengFei35/chromium_src_4 | ui/gl/delegated_ink_point_renderer_gpu.h | C++ | unknown | 28,713 |
// 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/gl/delegated_ink_point_renderer_gpu.h"
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/time/time.h"
#include "testin... | Zhao-PengFei35/chromium_src_4 | ui/gl/delegated_ink_point_renderer_gpu_unittest.cc | C++ | unknown | 18,697 |
// 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/gl/direct_composition_child_surface_win.h"
#include <d3d11_1.h>
#include <dcomptypes.h>
#include "base/debug/alias.h"
#include "base/debug/dump_without_crashing.... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_child_surface_win.cc | C++ | unknown | 20,743 |
// 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_GL_DIRECT_COMPOSITION_CHILD_SURFACE_WIN_H_
#define UI_GL_DIRECT_COMPOSITION_CHILD_SURFACE_WIN_H_
#include <windows.h>
#include <d3d11.h>
#include <dcomp.h>
#include... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_child_surface_win.h | C++ | unknown | 4,260 |
// 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/gl/direct_composition_support.h"
#include <dxgi1_6.h>
#include "base/command_line.h"
#include "base/metrics/histogram_functions.h"
#include "base/metrics/histogr... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_support.cc | C++ | unknown | 28,976 |
// 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_GL_DIRECT_COMPOSITION_SUPPORT_H_
#define UI_GL_DIRECT_COMPOSITION_SUPPORT_H_
#include <d3d11.h>
#include <dcomp.h>
#include <windows.h>
#include <wrl/client.h>
#in... | Zhao-PengFei35/chromium_src_4 | ui/gl/direct_composition_support.h | C++ | unknown | 7,076 |