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 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/base/prediction/empty_predictor.h"
#include "ui/base/ui_base_features.h"
namespace ui {
EmptyPredictor::EmptyPredictor() {
Reset();
}
EmptyPredictor::~EmptyPr... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/empty_predictor.cc | C++ | unknown | 1,024 |
// 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_BASE_PREDICTION_EMPTY_PREDICTOR_H_
#define UI_BASE_PREDICTION_EMPTY_PREDICTOR_H_
#include "base/component_export.h"
#include "third_party/abseil-cpp/absl/types/opti... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/empty_predictor.h | C++ | unknown | 1,384 |
// 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_BASE_PREDICTION_INPUT_FILTER_H_
#define UI_BASE_PREDICTION_INPUT_FILTER_H_
#include "base/component_export.h"
#include "base/time/time.h"
#include "ui/gfx/geometry/... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_filter.h | C++ | unknown | 1,117 |
// 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/base/prediction/input_filter_unittest_helpers.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "ui/base/prediction/input_predictor_unittest_hel... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_filter_unittest_helpers.cc | C++ | unknown | 2,919 |
// 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_BASE_PREDICTION_INPUT_FILTER_UNITTEST_HELPERS_H_
#define UI_BASE_PREDICTION_INPUT_FILTER_UNITTEST_HELPERS_H_
#include "ui/base/prediction/input_filter.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_filter_unittest_helpers.h | C++ | unknown | 908 |
// 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_BASE_PREDICTION_INPUT_PREDICTOR_H_
#define UI_BASE_PREDICTION_INPUT_PREDICTOR_H_
#include <memory>
#include "base/component_export.h"
#include "base/time/time.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_predictor.h | C++ | unknown | 2,955 |
// 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/base/prediction/input_predictor_unittest_helpers.h"
namespace ui {
InputPredictorTest::InputPredictorTest() = default;
InputPredictorTest::~InputPredictorTest() ... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_predictor_unittest_helpers.cc | C++ | unknown | 2,392 |
// 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_BASE_PREDICTION_INPUT_PREDICTOR_UNITTEST_HELPERS_H_
#define UI_BASE_PREDICTION_INPUT_PREDICTOR_UNITTEST_HELPERS_H_
#include "base/time/time.h"
#include "testing/gte... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/input_predictor_unittest_helpers.h | C++ | unknown | 1,769 |
// 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/base/prediction/kalman_filter.h"
#include "base/check_op.h"
namespace {
constexpr uint32_t kStableIterNum = 4;
constexpr double kSigmaProcess = 0.01;
constexpr ... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/kalman_filter.cc | C++ | unknown | 4,076 |
// 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_BASE_PREDICTION_KALMAN_FILTER_H_
#define UI_BASE_PREDICTION_KALMAN_FILTER_H_
#include <stdint.h>
#include "base/component_export.h"
#include "ui/gfx/geometry/matri... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/kalman_filter.h | C++ | unknown | 2,669 |
// 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/base/prediction/kalman_predictor.h"
#include <algorithm>
#include <cmath>
#include "base/numerics/math_constants.h"
#include "base/time/time.h"
#include "ui/base... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/kalman_predictor.cc | C++ | unknown | 4,545 |
// 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_BASE_PREDICTION_KALMAN_PREDICTOR_H_
#define UI_BASE_PREDICTION_KALMAN_PREDICTOR_H_
#include <deque>
#include <vector>
#include "base/component_export.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/kalman_predictor.h | C++ | unknown | 2,848 |
// 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 <vector>
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_predictor_unittest_helpers.h"
#include "ui/base/prediction/kalman_predictor... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/kalman_predictor_unittest.cc | C++ | unknown | 7,948 |
// 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/base/prediction/least_squares_predictor.h"
#include <algorithm>
#include "ui/base/ui_base_features.h"
namespace ui {
namespace {
// Solve XB = y.
static bool ... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/least_squares_predictor.cc | C++ | unknown | 3,248 |
// 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_BASE_PREDICTION_LEAST_SQUARES_PREDICTOR_H_
#define UI_BASE_PREDICTION_LEAST_SQUARES_PREDICTOR_H_
#include <deque>
#include "base/component_export.h"
#include "base... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/least_squares_predictor.h | C++ | unknown | 1,894 |
// 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/base/prediction/least_squares_predictor.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_predictor_unittest_helpers.h"
namespa... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/least_squares_predictor_unittest.cc | C++ | unknown | 3,743 |
// 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/base/prediction/linear_predictor.h"
#include <algorithm>
#include "ui/base/ui_base_features.h"
namespace ui {
LinearPredictor::LinearPredictor(EquationOrder or... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_predictor.cc | C++ | unknown | 4,555 |
// 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_BASE_PREDICTION_LINEAR_PREDICTOR_H_
#define UI_BASE_PREDICTION_LINEAR_PREDICTOR_H_
#include <deque>
#include "base/component_export.h"
#include "ui/base/prediction... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_predictor.h | C++ | unknown | 2,585 |
// 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/base/prediction/linear_predictor.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_predictor_unittest_helpers.h"
#include "ui/b... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_predictor_unittest.cc | C++ | unknown | 5,650 |
// 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/base/prediction/linear_resampling.h"
#include <algorithm>
#include "base/feature_list.h"
#include "base/metrics/field_trial_params.h"
#include "base/strings/stri... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_resampling.cc | C++ | unknown | 5,352 |
// 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_BASE_PREDICTION_LINEAR_RESAMPLING_H_
#define UI_BASE_PREDICTION_LINEAR_RESAMPLING_H_
#include <deque>
#include "base/component_export.h"
#include "base/time/time.h... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_resampling.h | C++ | unknown | 2,424 |
// 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/base/prediction/linear_resampling.h"
#include "base/test/scoped_feature_list.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/linear_resampling_unittest.cc | C++ | unknown | 9,796 |
// 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/base/prediction/one_euro_filter.h"
#include "ui/base/ui_base_features.h"
namespace ui {
const double OneEuroFilter::kDefaultFrequency;
const double OneEuroFilter... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/one_euro_filter.cc | C++ | unknown | 1,628 |
// 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_BASE_PREDICTION_ONE_EURO_FILTER_H_
#define UI_BASE_PREDICTION_ONE_EURO_FILTER_H_
#include "base/component_export.h"
#include "third_party/one_euro_filter/src/one_eu... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/one_euro_filter.h | C++ | unknown | 1,900 |
// 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/rand_util.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/prediction/input_filter_unittest_helpers.h"
#include "ui/base/prediction/one_euro_f... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/one_euro_filter_unittests.cc | C++ | unknown | 1,387 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/prediction/prediction_metrics_handler.h"
#include <utility>
#include "base/cpu_reduction_experiment.h"
#include "base/metrics/histogra... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/prediction_metrics_handler.cc | C++ | unknown | 9,856 |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_PREDICTION_PREDICTION_METRICS_HANDLER_H_
#define UI_BASE_PREDICTION_PREDICTION_METRICS_HANDLER_H_
#include <deque>
#include <string>
#in... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/prediction_metrics_handler.h | C++ | unknown | 5,157 |
// 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/base/prediction/prediction_metrics_handler.h"
#include <memory>
#include "base/test/metrics/histogram_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/prediction_metrics_handler_unittest.cc | C++ | unknown | 10,846 |
// 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_BASE_PREDICTION_PREDICTION_UNITTEST_HELPERS_H_
#define UI_BASE_PREDICTION_PREDICTION_UNITTEST_HELPERS_H_
#include "base/time/time.h"
namespace ui {
namespace test ... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/prediction_unittest_helpers.h | C++ | unknown | 1,148 |
// 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_BASE_RESOURCE_ALLOWLIST_H_
#define UI_BASE_RESOURCE_ALLOWLIST_H_
namespace ui {
// The purpose of this function template is to support resource allowlisting,
// wh... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/allowlist.h | C++ | unknown | 1,864 |
// 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/base/resource/data_pack.h"
#include <errno.h>
#include <algorithm>
#include <memory>
#include <set>
#include <string>
#include <utility>
#include "base/command_... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack.cc | C++ | unknown | 24,779 |
// 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.
// DataPack represents a read-only view onto an on-disk file that contains
// (key, value) pairs of data. It's used to store static resources like
// translation strings and i... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack.h | C++ | unknown | 8,094 |
// 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_BASE_RESOURCE_DATA_PACK_EXPORT_H_
#define UI_BASE_RESOURCE_DATA_PACK_EXPORT_H_
// Defines UI_DATA_PACK_EXPORT so that functionality implemented by the data
// pack ... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_export.h | C | unknown | 878 |
// 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/base/resource/data_pack_literal.h"
#include "ui/base/resource/resource_bundle.h"
namespace ui {
const uint8_t kSamplePakContentsV4[] = {
0x04, 0x00, 0x00, 0x... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_literal.cc | C++ | unknown | 6,385 |
// 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_BASE_RESOURCE_DATA_PACK_LITERAL_H_
#define UI_BASE_RESOURCE_DATA_PACK_LITERAL_H_
#include <stddef.h>
#include <stdint.h>
namespace ui {
extern const uint8_t kSamp... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_literal.h | C++ | unknown | 1,005 |
// 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.
#define private public
#include "ui/base/resource/data_pack.h"
#undef private
#include <stddef.h>
#include <stdint.h>
#include <map>
#include <string>
#include <utility>
#in... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_unittest.cc | C++ | unknown | 17,378 |
// 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/base/resource/data_pack_with_resource_sharing_lacros.h"
#include <algorithm>
#include <map>
#include <memory>
#include <unordered_map>
#include <utility>
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_with_resource_sharing_lacros.cc | C++ | unknown | 24,196 |
// 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_BASE_RESOURCE_DATA_PACK_WITH_RESOURCE_SHARING_LACROS_H_
#define UI_BASE_RESOURCE_DATA_PACK_WITH_RESOURCE_SHARING_LACROS_H_
#include <map>
#include <memory>
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_with_resource_sharing_lacros.h | C++ | unknown | 7,957 |
// 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/base/resource/data_pack_with_resource_sharing_lacros.h"
#include <filesystem>
#include <map>
#include <string>
#include <utility>
#include "base/files/file_util.... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/data_pack_with_resource_sharing_lacros_unittest.cc | C++ | unknown | 9,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/base/resource/mock_resource_bundle_delegate.h"
namespace ui {
MockResourceBundleDelegate::MockResourceBundleDelegate() {}
MockResourceBundleDelegate::~MockResour... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/mock_resource_bundle_delegate.cc | C++ | unknown | 362 |
// 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_BASE_RESOURCE_MOCK_RESOURCE_BUNDLE_DELEGATE_H_
#define UI_BASE_RESOURCE_MOCK_RESOURCE_BUNDLE_DELEGATE_H_
#include <string>
#include "testing/gmock/include/gmock/gm... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/mock_resource_bundle_delegate.h | C++ | unknown | 1,657 |
// 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/base/resource/resource_bundle.h"
#include <stdint.h>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "base/big_endian.h"
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle.cc | C++ | unknown | 46,205 |
// 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_BASE_RESOURCE_RESOURCE_BUNDLE_H_
#define UI_BASE_RESOURCE_RESOURCE_BUNDLE_H_
#include <stddef.h>
#include <map>
#include <memory>
#include <string>
#include <unord... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle.h | C++ | unknown | 26,634 |
// 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/base/resource/resource_bundle_android.h"
#include <memory>
#include <string>
#include <utility>
#include "base/android/apk_assets.h"
#include "base/android/jni_a... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_android.cc | C++ | unknown | 10,912 |
// 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_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
#define UI_BASE_RESOURCE_RESOURCE_BUNDLE_ANDROID_H_
#include <jni.h>
#include <string>
#include "base/component_export.h"
... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_android.h | C++ | unknown | 2,915 |
// 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/base/resource/resource_bundle.h"
namespace ui {
void ResourceBundle::LoadCommonResources() {
LoadChromeResources();
}
gfx::Image& ResourceBundle::GetNativeIma... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_auralinux.cc | C++ | unknown | 406 |
// 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/base/resource/resource_bundle.h"
#include "base/base_paths.h"
#include "base/path_service.h"
#include "ui/gfx/image/image.h"
namespace ui {
void ResourceBundle:... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_fuchsia.cc | C++ | unknown | 499 |
// 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/base/resource/resource_bundle.h"
#import <QuartzCore/QuartzCore.h>
#import <UIKit/UIKit.h>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_ios.mm | Objective-C++ | unknown | 6,085 |
// 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/base/resource/resource_bundle.h"
#include <memory>
#include <string>
#include <utility>
#include "base/command_line.h"
#include "base/files/file_util.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_lacros.cc | C++ | unknown | 4,807 |
// 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/base/resource/resource_bundle.h"
#import <AppKit/AppKit.h>
#include <stddef.h>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_mac.mm | Objective-C++ | unknown | 4,615 |
// 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/base/resource/resource_bundle.h"
#include <stddef.h>
#include <stdint.h>
#include <algorithm>
#include <map>
#include <memory>
#include <string>
#include <vector... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_unittest.cc | C++ | unknown | 28,588 |
// 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/base/resource/resource_bundle_win.h"
#include <windows.h>
#include <memory>
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_win.cc | C++ | unknown | 1,614 |
// 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_BASE_RESOURCE_RESOURCE_BUNDLE_WIN_H_
#define UI_BASE_RESOURCE_RESOURCE_BUNDLE_WIN_H_
#include "build/build_config.h"
#include "base/component_export.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_bundle_win.h | C++ | unknown | 902 |
// 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/base/resource/resource_data_dll_win.h"
#include <stddef.h>
#include "base/check.h"
#include "base/memory/ref_counted_memory.h"
#include "base/win/resource_util.h... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_data_dll_win.cc | C++ | unknown | 1,910 |
// 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_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
#define UI_BASE_RESOURCE_RESOURCE_DATA_DLL_WIN_H_
#include <windows.h>
#include <stdint.h>
#include <memory>
#include <vecto... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_data_dll_win.h | C++ | unknown | 1,305 |
// 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_BASE_RESOURCE_RESOURCE_HANDLE_H_
#define UI_BASE_RESOURCE_RESOURCE_HANDLE_H_
#include <stdint.h>
#include <vector>
#include "base/strings/string_piece.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_handle.h | C++ | unknown | 1,892 |
// 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/base/resource/resource_scale_factor.h"
#include <iterator>
namespace ui {
namespace {
const float kResourceScaleFactorScales[] = {1.0f, 1.0f, 2.0f, 3.0f};
stat... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_scale_factor.cc | C++ | unknown | 610 |
// 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_BASE_RESOURCE_RESOURCE_SCALE_FACTOR_H_
#define UI_BASE_RESOURCE_RESOURCE_SCALE_FACTOR_H_
#include "ui/base/resource/data_pack_export.h"
namespace ui {
// Supporte... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/resource_scale_factor.h | C++ | unknown | 1,023 |
// 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/base/resource/resource_scale_factor.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
TEST(ScaleFactorTest, GetResourceScaleFactorScale) {
EXPE... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/scale_factor_unittest.cc | C++ | unknown | 546 |
// 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/base/resource/scoped_file_writer.h"
#include "base/files/file_util.h"
#include "base/logging.h"
namespace ui {
// ScopedFileWriter implementation.
ScopedFileWri... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/scoped_file_writer.cc | C++ | unknown | 1,035 |
// 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_BASE_RESOURCE_SCOPED_FILE_WRITER_H_
#define UI_BASE_RESOURCE_SCOPED_FILE_WRITER_H_
#include <stdio.h>
#include "base/files/file_path.h"
#include "base/memory/raw_p... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/scoped_file_writer.h | C++ | unknown | 2,275 |
// 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/base/resource/scoped_startup_resource_bundle.h"
#include <string>
#include "base/command_line.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/r... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/scoped_startup_resource_bundle.cc | C++ | unknown | 1,453 |
// 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_BASE_RESOURCE_SCOPED_STARTUP_RESOURCE_BUNDLE_H_
#define UI_BASE_RESOURCE_SCOPED_STARTUP_RESOURCE_BUNDLE_H_
#include "base/component_export.h"
namespace ui {
// En... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/scoped_startup_resource_bundle.h | C++ | unknown | 1,352 |
// 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/base/resource/temporary_shared_resource_path_chromeos.h"
namespace ui {
base::FilePath GetPathForTemporarySharedResourceFile(
const base::FilePath& shared_re... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/temporary_shared_resource_path_chromeos.cc | C++ | unknown | 465 |
// 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_BASE_RESOURCE_TEMPORARY_SHARED_RESOURCE_PATH_CHROMEOS_H_
#define UI_BASE_RESOURCE_TEMPORARY_SHARED_RESOURCE_PATH_CHROMEOS_H_
#include "base/files/file_path.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/resource/temporary_shared_resource_path_chromeos.h | C++ | unknown | 1,064 |
// 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/base/scoped_visibility_tracker.h"
#include <utility>
#include "base/time/tick_clock.h"
namespace ui {
ScopedVisibilityTracker::ScopedVisibilityTracker(
con... | Zhao-PengFei35/chromium_src_4 | ui/base/scoped_visibility_tracker.cc | C++ | unknown | 1,208 |
// 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_BASE_SCOPED_VISIBILITY_TRACKER_H_
#define UI_BASE_SCOPED_VISIBILITY_TRACKER_H_
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "base/ti... | Zhao-PengFei35/chromium_src_4 | ui/base/scoped_visibility_tracker.h | C++ | unknown | 1,207 |
// 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/base/scoped_visibility_tracker.h"
#include <utility>
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "testing/gtest/include/gt... | Zhao-PengFei35/chromium_src_4 | ui/base/scoped_visibility_tracker_unittest.cc | C++ | unknown | 2,799 |
// 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/base/shortcut_mapping_pref_delegate.h"
#include "base/check.h"
#include "base/check_op.h"
namespace ui {
// static
ShortcutMappingPrefDelegate* ShortcutMappingP... | Zhao-PengFei35/chromium_src_4 | ui/base/shortcut_mapping_pref_delegate.cc | C++ | unknown | 801 |
// 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_BASE_SHORTCUT_MAPPING_PREF_DELEGATE_H_
#define UI_BASE_SHORTCUT_MAPPING_PREF_DELEGATE_H_
#include "base/component_export.h"
namespace ui {
// TODO(crbug/1264581):... | Zhao-PengFei35/chromium_src_4 | ui/base/shortcut_mapping_pref_delegate.h | C++ | unknown | 884 |
// 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/base/template_expressions.h"
#include <stddef.h>
#include <ostream>
#include "base/check_op.h"
#include "base/strings/escape.h"
#include "base/strings/string_pi... | Zhao-PengFei35/chromium_src_4 | ui/base/template_expressions.cc | C++ | unknown | 8,784 |
// 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.
// This file defines utility functions for replacing template expressions.
// For example "Hello ${name}" could have ${name} replaced by the user's name.
#ifndef UI_BASE_TEMPL... | Zhao-PengFei35/chromium_src_4 | ui/base/template_expressions.h | C++ | unknown | 2,658 |
// 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/base/template_expressions.h"
#include "base/test/gtest_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
// Tip: ui_base_unittests --gtest_f... | Zhao-PengFei35/chromium_src_4 | ui/base/template_expressions_unittest.cc | C++ | unknown | 23,311 |
specific_include_rules = {
"run_all_unittests\.cc": [
"+mojo/core/embedder",
],
"skia_gold_pixel_diff.cc": [
"+ui/snapshot",
],
}
| Zhao-PengFei35/chromium_src_4 | ui/base/test/DEPS | Python | unknown | 146 |
// 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_BASE_TEST_COCOA_HELPER_H_
#define UI_BASE_TEST_COCOA_HELPER_H_
#include <set>
#import <Cocoa/Cocoa.h>
#import "base/mac/scoped_nsautorelease_pool.h"
#import "base... | Zhao-PengFei35/chromium_src_4 | ui/base/test/cocoa_helper.h | Objective-C | unknown | 4,700 |
// 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.
#import "ui/base/test/cocoa_helper.h"
#include "base/debug/debugger.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "base/test/mock_chrome_application_mac.h"
... | Zhao-PengFei35/chromium_src_4 | ui/base/test/cocoa_helper.mm | Objective-C++ | unknown | 9,204 |
// 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/base/test/idle_test_utils.h"
#include "ui/base/idle/idle_polling_service.h"
#include "ui/base/idle/idle_time_provider.h"
namespace ui {
namespace test {
ScopedI... | Zhao-PengFei35/chromium_src_4 | ui/base/test/idle_test_utils.cc | C++ | unknown | 665 |
// 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_BASE_TEST_IDLE_TEST_UTILS_H_
#define UI_BASE_TEST_IDLE_TEST_UTILS_H_
#include <memory>
namespace ui {
class IdleTimeProvider;
namespace test {
class ScopedIdleP... | Zhao-PengFei35/chromium_src_4 | ui/base/test/idle_test_utils.h | C++ | unknown | 566 |
// 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_BASE_TEST_IOS_KEYBOARD_APPEARANCE_LISTENER_H_
#define UI_BASE_TEST_IOS_KEYBOARD_APPEARANCE_LISTENER_H_
#import <UIKit/UIKit.h>
// Listener to observe the keyboard ... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ios/keyboard_appearance_listener.h | Objective-C | unknown | 588 |
// 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.
#import "ui/base/test/ios/keyboard_appearance_listener.h"
#include <vector>
@implementation KeyboardAppearanceListener {
@private
std::vector<id> _notificationObservers;
}... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ios/keyboard_appearance_listener.mm | Objective-C++ | unknown | 1,399 |
// 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_BASE_TEST_IOS_UI_IMAGE_TEST_UTILS_H_
#define UI_BASE_TEST_IOS_UI_IMAGE_TEST_UTILS_H_
#import <UIKit/UIKit.h>
namespace ui {
namespace test {
namespace uiimage_util... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ios/ui_image_test_utils.h | Objective-C | unknown | 1,494 |
// 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/base/test/ios/ui_image_test_utils.h"
#include "base/mac/scoped_cftyperef.h"
namespace ui {
namespace test {
namespace uiimage_utils {
UIImage* UIImageWithSizeAn... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ios/ui_image_test_utils.mm | Objective-C++ | unknown | 1,878 |
// 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.
#import "ui/base/test/ios/ui_image_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
namespace test {
// Test the creation of UIImages.
TEST(UIImag... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ios/ui_image_test_utils_unittest.mm | Objective-C++ | unknown | 1,920 |
// 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_BASE_TEST_MENU_TEST_OBSERVER_H_
#define UI_BASE_TEST_MENU_TEST_OBSERVER_H_
#import <Cocoa/Cocoa.h>
@class MenuTestObserver;
using MenuTestObserverOpenCallback = vo... | Zhao-PengFei35/chromium_src_4 | ui/base/test/menu_test_observer.h | Objective-C | unknown | 1,336 |
// 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.
#import "ui/base/test/menu_test_observer.h"
#include "base/check_op.h"
@implementation MenuTestObserver
@synthesize menu = _menu;
@synthesize isOpen = _isOpen;
@synthesize d... | Zhao-PengFei35/chromium_src_4 | ui/base/test/menu_test_observer.mm | Objective-C++ | unknown | 1,868 |
// 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/base/test/mock_base_window.h"
namespace ui {
namespace test {
MockBaseWindow::MockBaseWindow() = default;
MockBaseWindow::~MockBaseWindow() = default;
} // nam... | Zhao-PengFei35/chromium_src_4 | ui/base/test/mock_base_window.cc | C++ | unknown | 351 |
// 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_BASE_TEST_MOCK_BASE_WINDOW_H_
#define UI_BASE_TEST_MOCK_BASE_WINDOW_H_
#include "testing/gmock/include/gmock/gmock.h"
#include "ui/base/base_window.h"
#include "ui/... | Zhao-PengFei35/chromium_src_4 | ui/base/test/mock_base_window.h | C++ | unknown | 1,818 |
// 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_BASE_TEST_NS_AX_TREE_VALIDATOR_H_
#define UI_BASE_TEST_NS_AX_TREE_VALIDATOR_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
@protocol NSAccessibility;
... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ns_ax_tree_validator.h | Objective-C | unknown | 1,739 |
// 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/base/test/ns_ax_tree_validator.h"
#include <Cocoa/Cocoa.h>
#include "base/logging.h"
#include "base/strings/sys_string_conversions.h"
namespace {
id<NSAccessib... | Zhao-PengFei35/chromium_src_4 | ui/base/test/ns_ax_tree_validator.mm | Objective-C++ | unknown | 3,330 |
// 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/base/page_transition_types.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui {
TEST(PageTransitionTypesTest, PageTransitionCoreTypeIs) {
EXPECT_T... | Zhao-PengFei35/chromium_src_4 | ui/base/test/page_transition_types_unittest.cc | C++ | unknown | 2,355 |
// 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/files/file_path.h"
#include "base/functional/bind.h"
#include "base/path_service.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/test_s... | Zhao-PengFei35/chromium_src_4 | ui/base/test/run_all_unittests.cc | C++ | unknown | 3,754 |
// 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_BASE_TEST_SCOPED_FAKE_FULL_KEYBOARD_ACCESS_H_
#define UI_BASE_TEST_SCOPED_FAKE_FULL_KEYBOARD_ACCESS_H_
#include <memory>
namespace base {
namespace mac {
class Sco... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_full_keyboard_access.h | C++ | unknown | 1,460 |
// 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.
#import "ui/base/test/scoped_fake_full_keyboard_access.h"
#import <Cocoa/Cocoa.h>
#include <ostream>
#include "base/check_op.h"
#import "base/mac/scoped_objc_class_swizzler.h... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_full_keyboard_access.mm | Objective-C++ | unknown | 1,425 |
// 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_BASE_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_
#define UI_BASE_TEST_SCOPED_FAKE_NSWINDOW_FOCUS_H_
#include <memory>
namespace base {
namespace mac {
class ScopedObjCClass... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_nswindow_focus.h | C++ | unknown | 1,464 |
// 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.
#import "ui/base/test/scoped_fake_nswindow_focus.h"
#import <Cocoa/Cocoa.h>
#import "base/mac/foundation_util.h"
#import "base/mac/scoped_objc_class_swizzler.h"
using base::... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_nswindow_focus.mm | Objective-C++ | unknown | 4,079 |
// 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_BASE_TEST_SCOPED_FAKE_NSWINDOW_FULLSCREEN_H_
#define UI_BASE_TEST_SCOPED_FAKE_NSWINDOW_FULLSCREEN_H_
namespace ui {
namespace test {
// Simulates fullscreen transi... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_nswindow_fullscreen.h | C++ | unknown | 1,106 |
// 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.
#import "ui/base/test/scoped_fake_nswindow_fullscreen.h"
#import <Cocoa/Cocoa.h>
#include "base/functional/bind.h"
#import "base/mac/foundation_util.h"
#import "base/mac/mac_... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_fake_nswindow_fullscreen.mm | Objective-C++ | unknown | 973 |
// 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_BASE_TEST_SCOPED_PREFERRED_SCROLLER_STYLE_MAC_H_
#define UI_BASE_TEST_SCOPED_PREFERRED_SCROLLER_STYLE_MAC_H_
#include <memory>
namespace base {
namespace mac {
cla... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_preferred_scroller_style_mac.h | C++ | unknown | 1,147 |
// 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.
#import "ui/base/test/scoped_preferred_scroller_style_mac.h"
#import <AppKit/AppKit.h>
#include "base/check.h"
#import "base/mac/scoped_objc_class_swizzler.h"
using base::ma... | Zhao-PengFei35/chromium_src_4 | ui/base/test/scoped_preferred_scroller_style_mac.mm | Objective-C++ | unknown | 2,420 |
// 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/base/test/skia_gold_matching_algorithm.h"
#include "base/command_line.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include... | Zhao-PengFei35/chromium_src_4 | ui/base/test/skia_gold_matching_algorithm.cc | C++ | unknown | 4,997 |