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 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_COLOR_MIXERS_H_
#define UI_COLOR_COLOR_MIXERS_H_
#include "base/component_export.h"
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorP... | Zhao-PengFei35/chromium_src_4 | ui/color/color_mixers.h | C++ | unknown | 564 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider.h"
#include <map>
#include <set>
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "ui/color/color_mix... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider.cc | C++ | unknown | 4,017 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_COLOR_PROVIDER_H_
#define UI_COLOR_COLOR_PROVIDER_H_
#include <forward_list>
#include <memory>
#include "base/component_export.h"
#include "base/containers/f... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider.h | C++ | unknown | 3,397 |
// 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/color/color_provider_manager.h"
#include <algorithm>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/metrics/histogra... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_manager.cc | C++ | unknown | 4,766 |
// 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_COLOR_COLOR_PROVIDER_MANAGER_H_
#define UI_COLOR_COLOR_PROVIDER_MANAGER_H_
#include <memory>
#include <tuple>
#include <vector>
#include "base/callback_list.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_manager.h | C++ | unknown | 5,962 |
// 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/color/color_provider_manager.h"
#include <vector>
#include "base/functional/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "testing/gtest/inclu... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_manager_unittest.cc | C++ | unknown | 4,572 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider_source.h"
#include "base/observer_list.h"
#include "ui/color/color_provider_source_observer.h"
namespace ui {
ColorProviderSource::ColorProv... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_source.cc | C++ | unknown | 974 |
// 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_COLOR_COLOR_PROVIDER_SOURCE_H_
#define UI_COLOR_COLOR_PROVIDER_SOURCE_H_
#include "base/component_export.h"
#include "base/observer_list.h"
#include "base/observer_... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_source.h | C++ | unknown | 2,022 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider_source_observer.h"
namespace ui {
ColorProviderSourceObserver::ColorProviderSourceObserver() = default;
ColorProviderSourceObserver::~Color... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_source_observer.cc | C++ | unknown | 1,245 |
// 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_COLOR_COLOR_PROVIDER_SOURCE_OBSERVER_H_
#define UI_COLOR_COLOR_PROVIDER_SOURCE_OBSERVER_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_source_observer.h | C++ | unknown | 1,963 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider_source.h"
#include <memory>
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_source_observer_unittest.cc | C++ | unknown | 5,074 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color/color_recipe.h"
#include "ui/color/color_test_ids.h"
#include "ui/color/... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_unittest.cc | C++ | unknown | 4,371 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider_utils.h"
#include "base/containers/contains.h"
#include "base/containers/fixed_flat_map.h"
#include "base/no_destructor.h"
#include "base/str... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_utils.cc | C++ | unknown | 12,823 |
// 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_COLOR_COLOR_PROVIDER_UTILS_H_
#define UI_COLOR_COLOR_PROVIDER_UTILS_H_
#include <string>
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_utils.h | C++ | unknown | 3,347 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_provider_utils.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
... | Zhao-PengFei35/chromium_src_4 | ui/color/color_provider_utils_unittest.cc | C++ | unknown | 3,892 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_recipe.h"
#include <utility>
#include "base/logging.h"
#include "ui/color/color_mixer.h"
#include "ui/color/color_provider_utils.h"
namespace ui {
... | Zhao-PengFei35/chromium_src_4 | ui/color/color_recipe.cc | C++ | unknown | 1,426 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_COLOR_RECIPE_H_
#define UI_COLOR_COLOR_RECIPE_H_
#include <list>
#include "base/component_export.h"
#include "third_party/skia/include/core/SkColor.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/color/color_recipe.h | C++ | unknown | 1,649 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_recipe.h"
#include <algorithm>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color/color_mixer.h"
#include "ui/color/color_test_ids.h"
... | Zhao-PengFei35/chromium_src_4 | ui/color/color_recipe_unittest.cc | C++ | unknown | 2,252 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_COLOR_TEST_IDS_H_
#define UI_COLOR_COLOR_TEST_IDS_H_
#include "ui/color/color_id.h"
namespace ui {
// Test-only color IDs.
enum TestColorIds : ColorId {
k... | Zhao-PengFei35/chromium_src_4 | ui/color/color_test_ids.h | C++ | unknown | 498 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_transform.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/color/color_transform.cc | C++ | unknown | 17,690 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_COLOR_TRANSFORM_H_
#define UI_COLOR_COLOR_TRANSFORM_H_
#include "base/component_export.h"
#include "base/functional/callback.h"
#include "build/build_config.h... | Zhao-PengFei35/chromium_src_4 | ui/color/color_transform.h | C++ | unknown | 7,306 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_transform.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/color/color_mixer.h"
#include "ui/color/color_recipe.h"
#include "ui/color/co... | Zhao-PengFei35/chromium_src_4 | ui/color/color_transform_unittest.cc | C++ | unknown | 11,358 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/core_default_color_mixer.h"
#include <utility>
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "third_party/skia/inc... | Zhao-PengFei35/chromium_src_4 | ui/color/core_default_color_mixer.cc | C++ | unknown | 4,007 |
// 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_COLOR_CORE_DEFAULT_COLOR_MIXER_H_
#define UI_COLOR_CORE_DEFAULT_COLOR_MIXER_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
/... | Zhao-PengFei35/chromium_src_4 | ui/color/core_default_color_mixer.h | C++ | unknown | 585 |
// 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/color/dynamic_color/palette.h"
#include "base/check_op.h"
#include "third_party/material_color_utilities/src/cpp/cam/cam.h"
namespace ui {
namespace {
using ma... | Zhao-PengFei35/chromium_src_4 | ui/color/dynamic_color/palette.cc | C++ | unknown | 1,081 |
// 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_COLOR_DYNAMIC_COLOR_PALETTE_H_
#define UI_COLOR_DYNAMIC_COLOR_PALETTE_H_
#include "base/component_export.h"
#include "third_party/skia/include/core/SkColor.h"
name... | Zhao-PengFei35/chromium_src_4 | ui/color/dynamic_color/palette.h | C++ | unknown | 1,528 |
// 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/color/dynamic_color/palette_factory.h"
#include <array>
#include <memory>
#include <utility>
#include <vector>
#include "base/containers/flat_map.h"
#include "ba... | Zhao-PengFei35/chromium_src_4 | ui/color/dynamic_color/palette_factory.cc | C++ | unknown | 6,915 |
// 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_COLOR_DYNAMIC_COLOR_PALETTE_FACTORY_H_
#define UI_COLOR_DYNAMIC_COLOR_PALETTE_FACTORY_H_
#include <memory>
#include "base/component_export.h"
#include "third_party... | Zhao-PengFei35/chromium_src_4 | ui/color/dynamic_color/palette_factory.h | C++ | unknown | 769 |
// 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/color/color_mixers.h"
#import <Cocoa/Cocoa.h>
#include "base/containers/fixed_flat_set.h"
#import "skia/ext/skia_utils_mac.h"
#include "ui/color/color_id.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/color/mac/native_color_mixers_mac.mm | Objective-C++ | unknown | 5,862 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/color_transform.h"
#import <Cocoa/Cocoa.h>
#include "third_party/skia/include/core/SkColor.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer... | Zhao-PengFei35/chromium_src_4 | ui/color/mac/native_color_transform.mm | Objective-C++ | unknown | 729 |
// 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_COLOR_MAC_SYSTEM_COLOR_UTILS_H_
#define UI_COLOR_MAC_SYSTEM_COLOR_UTILS_H_
#include "base/component_export.h"
#include "third_party/skia/include/core/SkColor.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/color/mac/system_color_utils.h | C++ | unknown | 855 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/mac/system_color_utils.h"
#import <Cocoa/Cocoa.h>
#include "ui/gfx/color_utils.h"
namespace {
bool graphite_tint_test_override = false;
}
namespace ui {
... | Zhao-PengFei35/chromium_src_4 | ui/color/mac/system_color_utils.mm | Objective-C++ | unknown | 925 |
// 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/color/material_ui_color_mixer.h"
#include <utility>
#include "base/logging.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer.h"
#include "ui/color... | Zhao-PengFei35/chromium_src_4 | ui/color/material_ui_color_mixer.cc | C++ | unknown | 6,002 |
// 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_COLOR_MATERIAL_UI_COLOR_MIXER_H_
#define UI_COLOR_MATERIAL_UI_COLOR_MIXER_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
// ... | Zhao-PengFei35/chromium_src_4 | ui/color/material_ui_color_mixer.h | C++ | unknown | 566 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/native_color_mixers.h"
#include "build/build_config.h"
#include "ui/color/color_provider_manager.h"
namespace ui {
#if !BUILDFLAG(IS_CHROMEOS) && !BUILDFL... | Zhao-PengFei35/chromium_src_4 | ui/color/native_color_mixers.cc | C++ | unknown | 842 |
// 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_COLOR_NATIVE_COLOR_MIXERS_H_
#define UI_COLOR_NATIVE_COLOR_MIXERS_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
// Adds a c... | Zhao-PengFei35/chromium_src_4 | ui/color/native_color_mixers.h | C++ | unknown | 1,096 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/ref_color_mixer.h"
#include <memory>
#include "base/logging.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/color/color_id.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/color/ref_color_mixer.cc | C++ | unknown | 14,114 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_REF_COLOR_MIXER_H_
#define UI_COLOR_REF_COLOR_MIXER_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
// Adds a color mix... | Zhao-PengFei35/chromium_src_4 | ui/color/ref_color_mixer.h | C++ | unknown | 572 |
// 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/functional/bind.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_suite.h"
int main(int argc, char* argv[]) {
base::TestSuite tes... | Zhao-PengFei35/chromium_src_4 | ui/color/run_all_unittests.cc | C++ | unknown | 470 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/sys_color_mixer.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer.h"
#include "ui/color/co... | Zhao-PengFei35/chromium_src_4 | ui/color/sys_color_mixer.cc | C++ | unknown | 14,727 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_SYS_COLOR_MIXER_H_
#define UI_COLOR_SYS_COLOR_MIXER_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
// Adds a color mix... | Zhao-PengFei35/chromium_src_4 | ui/color/sys_color_mixer.h | C++ | unknown | 569 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_SYSTEM_THEME_H_
#define UI_COLOR_SYSTEM_THEME_H_
#include "build/build_config.h"
namespace ui {
// Don't change the order or value of these entries as they ... | Zhao-PengFei35/chromium_src_4 | ui/color/system_theme.h | C++ | unknown | 780 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/temp_palette.h"
#include <algorithm>
namespace ui {
namespace {
constexpr SkColor kPurple = 0xffca35c6U;
constexpr SkColor kTeal = 0xff3cc3b8U;
ToneMap ... | Zhao-PengFei35/chromium_src_4 | ui/color/temp_palette.cc | C++ | unknown | 7,535 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_TEMP_PALETTE_H_
#define UI_COLOR_TEMP_PALETTE_H_
#include "base/component_export.h"
#include "base/containers/flat_map.h"
#include "third_party/skia/include/c... | Zhao-PengFei35/chromium_src_4 | ui/color/temp_palette.h | C++ | unknown | 1,171 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/ui_color_mixer.h"
#include <utility>
#include "build/build_config.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer.h"
#include "ui/color/co... | Zhao-PengFei35/chromium_src_4 | ui/color/ui_color_mixer.cc | C++ | unknown | 17,409 |
// 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_COLOR_UI_COLOR_MIXER_H_
#define UI_COLOR_UI_COLOR_MIXER_H_
#include "ui/color/color_provider_manager.h"
namespace ui {
class ColorProvider;
// Adds a color mixer... | Zhao-PengFei35/chromium_src_4 | ui/color/ui_color_mixer.h | C++ | unknown | 610 |
include_rules = [
"+ui/native_theme",
]
| Zhao-PengFei35/chromium_src_4 | ui/color/win/DEPS | Python | unknown | 42 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/color/win/accent_color_observer.h"
#include <utility>
#include "base/no_destructor.h"
#include "base/task/sequenced_task_runner.h"
#include "skia/ext/skia_utils_... | Zhao-PengFei35/chromium_src_4 | ui/color/win/accent_color_observer.cc | C++ | unknown | 3,399 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COLOR_WIN_ACCENT_COLOR_OBSERVER_H_
#define UI_COLOR_WIN_ACCENT_COLOR_OBSERVER_H_
#include <memory>
#include "base/callback_list.h"
#include "base/component_export.... | Zhao-PengFei35/chromium_src_4 | ui/color/win/accent_color_observer.h | C++ | unknown | 1,787 |
// 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 <windows.h>
#include "base/command_line.h"
#include "ui/color/color_id.h"
#include "ui/color/color_mixer.h"
#include "ui/color/color_provider.h"
#include "ui/color/co... | Zhao-PengFei35/chromium_src_4 | ui/color/win/native_color_mixers_win.cc | C++ | unknown | 14,409 |
include_rules = [
"+cc",
"+components/viz/common",
"+components/viz/host",
"+gpu/command_buffer/client/gles2_interface.h",
"+mojo/public/cpp/bindings/pending_remote.h",
"+services/viz/privileged/mojom/compositing",
"+skia/ext",
"+third_party/khronos/GLES2/gl2.h",
"+third_party/skia",
"+ui/base",
"... | Zhao-PengFei35/chromium_src_4 | ui/compositor/DEPS | Python | unknown | 734 |
// 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/compositor/animation_throughput_reporter.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/memory/... | Zhao-PengFei35/chromium_src_4 | ui/compositor/animation_throughput_reporter.cc | C++ | unknown | 7,230 |
// 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_COMPOSITOR_ANIMATION_THROUGHPUT_REPORTER_H_
#define UI_COMPOSITOR_ANIMATION_THROUGHPUT_REPORTER_H_
#include <memory>
#include "base/functional/callback_forward.h"
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/animation_throughput_reporter.h | C++ | unknown | 2,713 |
// 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/compositor/animation_throughput_reporter.h"
#include <memory>
#include "base/test/bind.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "c... | Zhao-PengFei35/chromium_src_4 | ui/compositor/animation_throughput_reporter_unittest.cc | C++ | unknown | 9,636 |
// 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/compositor/callback_layer_animation_observer.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "ui/compositor/layer_animation_sequence.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/compositor/callback_layer_animation_observer.cc | C++ | unknown | 4,412 |
// 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_COMPOSITOR_CALLBACK_LAYER_ANIMATION_OBSERVER_H_
#define UI_COMPOSITOR_CALLBACK_LAYER_ANIMATION_OBSERVER_H_
#include "base/functional/callback.h"
#include "ui/compos... | Zhao-PengFei35/chromium_src_4 | ui/compositor/callback_layer_animation_observer.h | C++ | unknown | 6,930 |
// 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/compositor/callback_layer_animation_observer.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "testing/gtest/incl... | Zhao-PengFei35/chromium_src_4 | ui/compositor/callback_layer_animation_observer_unittest.cc | C++ | unknown | 24,733 |
// 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/compositor/canvas_painter.h"
#include "cc/paint/display_item_list.h"
namespace ui {
CanvasPainter::CanvasPainter(SkBitmap* output,
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/canvas_painter.cc | C++ | unknown | 1,571 |
// 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_COMPOSITOR_CANVAS_PAINTER_H_
#define UI_COMPOSITOR_CANVAS_PAINTER_H_
#include "base/memory/raw_ptr.h"
#include "base/memory/scoped_refptr.h"
#include "third_party/s... | Zhao-PengFei35/chromium_src_4 | ui/compositor/canvas_painter.h | C++ | unknown | 1,782 |
// 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/compositor/canvas_painter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/compositor/paint_recorder.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/... | Zhao-PengFei35/chromium_src_4 | ui/compositor/canvas_painter_unittest.cc | C++ | unknown | 4,612 |
// 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/compositor/clip_recorder.h"
#include "cc/paint/display_item_list.h"
#include "cc/paint/paint_op_buffer.h"
#include "third_party/skia/include/core/SkPath.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/compositor/clip_recorder.cc | C++ | unknown | 2,008 |
// 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_COMPOSITOR_CLIP_RECORDER_H_
#define UI_COMPOSITOR_CLIP_RECORDER_H_
#include "base/memory/raw_ref.h"
#include "ui/compositor/compositor_export.h"
#include "ui/gfx/ge... | Zhao-PengFei35/chromium_src_4 | ui/compositor/clip_recorder.h | C++ | unknown | 1,190 |
// 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/compositor/closure_animation_observer.h"
namespace ui {
ClosureAnimationObserver::ClosureAnimationObserver(base::OnceClosure closure)
: closure_(std::move(cl... | Zhao-PengFei35/chromium_src_4 | ui/compositor/closure_animation_observer.cc | C++ | unknown | 554 |
// 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_COMPOSITOR_CLOSURE_ANIMATION_OBSERVER_H_
#define UI_COMPOSITOR_CLOSURE_ANIMATION_OBSERVER_H_
#include "base/functional/callback.h"
#include "ui/compositor/composito... | Zhao-PengFei35/chromium_src_4 | ui/compositor/closure_animation_observer.h | C++ | unknown | 1,056 |
// 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/compositor/compositor.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <utility>
#include <vector>
#include "base/command_line.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor.cc | C++ | unknown | 35,912 |
// 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_COMPOSITOR_COMPOSITOR_H_
#define UI_COMPOSITOR_COMPOSITOR_H_
#include <stdint.h>
#include <memory>
#include <unordered_set>
#include "base/containers/flat_map.h"
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor.h | C++ | unknown | 27,051 |
// 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/compositor/compositor_animation_observer.h"
#include "base/debug/debugger.h"
#include "base/logging.h"
#include "base/notreached.h"
#include "base/time/time.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_animation_observer.cc | C++ | unknown | 2,375 |
// 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_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
#define UI_COMPOSITOR_COMPOSITOR_ANIMATION_OBSERVER_H_
#include "base/location.h"
#include "base/time/time.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_animation_observer.h | C++ | unknown | 1,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.
#ifndef UI_COMPOSITOR_COMPOSITOR_EXPORT_H_
#define UI_COMPOSITOR_COMPOSITOR_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(COMPOSITOR_IMPLEMENTATION)
#... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_export.h | C | unknown | 759 |
// 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/compositor/compositor_lock.h"
#include "base/containers/cxx20_erase.h"
#include "base/functional/bind.h"
#include "base/functional/callback.h"
#include "base/task... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_lock.cc | C++ | unknown | 3,438 |
// 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_COMPOSITOR_COMPOSITOR_LOCK_H_
#define UI_COMPOSITOR_COMPOSITOR_LOCK_H_
#include <vector>
#include "base/functional/callback_forward.h"
#include "base/memory/raw_pt... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_lock.h | C++ | unknown | 4,179 |
// 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 <stdint.h>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/test/test_mock_time_task_runner.h"
#include "cc/trees/layer_... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_lock_unittest.cc | C++ | unknown | 15,292 |
// 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_COMPOSITOR_COMPOSITOR_OBSERVER_H_
#define UI_COMPOSITOR_COMPOSITOR_OBSERVER_H_
#include "base/containers/flat_set.h"
#include "base/time/time.h"
#include "build/bui... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_observer.h | C++ | unknown | 3,703 |
// 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/compositor/compositor_switches.h"
#include "base/command_line.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
namespace switches {
// ... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_switches.cc | C++ | unknown | 1,874 |
// 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_COMPOSITOR_COMPOSITOR_SWITCHES_H_
#define UI_COMPOSITOR_COMPOSITOR_SWITCHES_H_
#include "base/feature_list.h"
#include "ui/compositor/compositor_export.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_switches.h | C++ | unknown | 1,069 |
// 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 <stdint.h>
#include "base/memory/raw_ptr.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/single_thread_task_runner.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_unittest.cc | C++ | unknown | 22,125 |
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Zhao-PengFei35/chromium_src_4 | ui/compositor/compositor_unittests.cc | C++ | unknown | 2,750 |
// 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/compositor/debug_utils.h"
#include <stddef.h>
#include <iomanip>
#include <ostream>
#include <string>
#include "base/logging.h"
#include "base/numerics/math_con... | Zhao-PengFei35/chromium_src_4 | ui/compositor/debug_utils.cc | C++ | unknown | 4,492 |
// 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_COMPOSITOR_DEBUG_UTILS_H_
#define UI_COMPOSITOR_DEBUG_UTILS_H_
#include <sstream>
#include "ui/compositor/compositor_export.h"
namespace gfx {
class Point;
}
nam... | Zhao-PengFei35/chromium_src_4 | ui/compositor/debug_utils.h | C++ | unknown | 935 |
// 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/compositor/float_animation_curve_adapter.h"
#include "base/memory/ptr_util.h"
namespace ui {
FloatAnimationCurveAdapter::FloatAnimationCurveAdapter(
gfx::Tw... | Zhao-PengFei35/chromium_src_4 | ui/compositor/float_animation_curve_adapter.cc | C++ | unknown | 1,184 |
// 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_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_
#define UI_COMPOSITOR_FLOAT_ANIMATION_CURVE_ADAPTER_H_
#include <memory>
#include "base/time/time.h"
#include "ui/gfx/a... | Zhao-PengFei35/chromium_src_4 | ui/compositor/float_animation_curve_adapter.h | C++ | unknown | 1,149 |
// 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/compositor/layer.h"
#include <cmath>
#include <memory>
#include <utility>
#include "base/auto_reset.h"
#include "base/check_op.h"
#include "base/command_line.h"
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer.cc | C++ | unknown | 60,248 |
// 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_COMPOSITOR_LAYER_H_
#define UI_COMPOSITOR_LAYER_H_
#include <stddef.h>
#include <array>
#include <memory>
#include <string>
#include <vector>
#include "base/auto_... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer.h | C++ | unknown | 35,361 |
// 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_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_DELEGATE_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_par... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_delegate.h | C++ | unknown | 3,533 |
// 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/compositor/layer_animation_element.h"
#include <utility>
#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
#include "cc/animation/animat... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_element.cc | C++ | unknown | 31,747 |
// 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_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_ELEMENT_H_
#include <stdint.h>
#include <memory>
#include <set>
#include "base/memory/... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_element.h | C++ | unknown | 10,383 |
// 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/compositor/layer_animation_element.h"
#include <memory>
#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_element_unittest.cc | C++ | unknown | 26,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.
#include "ui/compositor/layer_animation_observer.h"
#include "ui/compositor/layer_animation_sequence.h"
namespace ui {
//////////////////////////////////////////////////////... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_observer.cc | C++ | unknown | 4,828 |
// 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_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_OBSERVER_H_
#include <map>
#include <set>
#include "base/memory/weak_ptr.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_observer.h | C++ | unknown | 7,118 |
// 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/compositor/layer_animation_sequence.h"
#include <algorithm>
#include <iterator>
#include "base/observer_list.h"
#include "base/strings/stringprintf.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_sequence.cc | C++ | unknown | 9,757 |
// 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_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_
#define UI_COMPOSITOR_LAYER_ANIMATION_SEQUENCE_H_
#include <stddef.h>
#include <memory>
#include <vector>
#include "base/gt... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_sequence.h | C++ | unknown | 8,130 |
// 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/compositor/layer_animation_sequence.h"
#include <memory>
#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
#include "base/time/time.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animation_sequence_unittest.cc | C++ | unknown | 13,027 |
// 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/compositor/layer_animator.h"
#include <stddef.h>
#include <memory>
#include "base/check_op.h"
#include "base/containers/cxx20_erase.h"
#include "base/observer_l... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animator.cc | C++ | unknown | 35,358 |
// 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_COMPOSITOR_LAYER_ANIMATOR_H_
#define UI_COMPOSITOR_LAYER_ANIMATOR_H_
#include <vector>
#include "base/callback_list.h"
#include "base/containers/circular_deque.h"
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animator.h | C++ | unknown | 19,219 |
// 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/compositor/layer_animator_collection.h"
#include <set>
#include "base/time/time.h"
#include "ui/compositor/compositor.h"
#include "ui/compositor/layer_animator.h... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animator_collection.cc | C++ | unknown | 2,150 |
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_
#define UI_COMPOSITOR_LAYER_ANIMATOR_COLLECTION_H_
#include <set>
#include "base/functional/callback.h"
#include "base/memo... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animator_collection.h | C++ | unknown | 1,613 |
// 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/compositor/layer_animator.h"
#include <memory>
#include <string>
#include <vector>
#include "base/compiler_specific.h"
#include "base/memory/raw_ptr.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_animator_unittest.cc | C++ | unknown | 143,567 |
// 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/compositor/layer_delegate.h"
namespace ui {
void LayerDelegate::OnLayerBoundsChanged(const gfx::Rect& old_bounds,
Proper... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_delegate.cc | C++ | unknown | 922 |
// 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_COMPOSITOR_LAYER_DELEGATE_H_
#define UI_COMPOSITOR_LAYER_DELEGATE_H_
#include "ui/compositor/compositor_export.h"
#include "ui/compositor/property_change_reason.h"
... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_delegate.h | C++ | unknown | 2,677 |
// 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_COMPOSITOR_LAYER_OBSERVER_H_
#define UI_COMPOSITOR_LAYER_OBSERVER_H_
#include "ui/compositor/compositor_export.h"
namespace ui {
class Layer;
class COMPOSITOR_EX... | Zhao-PengFei35/chromium_src_4 | ui/compositor/layer_observer.h | C++ | unknown | 507 |