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
include_rules = [ "+mojo/public", "+ui/gfx/range", ]
Zhao-PengFei35/chromium_src_4
ui/gfx/range/mojom/DEPS
Python
unknown
57
// 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_RANGE_MOJOM_RANGE_MOJOM_TRAITS_H_ #define UI_GFX_RANGE_MOJOM_RANGE_MOJOM_TRAITS_H_ #include "ui/gfx/range/mojom/range.mojom-shared.h" #include "ui/gfx/range/ran...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/mojom/range_mojom_traits.h
C++
unknown
1,235
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <utility> #include "base/test/task_environment.h" #include "mojo/public/cpp/bindings/receiver_set.h" #include "mojo/public/cpp/bindings/remote.h" #include "testing/gt...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/mojom/range_mojom_traits_unittest.cc
C++
unknown
2,166
// 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/range/range.h" #include <inttypes.h> #include "base/format_macros.h" #include "base/strings/stringprintf.h" namespace gfx { std::string Range::ToString() c...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range.cc
C++
unknown
523
// 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_RANGE_RANGE_H_ #define UI_GFX_RANGE_RANGE_H_ #include <stddef.h> #include <stdint.h> #include <algorithm> #include <limits> #include <ostream> #include <string...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range.h
Objective-C
unknown
5,320
// 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/range/range_f.h" #include <stddef.h> #include <algorithm> #include <cmath> #include "base/format_macros.h" #include "base/strings/stringprintf.h" namespace...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range_f.cc
C++
unknown
679
// 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_RANGE_RANGE_F_H_ #define UI_GFX_RANGE_RANGE_F_H_ #include <limits> #include <ostream> #include <string> #include "ui/gfx/range/gfx_range_export.h" #include "ui...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range_f.h
C++
unknown
4,045
// 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/range/range.h" #include <stddef.h> #include <limits> #include "base/check_op.h" #include "base/numerics/checked_math.h" namespace gfx { Range::Range(const...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range_mac.mm
Objective-C++
unknown
1,192
// 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/range/range.h" #include <limits> #include "testing/gtest/include/gtest/gtest.h" TEST(RangeTest, FromNSRange) { NSRange nsr = NSMakeRange(10, 3); gfx::Ra...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range_mac_unittest.mm
Objective-C++
unknown
1,835
// 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 <sstream> #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/range/range.h" #include "ui/gfx/range/range_f.h" namespace { template <typename T> class R...
Zhao-PengFei35/chromium_src_4
ui/gfx/range/range_unittest.cc
C++
unknown
16,274
// 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/render_text.h" #include <limits.h> #include <algorithm> #include <climits> #include "base/check_op.h" #include "base/command_line.h" #include "base/i18n/bre...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text.cc
C++
unknown
90,729
// 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_RENDER_TEXT_H_ #define UI_GFX_RENDER_TEXT_H_ #include <stddef.h> #include <stdint.h> #include <algorithm> #include <array> #include <cstring> #include <memory>...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text.h
C++
unknown
46,077
// 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 <fuzzer/FuzzedDataProvider.h> #include <algorithm> #include "base/at_exit.h" #include "base/command_line.h" #include "base/i18n/icu_util.h" #include "base/logging.h"...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_api_fuzzer.cc
C++
unknown
13,086
// 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 "base/at_exit.h" #include "base/command_line.h" #include "base/i18n/icu_util.h" #include "base/logging.h" #include "base/strings/utf_string_conversions.h" #include "ba...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_fuzzer.cc
C++
unknown
1,855
// 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/render_text_harfbuzz.h" #include <limits> #include <set> #include "base/command_line.h" #include "base/containers/contains.h" #include "base/containers/lru_c...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_harfbuzz.cc
C++
unknown
96,597
// 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_RENDER_TEXT_HARFBUZZ_H_ #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ #include <hb.h> #include <stddef.h> #include <stdint.h> #include <limits> #include <memory> #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_harfbuzz.h
C++
unknown
12,481
// 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_RENDER_TEXT_TEST_API_H_ #define UI_GFX_RENDER_TEXT_TEST_API_H_ #include "base/memory/raw_ptr.h" #include "ui/gfx/break_list.h" #include "ui/gfx/geometry/vector2...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_test_api.h
C++
unknown
3,582
// 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. #if defined(OHOS_UNITTESTS) #define private public #include "ui/gfx/render_text.h" #undef private #else // OHOS_UNITTESTS #include "ui/gfx/render_text.h" #endif // OHOS_UNITT...
Zhao-PengFei35/chromium_src_4
ui/gfx/render_text_unittest.cc
C++
unknown
361,419
// 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/scoped_canvas.h" #include "base/i18n/rtl.h" #include "ui/gfx/geometry/rect.h" namespace gfx { ScopedCanvas::ScopedCanvas(gfx::Canvas* canvas) : canvas_(canv...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_canvas.cc
C++
unknown
613
// 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_SCOPED_CANVAS_H_ #define UI_GFX_SCOPED_CANVAS_H_ #include "base/memory/raw_ptr.h" #include "ui/gfx/canvas.h" #include "ui/gfx/gfx_export.h" namespace gfx { //...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_canvas.h
C++
unknown
883
// 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_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_ #define UI_GFX_SCOPED_CG_CONTEXT_SAVE_GSTATE_MAC_H_ #import <QuartzCore/QuartzCore.h> namespace gfx { class ScopedCGConte...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_cg_context_save_gstate_mac.h
Objective-C
unknown
818
// 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_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ #define UI_GFX_SCOPED_NS_GRAPHICS_CONTEXT_SAVE_GSTATE_MAC_H_ #include <memory> #include "ui/gfx/gfx_export.h" na...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h
C++
unknown
907
// 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/scoped_ns_graphics_context_save_gstate_mac.h" #import <AppKit/AppKit.h> #include "base/check_op.h" namespace gfx { struct ScopedNSGraphicsContextSaveGState...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_ns_graphics_context_save_gstate_mac.mm
Objective-C++
unknown
825
// 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_SCOPED_UI_GRAPHICS_PUSH_CONTEXT_IOS_H_ #define UI_GFX_SCOPED_UI_GRAPHICS_PUSH_CONTEXT_IOS_H_ #import <QuartzCore/QuartzCore.h> namespace gfx { class ScopedUIG...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_ui_graphics_push_context_ios.h
Objective-C
unknown
735
// 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/scoped_ui_graphics_push_context_ios.h" #import <UIKit/UIKit.h> #include "base/check_op.h" namespace gfx { ScopedUIGraphicsPushContext::ScopedUIGraphicsPush...
Zhao-PengFei35/chromium_src_4
ui/gfx/scoped_ui_graphics_push_context_ios.mm
Objective-C++
unknown
579
// 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/scrollbar_size.h" #include "base/compiler_specific.h" #include "build/build_config.h" #if BUILDFLAG(IS_WIN) #include <windows.h> #endif namespace gfx { int...
Zhao-PengFei35/chromium_src_4
ui/gfx/scrollbar_size.cc
C++
unknown
452
// 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_SCROLLBAR_SIZE_H_ #define UI_GFX_SCROLLBAR_SIZE_H_ #include "ui/gfx/gfx_export.h" namespace gfx { // This should return the thickness, in pixels, of a scrollb...
Zhao-PengFei35/chromium_src_4
ui/gfx/scrollbar_size.h
C++
unknown
533
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <algorithm> #include "base/strings/stringprintf.h" #include "ui/gfx/geometry/point_conversions.h" #include "ui/gfx/geometry/rect.h" #include "ui/gfx/geometry/rect_f.h...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_bound.cc
C++
unknown
4,241
// 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_SELECTION_BOUND_H_ #define UI_GFX_SELECTION_BOUND_H_ #include "ui/gfx/geometry/point.h" #include "ui/gfx/geometry/point_f.h" #include "ui/gfx/gfx_export.h" nam...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_bound.h
C++
unknown
3,090
// 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/selection_bound.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/geometry/rect.h" #include "ui/gfx/geometry/rect_f.h" namespace gfx { TEST...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_bound_unittest.cc
C++
unknown
5,177
// 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/selection_model.h" #include <ostream> #include "base/check.h" #include "base/format_macros.h" #include "base/strings/stringprintf.h" namespace gfx { Select...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_model.cc
C++
unknown
2,506
// 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_SELECTION_MODEL_H_ #define UI_GFX_SELECTION_MODEL_H_ #include <stddef.h> #include <vector> #include <iosfwd> #include <string> #include "ui/gfx/gfx_export.h" ...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_model.h
C++
unknown
6,062
// 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 <vector> #include "ui/gfx/selection_model.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/range/range.h" namespace gfx { TEST(SelectionModelTest...
Zhao-PengFei35/chromium_src_4
ui/gfx/selection_model_unittest.cc
C++
unknown
3,297
// 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/sequential_id_generator.h" #include "base/check_op.h" namespace { // Removes |key| from |first|, and |first[key]| from |second|. template <typename T> void ...
Zhao-PengFei35/chromium_src_4
ui/gfx/sequential_id_generator.cc
C++
unknown
2,290
// 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_SEQUENTIAL_ID_GENERATOR_H_ #define UI_GFX_SEQUENTIAL_ID_GENERATOR_H_ #include <stdint.h> #include <map> #include <unordered_map> #include "ui/gfx/gfx_export.h...
Zhao-PengFei35/chromium_src_4
ui/gfx/sequential_id_generator.h
C++
unknown
1,866
// 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/sequential_id_generator.h" #include <stdint.h> #include "testing/gtest/include/gtest/gtest.h" namespace ui { typedef testing::Test SequentialIDGeneratorTes...
Zhao-PengFei35/chromium_src_4
ui/gfx/sequential_id_generator_unittest.cc
C++
unknown
1,271
// 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/shadow_util.h" #include <map> #include <vector> #include "base/lazy_instance.h" #include "base/memory/ptr_util.h" #include "third_party/skia/include/core/SkD...
Zhao-PengFei35/chromium_src_4
ui/gfx/shadow_util.cc
C++
unknown
4,333
// 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_SHADOW_UTIL_H_ #define UI_GFX_SHADOW_UTIL_H_ #include "build/chromeos_buildflags.h" #include "ui/gfx/gfx_export.h" #include "ui/gfx/image/image_skia.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/shadow_util.h
C++
unknown
1,340
// 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/shadow_value.h" #include <stddef.h> #include <algorithm> #include "base/check_op.h" #include "base/numerics/safe_conversions.h" #include "base/strings/strin...
Zhao-PengFei35/chromium_src_4
ui/gfx/shadow_value.cc
C++
unknown
5,295
// 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_SHADOW_VALUE_H_ #define UI_GFX_SHADOW_VALUE_H_ #include <string> #include <tuple> #include <vector> #include "build/chromeos_buildflags.h" #include "third_part...
Zhao-PengFei35/chromium_src_4
ui/gfx/shadow_value.h
C++
unknown
3,716
// 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/shadow_value.h" #include <stddef.h> #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/geometry/insets.h" #include "ui/gfx/geometry/vector2d.h" ...
Zhao-PengFei35/chromium_src_4
ui/gfx/shadow_value_unittest.cc
C++
unknown
1,648
// 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/skbitmap_operations.h" #include <stddef.h> #include <stdint.h> #include <string.h> #include <algorithm> #include "base/check_op.h" #include "third_party/skia...
Zhao-PengFei35/chromium_src_4
ui/gfx/skbitmap_operations.cc
C++
unknown
28,086
// 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_SKBITMAP_OPERATIONS_H_ #define UI_GFX_SKBITMAP_OPERATIONS_H_ #include "base/gtest_prod_util.h" #include "ui/gfx/color_utils.h" #include "ui/gfx/gfx_export.h" #i...
Zhao-PengFei35/chromium_src_4
ui/gfx/skbitmap_operations.h
C++
unknown
5,517
// 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/skbitmap_operations.h" #include <stdint.h> #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkBitmap.h" #include "third...
Zhao-PengFei35/chromium_src_4
ui/gfx/skbitmap_operations_unittest.cc
C++
unknown
19,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/gfx/skia_color_space_util.h" #include <algorithm> #include <cmath> #include <vector> #include "base/check.h" namespace gfx { float SkTransferFnEvalUnclamped(co...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_color_space_util.cc
C++
unknown
2,988
// 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_SKIA_COLOR_SPACE_UTIL_H_ #define UI_GFX_SKIA_COLOR_SPACE_UTIL_H_ #include "third_party/skia/include/core/SkColorSpace.h" #include "third_party/skia/include/core...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_color_space_util.h
C++
unknown
1,557
// 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/skia_paint_util.h" #include "cc/paint/paint_image_builder.h" #include "third_party/skia/include/core/SkColorFilter.h" #include "third_party/skia/include/core/...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_paint_util.cc
C++
unknown
4,543
// 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_SKIA_PAINT_UTIL_H_ #define UI_GFX_SKIA_PAINT_UTIL_H_ #include <memory> #include <vector> #include "cc/paint/paint_shader.h" #include "ui/gfx/gfx_export.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_paint_util.h
C++
unknown
1,836
// 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/skia_util.h" #include "base/check.h" #include "base/numerics/safe_conversions.h" #include "third_party/skia/include/core/SkBitmap.h" namespace gfx { bool Bi...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_util.cc
C++
unknown
1,599
// 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_SKIA_UTIL_H_ #define UI_GFX_SKIA_UTIL_H_ #include "third_party/skia/include/core/SkScalar.h" #include "ui/gfx/gfx_skia_export.h" class SkBitmap; namespace gfx...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_util.h
C++
unknown
929
// 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/skia_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkBitmap.h" namespace gfx { TEST(SkiaUtilTest, BitmapsAr...
Zhao-PengFei35/chromium_src_4
ui/gfx/skia_util_unittest.cc
C++
unknown
1,657
// 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_SURFACE_ORIGIN_H_ #define UI_GFX_SURFACE_ORIGIN_H_ namespace gfx { // Describes where (0,0) coordinate is in a surface. Conventionally this value // is kBottom...
Zhao-PengFei35/chromium_src_4
ui/gfx/surface_origin.h
C++
unknown
452
// 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/swap_result.h" #include "ui/gfx/ca_layer_params.h" #include "ui/gfx/gpu_fence.h" namespace gfx { SwapCompletionResult::SwapCompletionResult(gfx::SwapResult ...
Zhao-PengFei35/chromium_src_4
ui/gfx/swap_result.cc
C++
unknown
974
// 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_SWAP_RESULT_H_ #define UI_GFX_SWAP_RESULT_H_ #include <memory> #include "base/time/time.h" #include "ui/gfx/gfx_export.h" #include "ui/gfx/gpu_fence_handle.h" ...
Zhao-PengFei35/chromium_src_4
ui/gfx/swap_result.h
C++
unknown
3,552
// 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/switches.h" #include "base/command_line.h" #include "build/build_config.h" namespace switches { // Scale factor to apply to every animation duration. Must b...
Zhao-PengFei35/chromium_src_4
ui/gfx/switches.cc
C++
unknown
2,558
// 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_SWITCHES_H_ #define UI_GFX_SWITCHES_H_ #include "base/feature_list.h" #include "build/build_config.h" #include "build/chromeos_buildflags.h" #include "ui/gfx/sw...
Zhao-PengFei35/chromium_src_4
ui/gfx/switches.h
C++
unknown
1,400
// 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_SWITCHES_EXPORT_H_ #define UI_GFX_SWITCHES_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(GFX_SWITCHES_IMPLEMENTATION) #define GFX_SWITC...
Zhao-PengFei35/chromium_src_4
ui/gfx/switches_export.h
C
unknown
748
// 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/sys_color_change_listener.h" #include <windows.h> #include <memory> #include "base/functional/bind.h" #include "base/functional/callback_helpers.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/sys_color_change_listener.cc
C++
unknown
2,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. #ifndef UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ #define UI_GFX_SYS_COLOR_CHANGE_LISTENER_H_ #include "base/memory/raw_ptr.h" #include "ui/gfx/gfx_export.h" namespace gfx { // In...
Zhao-PengFei35/chromium_src_4
ui/gfx/sys_color_change_listener.h
C++
unknown
1,102
// 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/system_fonts_win.h" #include <windows.h> #include "base/containers/flat_map.h" #include "base/logging.h" #include "base/no_destructor.h" #include "base/numer...
Zhao-PengFei35/chromium_src_4
ui/gfx/system_fonts_win.cc
C++
unknown
10,569
// 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_SYSTEM_FONTS_WIN_H_ #define UI_GFX_SYSTEM_FONTS_WIN_H_ #include "ui/gfx/font.h" #include "ui/gfx/gfx_export.h" namespace gfx { namespace win { // Represents a...
Zhao-PengFei35/chromium_src_4
ui/gfx/system_fonts_win.h
C++
unknown
2,723
// 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/system_fonts_win.h" #include <windows.h> #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "testing/gtest/include/gte...
Zhao-PengFei35/chromium_src_4
ui/gfx/system_fonts_win_unittest.cc
C++
unknown
5,776
specific_include_rules = { "run_all_unittests\.cc": [ "+mojo/core/embedder/embedder.h", "+ui/base/resource/resource_bundle.h", "+ui/base/ui_base_paths.h", ], }
Zhao-PengFei35/chromium_src_4
ui/gfx/test/DEPS
Python
unknown
176
// 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/test/font_fallback_test_data.h" #include <string> #include "build/build_config.h" namespace gfx { FallbackFontTestCase::FallbackFontTestCase() = default; F...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/font_fallback_test_data.cc
C++
unknown
7,267
// 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_TEST_FONT_FALLBACK_TEST_DATA_H_ #define UI_GFX_TEST_FONT_FALLBACK_TEST_DATA_H_ #include <string> #include <vector> #include "third_party/icu/source/common/unic...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/font_fallback_test_data.h
C++
unknown
1,027
// 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/test/icc_profiles.h" namespace gfx { namespace { const unsigned char generic_rgb_profile_data[] = { 0x00, 0x00, 0x07, 0xd8, 0x61, 0x70, 0x70, 0x6c, 0x02...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/icc_profiles.cc
C++
unknown
143,817
// 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_TEST_ICC_PROFILES_H_ #define UI_GFX_TEST_ICC_PROFILES_H_ #include "ui/gfx/icc_profile.h" namespace gfx { ICCProfile ICCProfileForTestingAdobeRGB(); ICCProfile...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/icc_profiles.h
C++
unknown
790
// 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 "base/compiler_specific.h" #include "base/functional/bind.h" #include "base/path_service.h" #include "base/test/launcher/unit_test_launcher.h" #include "base/test/test...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/run_all_unittests.cc
C++
unknown
2,227
// 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_TEST_SCOPED_DEFAULT_FONT_DESCRIPTION_H_ #define UI_GFX_TEST_SCOPED_DEFAULT_FONT_DESCRIPTION_H_ #include "ui/gfx/font_list.h" namespace gfx { // Tests should u...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/scoped_default_font_description.h
C++
unknown
769
// 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/test/sk_color_eq.h" #include <iomanip> #include <string> namespace gfx { namespace { std::string ColorAsString(SkColor color) { std::ostringstream stream...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/sk_color_eq.cc
C++
unknown
2,806
// 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_TEST_SK_COLOR_EQ_H_ #define UI_GFX_TEST_SK_COLOR_EQ_H_ #include "testing/gtest/include/gtest/gtest.h" #include "third_party/skia/include/core/SkColor.h" namesp...
Zhao-PengFei35/chromium_src_4
ui/gfx/test/sk_color_eq.h
C++
unknown
1,338
// 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_TEXT_CONSTANTS_H_ #define UI_GFX_TEXT_CONSTANTS_H_ namespace gfx { // TODO(msw): Distinguish between logical character stops and glyph stops? // TODO(msw): Mer...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_constants.h
C++
unknown
5,843
// 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 implements utility functions for eliding and formatting UI text. // // Note that several of the functions declared in text_elider.h are implemented // in this fi...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_elider.cc
C++
unknown
31,252
// 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 eliding and formatting UI text. #ifndef UI_GFX_TEXT_ELIDER_H_ #define UI_GFX_TEXT_ELIDER_H_ #include <stddef.h> #include <string...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_elider.h
C++
unknown
7,525
// 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. // // Unit tests for eliding and formatting utility functions. #include "ui/gfx/text_elider.h" #include <stddef.h> #include <memory> #include <vector> #include "base/files/f...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_elider_unittest.cc
C++
unknown
51,161
// 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/text_utils.h" #include <stdint.h> #include "base/i18n/char_iterator.h" #include "base/i18n/rtl.h" #include "base/numerics/safe_conversions.h" #include "third...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_utils.cc
C++
unknown
7,220
// 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_TEXT_UTILS_H_ #define UI_GFX_TEXT_UTILS_H_ #include <stddef.h> #include <string> #include "ui/gfx/gfx_export.h" #include "ui/gfx/text_constants.h" namespace ...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_utils.h
C++
unknown
5,870
// 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/text_utils.h" #import <CoreText/CoreText.h> #import <UIKit/UIKit.h> #include <cmath> #include "base/mac/foundation_util.h" #include "base/strings/sys_string...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_utils_ios.mm
Objective-C++
unknown
877
// 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/text_utils.h" #include "ui/gfx/canvas.h" namespace gfx { int GetStringWidth(const std::u16string& text, const FontList& font_list) { return Canvas::GetStr...
Zhao-PengFei35/chromium_src_4
ui/gfx/text_utils_skia.cc
C++
unknown
503
// 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/text_utils.h" #include <stddef.h> #include <vector> #include "base/logging.h" #include "base/strings/utf_string_conversions.h" #include "build/build_config....
Zhao-PengFei35/chromium_src_4
ui/gfx/text_utils_unittest.cc
C++
unknown
15,324
// 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_UBIDI_DELETER_H_ #define UI_GFX_UBIDI_DELETER_H_ #include "third_party/icu/source/common/unicode/ubidi.h" namespace ui::gfx { struct UBiDiDeleter { void ope...
Zhao-PengFei35/chromium_src_4
ui/gfx/ubidi_deleter.h
C++
unknown
450
// 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 is for including headers that are not included in any other .cc // files contained with the ui/gfx module. We need to include these here so // that linker will kn...
Zhao-PengFei35/chromium_src_4
ui/gfx/ui_gfx_exports.cc
C++
unknown
456
// 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/utf16_indexing.h" #include "base/check_op.h" #include "base/third_party/icu/icu_utf.h" namespace gfx { bool IsValidCodePointIndex(const std::u16string& s, s...
Zhao-PengFei35/chromium_src_4
ui/gfx/utf16_indexing.cc
C++
unknown
2,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_UTF16_INDEXING_H_ #define UI_GFX_UTF16_INDEXING_H_ #include <stddef.h> #include <string> #include "ui/gfx/gfx_export.h" namespace gfx { // Returns false if ...
Zhao-PengFei35/chromium_src_4
ui/gfx/utf16_indexing.h
C++
unknown
2,241
// 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 <stddef.h> #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/utf16_indexing.h" namespace gfx { TEST(UTF16IndexingTest, IndexOffsetConversions) { // ...
Zhao-PengFei35/chromium_src_4
ui/gfx/utf16_indexing_unittest.cc
C++
unknown
1,255
// 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_VECTOR_ICON_TYPES_H_ #define UI_GFX_VECTOR_ICON_TYPES_H_ #include "base/memory/raw_ptr_exclusion.h" #include "third_party/skia/include/core/SkScalar.h" #include...
Zhao-PengFei35/chromium_src_4
ui/gfx/vector_icon_types.h
C++
unknown
6,584
// 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/vector_icon_utils.h" #include <ostream> #include "base/check_op.h" #include "ui/gfx/vector_icon_types.h" namespace gfx { int GetDefaultSizeOfVectorIcon(con...
Zhao-PengFei35/chromium_src_4
ui/gfx/vector_icon_utils.cc
C++
unknown
788
// 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_VECTOR_ICON_UTILS_H_ #define UI_GFX_VECTOR_ICON_UTILS_H_ #include "ui/gfx/gfx_export.h" namespace gfx { struct VectorIcon; // Calculates the size that will b...
Zhao-PengFei35/chromium_src_4
ui/gfx/vector_icon_utils.h
C++
unknown
539
// 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_VIDEO_TYPES_H_ #define UI_GFX_VIDEO_TYPES_H_ namespace gfx { enum class ProtectedVideoType : uint32_t { kClear = 0, kSoftwareProtected = 1, kHardwareProt...
Zhao-PengFei35/chromium_src_4
ui/gfx/video_types.h
C++
unknown
423
// 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/vsync_provider.h" namespace gfx { void FixedVSyncProvider::GetVSyncParameters(UpdateVSyncCallback callback) { std::move(callback).Run(timebase_, interval_)...
Zhao-PengFei35/chromium_src_4
ui/gfx/vsync_provider.cc
C++
unknown
687
// 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_VSYNC_PROVIDER_H_ #define UI_GFX_VSYNC_PROVIDER_H_ #include "base/functional/callback.h" #include "base/time/time.h" #include "ui/gfx/gfx_export.h" namespace g...
Zhao-PengFei35/chromium_src_4
ui/gfx/vsync_provider.h
C++
unknown
2,275
include_rules = [ "+components/crash", ]
Zhao-PengFei35/chromium_src_4
ui/gfx/win/DEPS
Python
unknown
43
// 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/crash_id_helper.h" #include "base/memory/ptr_util.h" #include "base/no_destructor.h" #include "base/strings/string_util.h" namespace gfx { // static Cra...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/crash_id_helper.cc
C++
unknown
2,520
// 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_CRASH_ID_HELPER_H_ #define UI_GFX_WIN_CRASH_ID_HELPER_H_ #include <string> #include <vector> #include "base/no_destructor.h" #include "base/threading/platf...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/crash_id_helper.h
C++
unknown
2,879
// 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/crash_id_helper.h" #include "testing/gtest/include/gtest/gtest.h" namespace gfx { class CrashIdHelperTest : public testing::Test { public: CrashIdHel...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/crash_id_helper_unittest.cc
C++
unknown
1,572
// 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/win/direct_write.h" #include <wrl/client.h> #include <string> #include "base/debug/alias.h" #include "base/metrics/histogram_macros.h" #include "base/string...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/direct_write.cc
C++
unknown
4,529
// 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_DIRECT_WRITE_H_ #define UI_GFX_WIN_DIRECT_WRITE_H_ #include <dwrite.h> #include "base/strings/string_piece.h" #include "third_party/abseil-cpp/absl/types/o...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/direct_write.h
C++
unknown
1,213
// 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/direct_write.h" #include "base/i18n/rtl.h" #include "testing/gtest/include/gtest/gtest.h" TEST(DirectWrite, RetrieveLocalizedFontName) { // Retrieve th...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/direct_write_unittest.cc
C++
unknown
1,037
// 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/hwnd_util.h" #include <dwmapi.h> // DWMWA_CLOAKED #include <windows.h> #include "base/debug/gdi_debug_util_win.h" #include "base/logging.h" #include "ba...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/hwnd_util.cc
C++
unknown
7,794
// 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_HWND_UTIL_H_ #define UI_GFX_WIN_HWND_UTIL_H_ #include <shobjidl.h> // Must be before propkey. #include <windows.h> #include <wrl/client.h> #include <strin...
Zhao-PengFei35/chromium_src_4
ui/gfx/win/hwnd_util.h
C++
unknown
2,572