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 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_COLOR_TRANSFORM_H_
#define UI_GFX_COLOR_TRANSFORM_H_
#include <memory>
#include <string>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "thir... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_transform.h | C++ | unknown | 3,702 |
// 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 <stddef.h>
#include <stdint.h>
#include <random>
#include "base/at_exit.h"
#include "base/logging.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/color_transform.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_transform_fuzzer.cc | C++ | unknown | 2,659 |
// 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 <tuple>
#include <vector>
#include "base/logging.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/effects/SkRuntimeEffect.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_transform_unittest.cc | C++ | unknown | 33,229 |
// 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/color_utils.h"
#include <stdint.h>
#include <algorithm>
#include <cmath>
#include <ostream>
#include <vector>
#include "base/check_op.h"
#include "base/notr... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_utils.cc | C++ | unknown | 27,968 |
// 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_COLOR_UTILS_H_
#define UI_GFX_COLOR_UTILS_H_
#include <string>
#include <tuple>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/s... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_utils.h | C++ | unknown | 9,490 |
// Copyright 2006-2008 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <stdlib.h>
#include "skia/ext/platform_canvas.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "thi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_utils_unittest.cc | C++ | unknown | 18,005 |
// 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/decorated_text.h"
namespace gfx {
DecoratedText::RangedAttribute::RangedAttribute(const gfx::Range& range,
co... | Zhao-PengFei35/chromium_src_4 | ui/gfx/decorated_text.cc | C++ | unknown | 482 |
// 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_DECORATED_TEXT_H_
#define UI_GFX_DECORATED_TEXT_H_
#include <string>
#include <vector>
#include "ui/gfx/font.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/decorated_text.h | C++ | unknown | 1,190 |
// 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_GFX_DECORATED_TEXT_MAC_H_
#define UI_GFX_DECORATED_TEXT_MAC_H_
#include "ui/gfx/gfx_export.h"
@class NSAttributedString;
namespace gfx {
struct DecoratedText;
/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/decorated_text_mac.h | Objective-C | unknown | 546 |
// 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.
#import "ui/gfx/decorated_text_mac.h"
#import <Cocoa/Cocoa.h>
#include <CoreText/CoreText.h>
#include "base/mac/foundation_util.h"
#import "base/mac/scoped_nsobject.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/decorated_text_mac.mm | Objective-C++ | unknown | 1,662 |
// 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/delegated_ink_metadata.h"
#include <inttypes.h>
#include "base/strings/stringprintf.h"
namespace gfx {
std::string DelegatedInkMetadata::ToString() const {... | Zhao-PengFei35/chromium_src_4 | ui/gfx/delegated_ink_metadata.cc | C++ | unknown | 750 |
// 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_DELEGATED_INK_METADATA_H_
#define UI_GFX_DELEGATED_INK_METADATA_H_
#include <string>
#include "base/time/time.h"
#include "third_party/skia/include/core/SkColo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/delegated_ink_metadata.h | C++ | unknown | 3,884 |
// 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/delegated_ink_point.h"
#include <inttypes.h>
#include "base/strings/stringprintf.h"
#include "ui/gfx/delegated_ink_metadata.h"
namespace gfx {
bool Delegat... | Zhao-PengFei35/chromium_src_4 | ui/gfx/delegated_ink_point.cc | C++ | unknown | 1,568 |
// 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_DELEGATED_INK_POINT_H_
#define UI_GFX_DELEGATED_INK_POINT_H_
#include <limits>
#include <string>
#include "base/time/time.h"
#include "mojo/public/cpp/bindings... | Zhao-PengFei35/chromium_src_4 | ui/gfx/delegated_ink_point.h | C++ | unknown | 2,677 |
// 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/delegated_ink_metadata.h"
#include "ui/gfx/delegated_ink_point.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
// Test confirms that Deleg... | Zhao-PengFei35/chromium_src_4 | ui/gfx/delegated_ink_unittest.cc | C++ | unknown | 3,472 |
// 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/display_color_spaces.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
namespace gfx {
namespace {
const ContentColorUsage kAllColo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/display_color_spaces.cc | C++ | unknown | 6,635 |
// 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_DISPLAY_COLOR_SPACES_H_
#define UI_GFX_DISPLAY_COLOR_SPACES_H_
#include <string>
#include <vector>
#include "skia/ext/skcolorspace_primaries.h"
#include "third... | Zhao-PengFei35/chromium_src_4 | ui/gfx/display_color_spaces.h | C++ | unknown | 6,216 |
// 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/gfx/extension_set.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
namespace gfx {
ExtensionSet MakeExtensionSet(const base::Strin... | Zhao-PengFei35/chromium_src_4 | ui/gfx/extension_set.cc | C++ | unknown | 925 |
// 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_GFX_EXTENSION_SET_H_
#define UI_GFX_EXTENSION_SET_H_
#include "base/containers/flat_set.h"
#include "base/strings/string_piece.h"
#include "ui/gfx/gfx_export.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/gfx/extension_set.h | C++ | unknown | 959 |
// 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/gfx/favicon_size.h"
namespace gfx {
const int kFaviconSize = 16;
void CalculateFaviconTargetSize(int* width, int* height) {
if (*width > kFaviconSize || *heig... | Zhao-PengFei35/chromium_src_4 | ui/gfx/favicon_size.cc | C++ | unknown | 740 |
// 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_GFX_FAVICON_SIZE_H_
#define UI_GFX_FAVICON_SIZE_H_
#include "ui/gfx/gfx_export.h"
namespace gfx {
// Size (along each axis) of the favicon.
GFX_EXPORT extern cons... | Zhao-PengFei35/chromium_src_4 | ui/gfx/favicon_size.h | C++ | unknown | 649 |
// 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/font.h"
#include <algorithm>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "ui/gfx/platform_font.h"
#ifndef NDEB... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font.cc | C++ | unknown | 3,198 |
// 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_FONT_H_
#define UI_GFX_FONT_H_
#include <string>
#include "base/memory/scoped_refptr.h"
#include "build/build_config.h"
#include "ui/gfx/gfx_export.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font.h | C++ | unknown | 4,588 |
// 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_FONT_FALLBACK_H_
#define UI_GFX_FONT_FALLBACK_H_
#include <string>
#include <vector>
#include "base/strings/string_piece_forward.h"
#include "build/build_confi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback.h | C++ | unknown | 1,009 |
// 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/gfx/font_fallback_linux.h"
#include <fontconfig/fontconfig.h>
#include <map>
#include <memory>
#include <string>
#include "base/containers/lru_cache.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_linux.cc | C++ | unknown | 17,563 |
// 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_FONT_FALLBACK_LINUX_H_
#define UI_GFX_FONT_FALLBACK_LINUX_H_
#include <string>
#include "base/files/file_path.h"
#include "third_party/icu/source/common/unicod... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_linux.h | C++ | unknown | 1,500 |
// 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/gfx/font_fallback_linux.h"
#include "base/files/file_path.h"
#include "base/strings/string_piece.h"
#include "base/strings/utf_string_conversions.h"
#include "tes... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_linux_unittest.cc | C++ | unknown | 3,864 |
// 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/font_fallback.h"
#include <CoreText/CoreText.h>
#import <Foundation/Foundation.h>
#include "base/i18n/char_iterator.h"
#include "base/mac/foundation_util.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_mac.mm | Objective-C++ | unknown | 3,172 |
// Copyright 2015 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/font_fallback.h"
#include "base/strings/string_piece.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
#include "test... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_mac_unittest.cc | C++ | unknown | 2,734 |
// 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/font_fallback.h"
#include <string>
#include <vector>
#include "base/strings/string_piece.h"
#include "base/strings/utf_string_conversions.h"
#include "base/t... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_skia.cc | C++ | unknown | 1,514 |
// 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/font_fallback_skia_impl.h"
#include <set>
#include <string>
#include "third_party/icu/source/common/unicode/normalizer2.h"
#include "third_party/icu/source/c... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_skia_impl.cc | C++ | unknown | 5,697 |
// 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_FONT_FALLBACK_SKIA_IMPL_H_
#define UI_GFX_FONT_FALLBACK_SKIA_IMPL_H_
#include <string>
#include "base/strings/string_piece.h"
#include "ui/gfx/font.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_skia_impl.h | C++ | unknown | 692 |
// 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/font_fallback.h"
#include "base/logging.h"
#include "base/strings/string_piece.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_confi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_skia_unittest.cc | C++ | unknown | 3,513 |
// 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 <tuple>
#include "base/containers/contains.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_unittest.cc | C++ | unknown | 9,654 |
// 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/font_fallback_win.h"
#include <algorithm>
#include <map>
#include "base/memory/singleton.h"
#include "base/strings/string_piece.h"
#include "base/strings/str... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_win.cc | C++ | unknown | 8,956 |
// 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_FONT_FALLBACK_WIN_H_
#define UI_GFX_FONT_FALLBACK_WIN_H_
#include <stddef.h>
#include <string>
#include <vector>
#include "ui/gfx/font.h"
#include "ui/gfx/fon... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_win.h | C++ | unknown | 1,273 |
// 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/font_fallback_win.h"
#include "base/strings/string_piece.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_fallback_win_unittest.cc | C++ | unknown | 4,944 |
// 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/font_list.h"
#include <ostream>
#include "base/lazy_instance.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_list.cc | C++ | unknown | 8,104 |
// 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_FONT_LIST_H_
#define UI_GFX_FONT_LIST_H_
#include <string>
#include <vector>
#include "base/memory/scoped_refptr.h"
#include "ui/gfx/font.h"
#include "ui/gfx/g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_list.h | C++ | unknown | 7,517 |
// 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/gfx/font_list_impl.h"
#include <stddef.h>
#include <algorithm>
#include "base/check_op.h"
#include "base/strings/string_number_conversions.h"
#include "base/str... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_list_impl.cc | C++ | unknown | 7,243 |
// 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_FONT_LIST_IMPL_H_
#define UI_GFX_FONT_LIST_IMPL_H_
#include <string>
#include <vector>
#include "base/memory/ref_counted.h"
#include "ui/gfx/font.h"
namespace... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_list_impl.h | C++ | unknown | 4,440 |
// 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/font_list.h"
#include <algorithm>
#include <string>
#include <vector>
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_list_unittest.cc | C++ | unknown | 12,288 |
// 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/font_names_testing.h"
#include "build/build_config.h"
namespace gfx {
/*
Reference for fonts available on Android:
Jelly Bean:
https://android.googlesour... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_names_testing.cc | C++ | unknown | 1,806 |
// 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_FONT_NAMES_TESTING_H_
#define UI_GFX_FONT_NAMES_TESTING_H_
namespace gfx {
extern const char kTestFontName[];
extern const char kSymbolFontName[];
extern const... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_names_testing.h | C++ | unknown | 407 |
// 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/gfx/font_render_params.h"
#include "base/notreached.h"
namespace gfx {
// static
SkPixelGeometry FontRenderParams::SubpixelRenderingToSkiaPixelGeometry(
Fon... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params.cc | C++ | unknown | 1,318 |
// 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_FONT_RENDER_PARAMS_H_
#define UI_GFX_FONT_RENDER_PARAMS_H_
#include <string>
#include <vector>
#include "build/build_config.h"
#include "device/vr/buildflags/b... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params.h | C++ | unknown | 4,181 |
// 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/font_render_params.h"
#include <fontconfig/fontconfig.h>
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "base/command_line.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_linux.cc | C++ | unknown | 9,917 |
// 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_FONT_RENDER_PARAMS_LINUX_H_
#define UI_GFX_FONT_RENDER_PARAMS_LINUX_H_
#include "ui/gfx/font_render_params.h"
namespace gfx {
// Queries Fontconfig for render... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_linux.h | C++ | unknown | 677 |
// 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/gfx/font_render_params.h"
#include <fontconfig/fontconfig.h>
#include "base/check_op.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_linux_unittest.cc | C++ | unknown | 18,804 |
// 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/gfx/font_render_params.h"
#include "base/feature_list.h"
#include "base/notreached.h"
#include "ui/base/ui_base_features.h"
namespace gfx {
namespace {
// Retu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_mac.cc | C++ | unknown | 1,421 |
// 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/font_render_params.h"
#include "base/notreached.h"
namespace gfx {
namespace {
// Returns the system's default settings.
FontRenderParams LoadDefaults() {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_skia.cc | C++ | unknown | 1,509 |
// 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/gfx/font_render_params.h"
#include <memory>
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_render_params_win.cc | C++ | unknown | 4,370 |
// 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/font.h"
#include <string>
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "te... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_unittest.cc | C++ | unknown | 5,970 |
// 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/font_util.h"
#include "build/build_config.h"
#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_CHROMEOS)
#include <fontconfig/fontconfig.h>
#include "ui/gfx/linux/font... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_util.cc | C++ | unknown | 1,160 |
// 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_FONT_UTIL_H_
#define UI_GFX_FONT_UTIL_H_
#include "ui/gfx/gfx_export.h"
namespace gfx {
// Initialize the library fonts.
GFX_EXPORT void InitializeFonts();
}... | Zhao-PengFei35/chromium_src_4 | ui/gfx/font_util.h | C++ | unknown | 371 |
// 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_FRAME_DATA_H_
#define UI_GFX_FRAME_DATA_H_
#include <cstdint>
namespace gfx {
// Contains per frame data, and is passed along with SwapBuffer, PostSubbuffer,
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/frame_data.h | C++ | unknown | 811 |
// 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/gdi_util.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include "skia/ext/skia_utils_win.h"
namespace gfx {
void CreateBitmapV4HeaderForAR... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gdi_util.cc | C++ | unknown | 1,755 |
// 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_GDI_UTIL_H_
#define UI_GFX_GDI_UTIL_H_
#include <windows.h>
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
// Creates a BIT... | Zhao-PengFei35/chromium_src_4 | ui/gfx/gdi_util.h | C++ | unknown | 1,015 |
// 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/generic_shared_memory_id.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
namespace gfx {
base::trace_event::MemoryAllocatorDumpGui... | Zhao-PengFei35/chromium_src_4 | ui/gfx/generic_shared_memory_id.cc | C++ | unknown | 675 |
// 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_GENERIC_SHARED_MEMORY_ID_H_
#define UI_GFX_GENERIC_SHARED_MEMORY_ID_H_
#include <stddef.h>
#include <stdint.h>
#include <functional>
#include "base/hash/hash.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/generic_shared_memory_id.h | C++ | unknown | 2,062 |
// 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_GFX_GEOMETRY_ANGLE_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_ANGLE_CONVERSIONS_H_
#include "base/numerics/math_constants.h"
#include "ui/gfx/geometry/geometry_export.h... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/angle_conversions.h | C++ | unknown | 799 |
// 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/geometry/axis_transform2d.h"
#include "base/check_op.h"
#include "base/strings/stringprintf.h"
#include "ui/gfx/geometry/decomposed_transform.h"
namespace gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/axis_transform2d.cc | C++ | unknown | 1,075 |
// 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_GFX_GEOMETRY_AXIS_TRANSFORM2D_H_
#define UI_GFX_GEOMETRY_AXIS_TRANSFORM2D_H_
#include "base/check_op.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/axis_transform2d.h | C++ | unknown | 7,112 |
// 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/gfx/geometry/axis_transform2d.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/decomposed_transform.h"
#include "ui/gfx/geometry/test/g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/axis_transform2d_unittest.cc | C++ | unknown | 6,831 |
// 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/geometry/box_f.h"
#include <algorithm>
#include "base/check_op.h"
#include "base/strings/stringprintf.h"
namespace gfx {
std::string BoxF::ToString() const... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/box_f.cc | C++ | unknown | 1,686 |
// 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_GEOMETRY_BOX_F_H_
#define UI_GFX_GEOMETRY_BOX_F_H_
#include <iosfwd>
#include <string>
#include "ui/gfx/geometry/point3_f.h"
#include "ui/gfx/geometry/vector3d... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/box_f.h | C++ | unknown | 5,271 |
// 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 "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/box_f.h"
namespace gfx {
TEST(BoxTest, Constructors) {
EXPECT_EQ(BoxF(0.f, 0.f, 0.f, 0.f, 0.f, 0.f)... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/box_unittest.cc | C++ | unknown | 6,512 |
// 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_GEOMETRY_CLAMP_FLOAT_GEOMETRY_H_
#define UI_GFX_GEOMETRY_CLAMP_FLOAT_GEOMETRY_H_
#include <limits>
#include "base/numerics/safe_conversions.h"
namespace gfx {... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/clamp_float_geometry.h | C++ | unknown | 1,329 |
// 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/gfx/geometry/cubic_bezier.h"
#include <algorithm>
#include <cmath>
#include <limits>
#include "base/check_op.h"
namespace gfx {
namespace {
const int kMaxNewt... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/cubic_bezier.cc | C++ | unknown | 8,047 |
// 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_GEOMETRY_CUBIC_BEZIER_H_
#define UI_GFX_GEOMETRY_CUBIC_BEZIER_H_
#include "ui/gfx/geometry/geometry_export.h"
namespace gfx {
#define CUBIC_BEZIER_SPLINE_SAMP... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/cubic_bezier.h | C++ | unknown | 3,453 |
// 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/gfx/geometry/cubic_bezier.h"
#include <cmath>
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
namespace gfx {
namespace {
TEST(CubicBezierTest... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/cubic_bezier_unittest.cc | C++ | unknown | 13,003 |
// 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/geometry/decomposed_transform.h"
#include <cstring>
#include "base/strings/stringprintf.h"
namespace gfx {
std::string DecomposedTransform::ToString() cons... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/decomposed_transform.cc | C++ | unknown | 813 |
// 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_GEOMETRY_DECOMPOSED_TRANSFORM_H_
#define UI_GFX_GEOMETRY_DECOMPOSED_TRANSFORM_H_
#include "base/dcheck_is_on.h"
#include "ui/gfx/geometry/geometry_export.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/decomposed_transform.h | C++ | unknown | 1,206 |
// 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/gfx/geometry/dip_util.h"
#include "base/numerics/safe_conversions.h"
#include "build/build_config.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/dip_util.cc | C++ | unknown | 3,377 |
// 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_GEOMETRY_DIP_UTIL_H_
#define UI_GFX_GEOMETRY_DIP_UTIL_H_
#include "ui/gfx/geometry/geometry_export.h"
namespace gfx {
class Insets;
class InsetsF;
class Point... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/dip_util.h | C++ | unknown | 3,317 |
// 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_GEOMETRY_DOUBLE4_H_
#define UI_GFX_GEOMETRY_DOUBLE4_H_
#include <type_traits>
namespace gfx {
// This header defines Double4 type for vectorized SIMD operatio... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/double4.h | C++ | unknown | 3,108 |
// 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_GFX_GEOMETRY_GEOMETRY_EXPORT_H_
#define UI_GFX_GEOMETRY_GEOMETRY_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GEOMETRY_IMPLEMENTATION)
#de... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/geometry_export.h | C | unknown | 743 |
// 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_GEOMETRY_GEOMETRY_SKIA_EXPORT_H_
#define UI_GFX_GEOMETRY_GEOMETRY_SKIA_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(GEOMETRY_SKIA_IMPL... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/geometry_skia_export.h | C | unknown | 798 |
// Copyright 2009 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/geometry/insets.h"
#include "ui/gfx/geometry/insets_conversions.h"
#include "ui/gfx/geometry/insets_f.h"
#include "ui/gfx/geometry/outsets.h"
#include "ui/gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets.cc | C++ | unknown | 2,126 |
// 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_GEOMETRY_INSETS_H_
#define UI_GFX_GEOMETRY_INSETS_H_
#include "base/numerics/clamped_math.h"
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geome... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets.h | C++ | unknown | 2,881 |
// 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/geometry/insets_conversions.h"
#include "base/numerics/safe_conversions.h"
#include "ui/gfx/geometry/insets.h"
#include "ui/gfx/geometry/insets_f.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_conversions.cc | C++ | unknown | 1,007 |
// 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_GEOMETRY_INSETS_CONVERSIONS_H_
#define UI_GFX_GEOMETRY_INSETS_CONVERSIONS_H_
#include "ui/gfx/geometry/geometry_export.h"
namespace gfx {
class Insets;
class I... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_conversions.h | C++ | unknown | 805 |
// 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/geometry/insets_f.h"
#include "ui/gfx/geometry/outsets_f.h"
namespace gfx {
OutsetsF InsetsF::ToOutsets() const {
// Conversion from InsetsF to OutsetsF n... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_f.cc | C++ | unknown | 491 |
// 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_GEOMETRY_INSETS_F_H_
#define UI_GFX_GEOMETRY_INSETS_F_H_
#include "ui/gfx/geometry/geometry_export.h"
#include "ui/gfx/geometry/insets_outsets_f_base.h"
namesp... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_f.h | C++ | unknown | 1,360 |
// 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/geometry/insets_f.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/outsets_f.h"
#include "ui/gfx/geometry/rect_f.h"
#include "ui/gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_f_unittest.cc | C++ | unknown | 7,325 |
// 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_GEOMETRY_INSETS_OUTSETS_BASE_H_
#define UI_GFX_GEOMETRY_INSETS_OUTSETS_BASE_H_
#include <string>
#include "base/numerics/clamped_math.h"
#include "base/strings... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_outsets_base.h | C++ | unknown | 6,105 |
// 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_GEOMETRY_INSETS_OUTSETS_F_BASE_H_
#define UI_GFX_GEOMETRY_INSETS_OUTSETS_F_BASE_H_
#include <string>
#include "base/strings/stringprintf.h"
namespace gfx {
/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_outsets_f_base.h | C++ | unknown | 4,375 |
// Copyright 2009 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/geometry/insets.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/outsets.h"
#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geom... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/insets_unittest.cc | C++ | unknown | 12,006 |
// 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/geometry/linear_gradient.h"
#include <sstream>
#include "base/check_op.h"
#include "base/containers/adapters.h"
#include "base/strings/string_number_conversi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/linear_gradient.cc | C++ | unknown | 2,917 |
// 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_LINEAR_GRADIENT_H_
#define UI_GFX_LINEAR_GRADIENT_H_
#include <stdint.h>
#include <array>
#include <cstddef>
#include <cstdint>
#include <string>
#include "ui... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/linear_gradient.h | C++ | unknown | 2,584 |
// 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/geometry/linear_gradient.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/linear_gradient_unittest.cc | C++ | unknown | 3,088 |
// 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/geometry/mask_filter_info.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#include "ui/gfx/geometry/skia_conversions.h"
#include "ui/gfx/geometry/transform.h... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mask_filter_info.cc | C++ | unknown | 2,458 |
// 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_GEOMETRY_MASK_FILTER_INFO_H_
#define UI_GFX_GEOMETRY_MASK_FILTER_INFO_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/geometry/geome... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mask_filter_info.h | C++ | unknown | 3,436 |
// 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/geometry/mask_filter_info.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/axis_transform2d.h"
#include "ui/gfx/geometry/rrect_f.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mask_filter_info_unittest.cc | C++ | unknown | 4,622 |
// 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/geometry/matrix3_f.h"
#include <string.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include "base/numerics/math_constants.h"
#include "base/s... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/matrix3_f.cc | C++ | unknown | 5,094 |
// 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_GEOMETRY_MATRIX3_F_H_
#define UI_GFX_GEOMETRY_MATRIX3_F_H_
#include "base/check.h"
#include "ui/gfx/geometry/vector3d_f.h"
namespace gfx {
class GEOMETRY_EXPO... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/matrix3_f.h | C++ | unknown | 3,521 |
// 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 <cmath>
#include <limits>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/matrix3_f.h"
namespace gfx {
namespace {
TEST(Matrix3fTest, Const... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/matrix3_unittest.cc | C++ | unknown | 4,214 |
// 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/geometry/matrix44.h"
#include <algorithm>
#include <cmath>
#include <type_traits>
#include <utility>
#include "ui/gfx/geometry/decomposed_transform.h"
names... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/matrix44.cc | C++ | unknown | 22,607 |
// 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_GEOMETRY_MATRIX44_H_
#define UI_GFX_GEOMETRY_MATRIX44_H_
#include "base/check_op.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/geo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/matrix44.h | C++ | unknown | 7,255 |
include_rules = [
"+mojo/public",
"+ui/gfx/geometry",
]
| Zhao-PengFei35/chromium_src_4 | ui/gfx/geometry/mojom/DEPS | Python | unknown | 60 |