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 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_ANIMATION_ANIMATION_CONTAINER_H_
#define UI_GFX_ANIMATION_ANIMATION_CONTAINER_H_
#include <memory>
#include <utility>
#include "base/containers/flat_set.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_container.h | C++ | unknown | 4,626 |
// 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_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
#define UI_GFX_ANIMATION_ANIMATION_CONTAINER_ELEMENT_H_
#include "base/time/time.h"
#include "ui/gfx/animation/animatio... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_container_element.h | C++ | unknown | 1,088 |
// 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_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_
#define UI_GFX_ANIMATION_ANIMATION_CONTAINER_OBSERVER_H_
#include "ui/gfx/animation/animation_export.h"
namespace gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_container_observer.h | C++ | unknown | 1,118 |
// 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/animation/animation_container.h"
#include <memory>
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/g... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_container_unittest.cc | C++ | unknown | 5,434 |
// 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_ANIMATION_ANIMATION_DELEGATE_H_
#define UI_GFX_ANIMATION_ANIMATION_DELEGATE_H_
#include "ui/gfx/animation/animation_export.h"
namespace gfx {
class Animation;... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_delegate.h | 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_ANIMATION_ANIMATION_DELEGATE_NOTIFIER_H_
#define UI_GFX_ANIMATION_ANIMATION_DELEGATE_NOTIFIER_H_
#include "base/check.h"
#include "base/memory/raw_ptr.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_delegate_notifier.h | C++ | unknown | 1,921 |
// 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_ANIMATION_ANIMATION_EXPORT_H_
#define UI_GFX_ANIMATION_ANIMATION_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(ANIMATION_IMPLEMENTATION... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_export.h | C | unknown | 757 |
// 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/animation/animation.h"
#include "ui/linux/linux_ui.h"
namespace gfx {
namespace {
// Linux toolkits only have a global setting for whether animations shoul... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_linux.cc | C++ | unknown | 862 |
// 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/animation/animation.h"
#import <Cocoa/Cocoa.h>
#include "base/mac/mac_util.h"
#include "base/task/current_thread.h"
namespace gfx {
// static
bool Animatio... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_mac.mm | Objective-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/gfx/animation/animation_runner.h"
#include <utility>
#include "base/timer/timer.h"
namespace {
// A default AnimationRunner based on base::Timer.
// TODO(https... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_runner.cc | C++ | unknown | 2,279 |
// 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_ANIMATION_ANIMATION_RUNNER_H_
#define UI_GFX_ANIMATION_ANIMATION_RUNNER_H_
#include <memory>
#include "base/functional/callback.h"
#include "base/time/time.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_runner.h | C++ | unknown | 2,139 |
// 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/animation/animation_runner.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace gf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_runner_unittest.cc | C++ | unknown | 1,151 |
// 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/animation/animation_test_api.h"
#include "base/time/time.h"
#include "ui/gfx/animation/animation.h"
namespace gfx {
// static
std::unique_ptr<base::AutoRese... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_test_api.cc | C++ | unknown | 1,469 |
// 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_ANIMATION_ANIMATION_TEST_API_H_
#define UI_GFX_ANIMATION_ANIMATION_TEST_API_H_
#include <memory>
#include "base/auto_reset.h"
#include "base/memory/raw_ptr.h"
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_test_api.h | C++ | unknown | 1,852 |
// 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 "base/command_line.h"
#include "base/run_loop.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_unittest.cc | C++ | unknown | 5,135 |
// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/gfx/animation/animation.h"
#include <windows.h>
#include "base/win/win_util.h"
namespace gfx {
// static
bool Animation::ShouldRenderRichAnimationImpl() {
BO... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/animation_win.cc | C++ | unknown | 1,186 |
// 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/animation/keyframe/animation_curve.h"
#include "base/check.h"
#include "ui/gfx/geometry/transform_operations.h"
namespace gfx {
bool AnimationCurve::Preserv... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/animation_curve.cc | C++ | unknown | 2,202 |
// 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_ANIMATION_KEYFRAME_ANIMATION_CURVE_H_
#define UI_GFX_ANIMATION_KEYFRAME_ANIMATION_CURVE_H_
#include <memory>
#include "base/memory/raw_ptr_exclusion.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/animation_curve.h | C++ | unknown | 5,225 |
// 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_ANIMATION_KEYFRAME_KEYFRAME_ANIMATION_EXPORT_H_
#define UI_GFX_ANIMATION_KEYFRAME_KEYFRAME_ANIMATION_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_animation_export.h | C | unknown | 905 |
// 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/animation/keyframe/keyframe_effect.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/anima... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_animation_unittest.cc | C++ | unknown | 35,432 |
// 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/animation/keyframe/keyframe_effect.h"
#include <algorithm>
#include "base/containers/cxx20_erase.h"
#ifdef OHOS_SCROLLBAR
#include "base/logging.h"
#endif
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_effect.cc | C++ | unknown | 15,315 |
// 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_ANIMATION_KEYFRAME_KEYFRAME_EFFECT_H_
#define UI_GFX_ANIMATION_KEYFRAME_KEYFRAME_EFFECT_H_
#include <bitset>
#include <set>
#include <vector>
#include "third_p... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_effect.h | C++ | unknown | 5,492 |
// 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/animation/keyframe/keyframe_model.h"
#include "base/memory/ptr_util.h"
#include "base/notreached.h"
#include "base/time/time.h"
namespace gfx {
namespace {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_model.cc | C++ | unknown | 9,770 |
// 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_ANIMATION_KEYFRAME_KEYFRAME_MODEL_H_
#define UI_GFX_ANIMATION_KEYFRAME_KEYFRAME_MODEL_H_
#include <string>
#include "base/time/time.h"
#include "third_party/ab... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframe_model.h | C++ | unknown | 8,705 |
// 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_ANIMATION_KEYFRAME_KEYFRAMED_ANIMATION_CURVE_INL_H_
#define UI_GFX_ANIMATION_KEYFRAME_KEYFRAMED_ANIMATION_CURVE_INL_H_
namespace {
template <class KeyframeType... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframed_animation_curve-inl.h | C++ | unknown | 5,557 |
// 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/animation/keyframe/keyframed_animation_curve.h"
#include <stddef.h>
#include <algorithm>
#include <memory>
#include <utility>
#include "base/memory/ptr_util... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframed_animation_curve.cc | C++ | unknown | 19,940 |
// 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_ANIMATION_KEYFRAME_KEYFRAMED_ANIMATION_CURVE_H_
#define UI_GFX_ANIMATION_KEYFRAME_KEYFRAMED_ANIMATION_CURVE_H_
#include <memory>
#include <utility>
#include <ve... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframed_animation_curve.h | C++ | unknown | 14,468 |
// 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/animation/keyframe/keyframed_animation_curve.h"
#include <memory>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/animation/tween.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/keyframed_animation_curve_unittest.cc | C++ | unknown | 46,772 |
// 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_ANIMATION_KEYFRAME_TARGET_PROPERTY_H_
#define UI_GFX_ANIMATION_KEYFRAME_TARGET_PROPERTY_H_
#include <bitset>
namespace gfx {
static constexpr size_t kMaxTarge... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/target_property.h | C++ | unknown | 515 |
// 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/animation/keyframe/test/animation_utils.h"
#include "base/time/time.h"
#include "ui/gfx/animation/keyframe/keyframed_animation_curve.h"
namespace gfx {
std:... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/test/animation_utils.cc | C++ | unknown | 3,242 |
// 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_ANIMATION_KEYFRAME_TEST_ANIMATION_UTILS_H_
#define UI_GFX_ANIMATION_KEYFRAME_TEST_ANIMATION_UTILS_H_
#include <vector>
#include "ui/gfx/animation/keyframe/keyf... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/test/animation_utils.h | C++ | unknown | 1,503 |
// 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/animation/keyframe/timing_function.h"
#include <algorithm>
#include <cmath>
#include <memory>
#include "base/check_op.h"
#include "base/memory/ptr_util.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/timing_function.cc | C++ | unknown | 7,938 |
// 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_ANIMATION_KEYFRAME_TIMING_FUNCTION_H_
#define UI_GFX_ANIMATION_KEYFRAME_TIMING_FUNCTION_H_
#include <memory>
#include <vector>
#include "ui/gfx/animation/keyfr... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/timing_function.h | C++ | unknown | 5,867 |
// 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/animation/keyframe/transition.h"
namespace gfx {
namespace {
static constexpr int kDefaultTransitionDurationMs = 225;
} // namespace
Transition::Transition... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/transition.cc | C++ | unknown | 551 |
// 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_ANIMATION_KEYFRAME_TRANSITION_H_
#define UI_GFX_ANIMATION_KEYFRAME_TRANSITION_H_
#include <set>
#include "base/time/time.h"
#include "ui/gfx/animation/keyframe... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/keyframe/transition.h | C++ | unknown | 756 |
// 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/animation/linear_animation.h"
#include <math.h>
#include <stdint.h>
#include <algorithm>
#include "base/command_line.h"
#include "base/strings/string_number... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/linear_animation.cc | C++ | unknown | 3,053 |
// 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_ANIMATION_LINEAR_ANIMATION_H_
#define UI_GFX_ANIMATION_LINEAR_ANIMATION_H_
#include "base/time/time.h"
#include "ui/gfx/animation/animation.h"
namespace gfx {
... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/linear_animation.h | C++ | unknown | 2,967 |
// 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/animation/multi_animation.h"
#include <numeric>
#include "base/check_op.h"
#include "base/notreached.h"
#include "ui/gfx/animation/animation_delegate.h"
nam... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/multi_animation.cc | C++ | unknown | 2,671 |
// 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_ANIMATION_MULTI_ANIMATION_H_
#define UI_GFX_ANIMATION_MULTI_ANIMATION_H_
#include <stddef.h>
#include <vector>
#include "base/time/time.h"
#include "ui/gfx/an... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/multi_animation.h | C++ | unknown | 3,868 |
// 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/animation/multi_animation.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/animation/animation_container_element.h"
#include "ui/gfx/animati... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/multi_animation_unittest.cc | C++ | unknown | 5,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.
#include "ui/gfx/animation/slide_animation.h"
#include <math.h>
#include <algorithm>
#include "ui/gfx/animation/animation_delegate.h"
namespace gfx {
SlideAnimation::Slide... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/slide_animation.cc | C++ | unknown | 2,442 |
// 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_ANIMATION_SLIDE_ANIMATION_H_
#define UI_GFX_ANIMATION_SLIDE_ANIMATION_H_
#include "base/memory/raw_ptr.h"
#include "third_party/abseil-cpp/absl/types/optional.h... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/slide_animation.h | C++ | unknown | 4,201 |
// 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/animation/slide_animation.h"
#include <memory>
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtes... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/slide_animation_unittest.cc | C++ | unknown | 9,282 |
// 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_ANIMATION_TEST_ANIMATION_DELEGATE_H_
#define UI_GFX_ANIMATION_TEST_ANIMATION_DELEGATE_H_
#include "base/run_loop.h"
#include "ui/gfx/animation/animation_delegat... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/test_animation_delegate.h | C++ | unknown | 1,230 |
// 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/animation/throb_animation.h"
#include <limits>
namespace gfx {
ThrobAnimation::ThrobAnimation(AnimationDelegate* target)
: SlideAnimation(target) {}
vo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/throb_animation.cc | C++ | unknown | 1,842 |
// 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_ANIMATION_THROB_ANIMATION_H_
#define UI_GFX_ANIMATION_THROB_ANIMATION_H_
#include "ui/gfx/animation/slide_animation.h"
namespace gfx {
// A subclass of SlideA... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/throb_animation.h | C++ | unknown | 2,413 |
// 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/animation/tween.h"
#include <math.h>
#include <stdint.h>
#include <algorithm>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numeric... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/tween.cc | C++ | unknown | 10,265 |
// 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_ANIMATION_TWEEN_H_
#define UI_GFX_ANIMATION_TWEEN_H_
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/animation/animation_export.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/tween.h | C++ | unknown | 7,828 |
// 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/animation/tween.h"
#include <math.h>
#include "base/time/time.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/animation/tween_unittest.cc | C++ | unknown | 8,992 |
// 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/bidi_line_iterator.h"
#include "base/check.h"
#include "base/notreached.h"
namespace ui {
namespace gfx {
namespace {
UBiDiLevel GetParagraphLevelForDirect... | Zhao-PengFei35/chromium_src_4 | ui/gfx/bidi_line_iterator.cc | C++ | unknown | 2,021 |
// 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_BIDI_LINE_ITERATOR_H_
#define UI_GFX_BIDI_LINE_ITERATOR_H_
#include <memory>
#include <string>
#include "base/i18n/rtl.h"
#include "third_party/icu/source/comm... | Zhao-PengFei35/chromium_src_4 | ui/gfx/bidi_line_iterator.h | C++ | unknown | 1,642 |
// 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/bidi_line_iterator.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
namespace gfx {
namespac... | Zhao-PengFei35/chromium_src_4 | ui/gfx/bidi_line_iterator_unittest.cc | C++ | unknown | 4,551 |
// 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/blit.h"
#include <stddef.h>
#include "base/check.h"
#include "build/build_config.h"
#include "skia/ext/platform_canvas.h"
#include "third_party/skia/include/... | Zhao-PengFei35/chromium_src_4 | ui/gfx/blit.cc | C++ | unknown | 3,130 |
// 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_BLIT_H_
#define UI_GFX_BLIT_H_
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/native_widget_types.h"
class SkCanvas;
namespace gfx {
class Rect;
class Vecto... | Zhao-PengFei35/chromium_src_4 | ui/gfx/blit.h | C++ | unknown | 715 |
// Copyright 2010 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/platform_shared_memory_region.h"
#include "build/build_config.h"
#include "skia/ext/platform_canvas.h"
#include "testing/gtest/includ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/blit_unittest.cc | C++ | unknown | 6,632 |
// 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_BREAK_LIST_H_
#define UI_GFX_BREAK_LIST_H_
#include <stddef.h>
#include <utility>
#include <vector>
#include "base/check_op.h"
#include "ui/gfx/range/range.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/break_list.h | C++ | unknown | 6,379 |
// 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/break_list.h"
#include <stddef.h>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/range/ra... | Zhao-PengFei35/chromium_src_4 | ui/gfx/break_list_unittest.cc | C++ | unknown | 6,831 |
// 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/buffer_format_util.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numerics/safe_math.h"
#include "ui/gfx/switches.h"
namespace gfx... | Zhao-PengFei35/chromium_src_4 | ui/gfx/buffer_format_util.cc | C++ | unknown | 12,053 |
// 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_BUFFER_FORMAT_UTIL_H_
#define UI_GFX_BUFFER_FORMAT_UTIL_H_
#include <stddef.h>
#include <vector>
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/geometry/si... | Zhao-PengFei35/chromium_src_4 | ui/gfx/buffer_format_util.h | C++ | unknown | 3,315 |
// 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_BUFFER_TYPES_H_
#define UI_GFX_BUFFER_TYPES_H_
#include <stdint.h>
#include <tuple>
namespace gfx {
// The format needs to be taken into account when mapping... | Zhao-PengFei35/chromium_src_4 | ui/gfx/buffer_types.h | C++ | unknown | 2,819 |
// 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/buffer_usage_util.h"
namespace gfx {
const char* BufferUsageToString(BufferUsage usage) {
switch (usage) {
case BufferUsage::GPU_READ:
return "GP... | Zhao-PengFei35/chromium_src_4 | ui/gfx/buffer_usage_util.cc | C++ | unknown | 1,238 |
// 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_BUFFER_USAGE_UTIL_H_
#define UI_GFX_BUFFER_USAGE_UTIL_H_
#include "ui/gfx/buffer_types.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
// Returns the name o... | Zhao-PengFei35/chromium_src_4 | ui/gfx/buffer_usage_util.h | C++ | unknown | 467 |
// 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/ca_layer_params.h"
namespace gfx {
CALayerParams::CALayerParams() {}
CALayerParams::~CALayerParams() = default;
CALayerParams::CALayerParams(CALayerParams&& ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/ca_layer_params.cc | C++ | unknown | 584 |
// 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_CA_LAYER_PARAMS_H_
#define UI_GFX_CA_LAYER_PARAMS_H_
#include "build/build_config.h"
#include "ui/gfx/geometry/size.h"
#include "ui/gfx/gfx_export.h"
#if BUILD... | Zhao-PengFei35/chromium_src_4 | ui/gfx/ca_layer_params.h | C++ | unknown | 1,875 |
// 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_CA_LAYER_RESULT_H_
#define UI_GFX_CA_LAYER_RESULT_H_
namespace gfx {
// This is the result of ProcessForCALayerOverlays() and is for macOS only.
// This enum i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/ca_layer_result.h | C++ | unknown | 2,223 |
// 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/canvas.h"
#include <cmath>
#include <limits>
#include "base/i18n/rtl.h"
#include "base/logging.h"
#include "base/numerics/safe_conversions.h"
#include "cc/pa... | Zhao-PengFei35/chromium_src_4 | ui/gfx/canvas.cc | C++ | unknown | 19,162 |
// 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_CANVAS_H_
#define UI_GFX_CANVAS_H_
#include <stdint.h>
#include <memory>
#include <string>
#include <vector>
#include "base/memory/raw_ptr.h"
#include "cc/pai... | Zhao-PengFei35/chromium_src_4 | ui/gfx/canvas.h | C++ | unknown | 20,171 |
// 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 <limits.h>
#include <stddef.h>
#include <stdint.h>
#include <memory>
#include "build/build_config.h"
#include "cc/paint/paint_canvas.h"
#include "ui/gfx/canvas.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/canvas_skia.cc | C++ | unknown | 8,041 |
// 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/canvas.h"
#include <limits>
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/gfx/canvas_unittest.cc | C++ | unknown | 2,216 |
// 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_CLIENT_NATIVE_PIXMAP_H_
#define UI_GFX_CLIENT_NATIVE_PIXMAP_H_
#include "ui/gfx/gfx_export.h"
namespace gfx {
struct NativePixmapHandle;
// This represents a... | Zhao-PengFei35/chromium_src_4 | ui/gfx/client_native_pixmap.h | C++ | unknown | 965 |
// 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_CLIENT_NATIVE_PIXMAP_FACTORY_H_
#define UI_GFX_CLIENT_NATIVE_PIXMAP_FACTORY_H_
#include <memory>
#include <vector>
#include "base/files/scoped_file.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/client_native_pixmap_factory.h | C++ | unknown | 1,379 |
include_rules = [
"+skia",
"+third_party/libjpeg",
"+third_party/libjpeg_turbo",
"+third_party/libpng",
"+third_party/zlib",
]
| Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/DEPS | Python | unknown | 137 |
// 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_CODEC_CODEC_EXPORT_H_
#define UI_GFX_CODEC_CODEC_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(CODEC_IMPLEMENTATION)
#define CODEC_EXPO... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/codec_export.h | C | unknown | 701 |
// 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/codec/jpeg_codec.h"
#include <setjmp.h>
#include <memory>
#include <ostream>
#include "base/notreached.h"
#include "third_party/skia/include/core/SkBitmap.h... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/jpeg_codec.cc | C++ | unknown | 9,782 |
// 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_CODEC_JPEG_CODEC_H_
#define UI_GFX_CODEC_JPEG_CODEC_H_
#include <stddef.h>
#include <memory>
#include <vector>
#include "third_party/skia/include/core/SkImage... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/jpeg_codec.h | C++ | unknown | 3,747 |
// 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/codec/jpeg_codec.h"
#include <math.h>
#include <stddef.h>
#include <stdint.h>
#include "base/barrier_closure.h"
#include "base/run_loop.h"
#include "base/tas... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/jpeg_codec_unittest.cc | C++ | unknown | 8,932 |
// 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/codec/png_codec.h"
#include <stdint.h>
#include "base/logging.h"
#include "base/memory/raw_ptr.h"
#include "base/memory/raw_ptr_exclusion.h"
#include "base/n... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/png_codec.cc | C++ | unknown | 18,942 |
// 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_CODEC_PNG_CODEC_H_
#define UI_GFX_CODEC_PNG_CODEC_H_
#include <stddef.h>
#include <string>
#include <vector>
#include "ui/gfx/codec/codec_export.h"
class SkB... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/png_codec.h | C++ | unknown | 5,670 |
// 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/codec/png_codec.h"
#include <stddef.h>
#include <stdint.h>
#include <cmath>
#include "base/check.h"
#include "base/logging.h"
#include "base/ranges/algorith... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/png_codec_unittest.cc | C++ | unknown | 32,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.
#include "ui/gfx/codec/vector_wstream.h"
namespace gfx {
bool VectorWStream::write(const void* buffer, size_t size) {
const unsigned char* ptr = reinterpret_cast<const unsi... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/vector_wstream.cc | C++ | unknown | 496 |
// 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_CODEC_VECTOR_WSTREAM_H_
#define UI_GFX_CODEC_VECTOR_WSTREAM_H_
#include <stddef.h>
#include <vector>
#include "base/check_op.h"
#include "base/memory/raw_ptr.... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/vector_wstream.h | C++ | unknown | 849 |
// 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/codec/webp_codec.h"
#include <vector>
#include "ui/gfx/codec/vector_wstream.h"
namespace gfx {
// Encoder -------------------------------------------------... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/webp_codec.cc | C++ | unknown | 1,795 |
// 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_CODEC_WEBP_CODEC_H_
#define UI_GFX_CODEC_WEBP_CODEC_H_
#include <vector>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/skia/inc... | Zhao-PengFei35/chromium_src_4 | ui/gfx/codec/webp_codec.h | C++ | unknown | 2,913 |
// 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_analysis.h"
#include <limits.h>
#include <stdint.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include <memory>
#include <queue>
#include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_analysis.cc | C++ | unknown | 28,639 |
// 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_ANALYSIS_H_
#define UI_GFX_COLOR_ANALYSIS_H_
#include <stdint.h>
#include "base/functional/callback_forward.h"
#include "base/memory/ref_counted.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_analysis.h | C++ | unknown | 7,938 |
// 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 <vector>
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/color_analysis.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_analysis_fuzzer.cc | C++ | unknown | 1,966 |
// 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_analysis.h"
#include <stddef.h>
#include <stdint.h>
#include <exception>
#include <vector>
#include "base/functional/bind.h"
#include "skia/ext/platfo... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_analysis_unittest.cc | C++ | unknown | 16,822 |
// 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/color_conversion_sk_filter_cache.h"
#include <string>
#include "base/feature_list.h"
#include "base/logging.h"
#include "third_party/skia/include/core/SkCanv... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_conversion_sk_filter_cache.cc | C++ | unknown | 9,514 |
// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_GFX_COLOR_CONVERSION_SK_FILTER_CACHE_H_
#define UI_GFX_COLOR_CONVERSION_SK_FILTER_CACHE_H_
#include "base/containers/flat_map.h"
#include "third_party/abseil-cpp/ab... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_conversion_sk_filter_cache.h | C++ | unknown | 4,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/color_conversions.h"
#include <cmath>
#include "skia/ext/skcolorspace_primaries.h"
#include "skia/ext/skcolorspace_trfn.h"
#include "third_party/skia/include... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_conversions.cc | C++ | unknown | 21,570 |
// 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_COLOR_CONVERSIONS_H_
#define UI_GFX_COLOR_CONVERSIONS_H_
#include <tuple>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "third_party/skia/in... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_conversions.h | C++ | unknown | 6,654 |
// 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 <tuple>
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/gfx/color_convers... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_conversions_unittest.cc | C++ | unknown | 65,404 |
// 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_COLOR_PALETTE_H_
#define UI_GFX_COLOR_PALETTE_H_
#include "third_party/skia/include/core/SkColor.h"
namespace gfx {
// A placeholder value for unset colors. T... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_palette.h | C++ | unknown | 9,180 |
// 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_space.h"
#include <iomanip>
#include <limits>
#include <map>
#include <sstream>
#include "base/atomic_sequence_num.h"
#include "base/lazy_instance.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space.cc | C++ | unknown | 38,343 |
// 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_SPACE_H_
#define UI_GFX_COLOR_SPACE_H_
#include <stdint.h>
#include <iosfwd>
#include <string>
#include "base/gtest_prod_util.h"
#include "build/build_c... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space.h | C++ | unknown | 16,024 |
// 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_COLOR_SPACE_EXPORT_H_
#define UI_GFX_COLOR_SPACE_EXPORT_H_
#if defined(COMPONENT_BUILD)
#if defined(WIN32)
#if defined(COLOR_SPACE_IMPLEMENTATION)
#define COLO... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space_export.h | C | unknown | 749 |
// 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 <algorithm>
#include <cmath>
#include <tuple>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/skia_color_space_util.h"... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space_unittest.cc | C++ | unknown | 12,503 |
// 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_space_win.h"
#include "base/logging.h"
#include "third_party/skia/modules/skcms/skcms.h"
namespace gfx {
DXVA2_ExtendedFormat ColorSpaceWin::GetExtend... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space_win.cc | C++ | unknown | 10,594 |
// 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_SPACE_WIN_H_
#define UI_GFX_COLOR_SPACE_WIN_H_
#include <d3d11.h>
#include <d3d9.h>
#include <dxva2api.h>
// Must be included after d3d headers, use #if ... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_space_win.h | C++ | unknown | 1,337 |
// 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/color_transform.h"
#include <algorithm>
#include <cmath>
#include <list>
#include <memory>
#include <sstream>
#include <utility>
#include "base/logging.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/gfx/color_transform.cc | C++ | unknown | 43,878 |