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 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/views/interaction/interaction_test_util_views.h"
#include <string>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_forwar... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interaction_test_util_views.cc | C++ | unknown | 26,551 |
// 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_VIEWS_INTERACTION_INTERACTION_TEST_UTIL_VIEWS_H_
#define UI_VIEWS_INTERACTION_INTERACTION_TEST_UTIL_VIEWS_H_
#include <string>
#include "ui/base/interaction/element... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interaction_test_util_views.h | C++ | unknown | 2,656 |
// 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/views/interaction/interaction_test_util_views.h"
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "base/test/bind.h"
#include "b... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interaction_test_util_views_unittest.cc | C++ | unknown | 21,638 |
// 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/views/interaction/interactive_views_test.h"
#include <functional>
#include "base/strings/strcat.h"
#include "base/test/bind.h"
#include "build/build_config.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interactive_views_test.cc | C++ | unknown | 11,686 |
// 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_VIEWS_INTERACTION_INTERACTIVE_VIEWS_TEST_H_
#define UI_VIEWS_INTERACTION_INTERACTIVE_VIEWS_TEST_H_
#include <functional>
#include <memory>
#include <string>
#includ... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interactive_views_test.h | C++ | unknown | 26,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/views/interaction/interactive_views_test_internal.h"
#include <memory>
#include <utility>
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/ba... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interactive_views_test_internal.cc | C++ | unknown | 4,227 |
// 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_VIEWS_INTERACTION_INTERACTIVE_VIEWS_TEST_INTERNAL_H_
#define UI_VIEWS_INTERACTION_INTERACTIVE_VIEWS_TEST_INTERNAL_H_
#include <map>
#include <memory>
#include <stri... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interactive_views_test_internal.h | C++ | unknown | 2,800 |
// 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/views/interaction/interactive_views_test.h"
#include <functional>
#include <memory>
#include "base/test/bind.h"
#include "base/test/mock_callback.h"
#include "te... | Zhao-PengFei35/chromium_src_4 | ui/views/interaction/interactive_views_test_unittest.cc | C++ | unknown | 17,560 |
// 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/views/masked_targeter_delegate.h"
#include "third_party/skia/include/core/SkPath.h"
#include "third_party/skia/include/core/SkRegion.h"
#include "ui/gfx/geometry/... | Zhao-PengFei35/chromium_src_4 | ui/views/masked_targeter_delegate.cc | C++ | unknown | 1,160 |
// 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_VIEWS_MASKED_TARGETER_DELEGATE_H_
#define UI_VIEWS_MASKED_TARGETER_DELEGATE_H_
#include "ui/base/ui_base_types.h"
#include "ui/views/view_targeter_delegate.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/views/masked_targeter_delegate.h | C++ | unknown | 1,379 |
// 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/views/metadata/type_conversion.h"
#include <string>
#include "components/url_formatter/url_fixer.h"
#include "ui/base/ime/text_input_type.h"
#include "ui/native_... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/type_conversion.cc | C++ | unknown | 4,195 |
// 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_VIEWS_METADATA_TYPE_CONVERSION_H_
#define UI_VIEWS_METADATA_TYPE_CONVERSION_H_
#include "third_party/abseil-cpp/absl/types/optional.h"
#include "ui/base/metadata/ba... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/type_conversion.h | C++ | unknown | 743 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/metadata/type_conversion.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/platform_test.h"
#include "ui/views/controls/button/button.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/type_conversion_unittest.cc | C++ | unknown | 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.
#ifndef UI_VIEWS_METADATA_VIEW_FACTORY_H_
#define UI_VIEWS_METADATA_VIEW_FACTORY_H_
#include <functional>
#include <map>
#include <memory>
#include <utility>
#include <vector>... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/view_factory.h | C++ | unknown | 25,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.
#include "ui/views/metadata/view_factory_internal.h"
#include "ui/views/view.h"
namespace views::internal {
ViewBuilderCore::ViewBuilderCore() = default;
ViewBuilderCore::V... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/view_factory_internal.cc | C++ | unknown | 1,126 |
// 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_VIEWS_METADATA_VIEW_FACTORY_INTERNAL_H_
#define UI_VIEWS_METADATA_VIEW_FACTORY_INTERNAL_H_
#include <functional>
#include <map>
#include <memory>
#include <tuple>
#... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/view_factory_internal.h | C++ | unknown | 6,362 |
// 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/views/metadata/view_factory.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/mock_cal... | Zhao-PengFei35/chromium_src_4 | ui/views/metadata/view_factory_unittest.cc | C++ | unknown | 12,040 |
// 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/views/metrics.h"
namespace views {
const int kDefaultMenuShowDelay = 400;
} // namespace views
| Zhao-PengFei35/chromium_src_4 | ui/views/metrics.cc | C++ | unknown | 256 |
// 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_VIEWS_METRICS_H_
#define UI_VIEWS_METRICS_H_
#include "ui/views/views_export.h"
namespace views {
// NOTE: All times in this file are/should be expressed in milli... | Zhao-PengFei35/chromium_src_4 | ui/views/metrics.h | C++ | unknown | 791 |
// 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 "build/build_config.h"
#include "ui/views/metrics.h"
#if BUILDFLAG(IS_WIN)
#include <windows.h>
#endif
namespace views {
int GetDoubleClickInterval() {
#if BUILDFLA... | Zhao-PengFei35/chromium_src_4 | ui/views/metrics_aura.cc | C++ | unknown | 893 |
// 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/views/metrics.h"
namespace {
// Default double click interval in milliseconds.
// Same as what gtk uses.
const int kDefaultDoubleClickInterval = 500;
} // name... | Zhao-PengFei35/chromium_src_4 | ui/views/metrics_mac.cc | C++ | unknown | 480 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_MOUSE_CONSTANTS_H_
#define UI_VIEWS_MOUSE_CONSTANTS_H_
#include "base/time/time.h"
namespace views {
// The amount of time, in milliseconds, between clicks ... | Zhao-PengFei35/chromium_src_4 | ui/views/mouse_constants.h | C++ | unknown | 510 |
// 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/views/mouse_watcher.h"
#include <utility>
#include "base/compiler_specific.h"
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/memory/... | Zhao-PengFei35/chromium_src_4 | ui/views/mouse_watcher.cc | C++ | unknown | 4,065 |
// 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_VIEWS_MOUSE_WATCHER_H_
#define UI_VIEWS_MOUSE_WATCHER_H_
#include <memory>
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "ui/gfx/geometry/i... | Zhao-PengFei35/chromium_src_4 | ui/views/mouse_watcher.h | C++ | unknown | 3,119 |
// 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/views/mouse_watcher_view_host.h"
#include "ui/display/screen.h"
#include "ui/views/view.h"
#include "ui/views/widget/widget.h"
namespace views {
MouseWatcherVie... | Zhao-PengFei35/chromium_src_4 | ui/views/mouse_watcher_view_host.cc | C++ | unknown | 1,849 |
// 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_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_
#define UI_VIEWS_MOUSE_WATCHER_VIEW_HOST_H_
#include "base/memory/raw_ptr.h"
#include "ui/views/mouse_watcher.h"
namespace views {... | Zhao-PengFei35/chromium_src_4 | ui/views/mouse_watcher_view_host.h | C++ | unknown | 1,409 |
// 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_VIEWS_NATIVE_THEME_DELEGATE_H_
#define UI_VIEWS_NATIVE_THEME_DELEGATE_H_
#include "ui/gfx/geometry/rect.h"
#include "ui/native_theme/native_theme.h"
#include "ui/vi... | Zhao-PengFei35/chromium_src_4 | ui/views/native_theme_delegate.h | C++ | unknown | 2,031 |
// 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_VIEWS_NATIVE_WINDOW_TRACKER_H_
#define UI_VIEWS_NATIVE_WINDOW_TRACKER_H_
#include <memory>
#include "ui/gfx/native_widget_types.h"
#include "ui/views/views_export.... | Zhao-PengFei35/chromium_src_4 | ui/views/native_window_tracker.h | C++ | unknown | 784 |
// 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/views/native_window_tracker_aura.h"
#include <memory>
#include "ui/aura/window.h"
namespace views {
NativeWindowTrackerAura::NativeWindowTrackerAura(gfx::Nativ... | Zhao-PengFei35/chromium_src_4 | ui/views/native_window_tracker_aura.cc | C++ | unknown | 919 |
// 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_VIEWS_NATIVE_WINDOW_TRACKER_AURA_H_
#define UI_VIEWS_NATIVE_WINDOW_TRACKER_AURA_H_
#include "base/memory/raw_ptr.h"
#include "ui/aura/window_observer.h"
#include "u... | Zhao-PengFei35/chromium_src_4 | ui/views/native_window_tracker_aura.h | C++ | unknown | 1,099 |
// 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/views/paint_info.h"
#include "base/feature_list.h"
#include "ui/views/views_features.h"
namespace views {
namespace {
gfx::Rect GetSnappedRecordingBoundsInternal... | Zhao-PengFei35/chromium_src_4 | ui/views/paint_info.cc | C++ | unknown | 6,326 |
// 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_VIEWS_PAINT_INFO_H_
#define UI_VIEWS_PAINT_INFO_H_
#include "base/gtest_prod_util.h"
#include "base/memory/raw_ptr.h"
#include "ui/compositor/paint_context.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/views/paint_info.h | C++ | unknown | 4,892 |
// 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/views/paint_info.h"
#include <memory>
#include <vector>
#include "base/memory/ref_counted.h"
#include "cc/base/region.h"
#include "testing/gtest/include/gtest/gt... | Zhao-PengFei35/chromium_src_4 | ui/views/paint_info_unittest.cc | C++ | unknown | 10,164 |
// 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/views/painter.h"
#include <utility>
#include "base/check.h"
#include "ui/compositor/layer.h"
#include "ui/compositor/layer_delegate.h"
#include "ui/compositor/la... | Zhao-PengFei35/chromium_src_4 | ui/views/painter.cc | C++ | unknown | 9,759 |
// 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_VIEWS_PAINTER_H_
#define UI_VIEWS_PAINTER_H_
#include <stddef.h>
#include <memory>
#include "third_party/skia/include/core/SkBlendMode.h"
#include "third_party/sk... | Zhao-PengFei35/chromium_src_4 | ui/views/painter.h | C++ | unknown | 3,997 |
// 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/views/rect_based_targeting_utils.h"
#include "ui/gfx/geometry/point.h"
#include "ui/gfx/geometry/rect.h"
namespace views {
bool UsePointBasedTargeting(const gfx... | Zhao-PengFei35/chromium_src_4 | ui/views/rect_based_targeting_utils.cc | C++ | unknown | 1,090 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_RECT_BASED_TARGETING_UTILS_H_
#define UI_VIEWS_RECT_BASED_TARGETING_UTILS_H_
#include "ui/views/views_export.h"
namespace gfx {
class Point;
class Rect;
} /... | Zhao-PengFei35/chromium_src_4 | ui/views/rect_based_targeting_utils.h | C++ | unknown | 953 |
// 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/views/rect_based_targeting_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/geometry/rect.h"
namespace views {
TEST(RectBasedTargetingUt... | Zhao-PengFei35/chromium_src_4 | ui/views/rect_based_targeting_utils_unittest.cc | C++ | unknown | 2,721 |
// 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/views/repeat_controller.h"
#include <utility>
namespace views {
///////////////////////////////////////////////////////////////////////////////
// RepeatControl... | Zhao-PengFei35/chromium_src_4 | ui/views/repeat_controller.cc | C++ | unknown | 1,206 |
// 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_VIEWS_REPEAT_CONTROLLER_H_
#define UI_VIEWS_REPEAT_CONTROLLER_H_
#include "base/functional/callback.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/views/repeat_controller.h | C++ | unknown | 2,013 |
// 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/views/repeat_controller.h"
#include "base/functional/bind.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "testing/gtest/include/g... | Zhao-PengFei35/chromium_src_4 | ui/views/repeat_controller_unittest.cc | C++ | unknown | 3,497 |
// 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/views/round_rect_painter.h"
#include "cc/paint/paint_canvas.h"
#include "ui/gfx/canvas.h"
#include "ui/gfx/geometry/skia_conversions.h"
namespace views {
RoundR... | Zhao-PengFei35/chromium_src_4 | ui/views/round_rect_painter.cc | C++ | unknown | 1,215 |
// 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_VIEWS_ROUND_RECT_PAINTER_H_
#define UI_VIEWS_ROUND_RECT_PAINTER_H_
#include "ui/gfx/geometry/rect.h"
#include "ui/views/painter.h"
#include "ui/views/views_export.h... | Zhao-PengFei35/chromium_src_4 | ui/views/round_rect_painter.h | C++ | unknown | 1,041 |
// 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 "mojo/core/embedder/embedder.h"
#include "ui/views/views_test_suite.h"
int main(int argc, char** argv) {
mojo::core::Init();
return views::ViewsTestSuite(argc, ar... | Zhao-PengFei35/chromium_src_4 | ui/views/run_all_unittests_main.cc | C++ | unknown | 338 |
// 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/views/selection_controller.h"
#include <algorithm>
#include <vector>
#include "build/build_config.h"
#include "ui/base/clipboard/clipboard.h"
#include "ui/events... | Zhao-PengFei35/chromium_src_4 | ui/views/selection_controller.cc | C++ | unknown | 8,411 |
// 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_VIEWS_SELECTION_CONTROLLER_H_
#define UI_VIEWS_SELECTION_CONTROLLER_H_
#include "base/memory/raw_ptr.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/views/selection_controller.h | C++ | unknown | 4,190 |
// 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_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_
#define UI_VIEWS_SELECTION_CONTROLLER_DELEGATE_H_
#include "ui/views/views_export.h"
namespace views {
// An interface impl... | Zhao-PengFei35/chromium_src_4 | ui/views/selection_controller_delegate.h | C++ | unknown | 2,876 |
// 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/views/selection_controller.h"
#include <memory>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "bas... | Zhao-PengFei35/chromium_src_4 | ui/views/selection_controller_unittest.cc | C++ | unknown | 7,766 |
// 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/views/style/platform_style.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/gf... | Zhao-PengFei35/chromium_src_4 | ui/views/style/platform_style.cc | C++ | unknown | 2,869 |
// 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_VIEWS_STYLE_PLATFORM_STYLE_H_
#define UI_VIEWS_STYLE_PLATFORM_STYLE_H_
#include <memory>
#include "ui/views/controls/button/button.h"
#include "ui/views/view.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/views/style/platform_style.h | C++ | unknown | 3,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/views/style/platform_style.h"
#include "base/numerics/safe_conversions.h"
#include "base/strings/sys_string_conversions.h"
#include "ui/base/buildflags.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/views/style/platform_style_mac.mm | Objective-C++ | unknown | 3,356 |
// 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/views/style/typography.h"
#include "base/check_op.h"
#include "ui/color/color_id.h"
#include "ui/views/layout/layout_provider.h"
#include "ui/views/style/typograp... | Zhao-PengFei35/chromium_src_4 | ui/views/style/typography.cc | C++ | unknown | 1,563 |
// 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_VIEWS_STYLE_TYPOGRAPHY_H_
#define UI_VIEWS_STYLE_TYPOGRAPHY_H_
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#include "ui/views/views... | Zhao-PengFei35/chromium_src_4 | ui/views/style/typography.h | C++ | unknown | 4,302 |
// 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/views/style/typography_provider.h"
#include <string>
#include "build/build_config.h"
#include "ui/base/default_style.h"
#include "ui/base/resource/resource_bundl... | Zhao-PengFei35/chromium_src_4 | ui/views/style/typography_provider.cc | C++ | unknown | 6,393 |
// 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_VIEWS_STYLE_TYPOGRAPHY_PROVIDER_H_
#define UI_VIEWS_STYLE_TYPOGRAPHY_PROVIDER_H_
#include "third_party/skia/include/core/SkColor.h"
#include "ui/base/resource/resou... | Zhao-PengFei35/chromium_src_4 | ui/views/style/typography_provider.h | C++ | unknown | 2,033 |
include_rules = [
"+content/public/test",
]
specific_include_rules = {
"views_test_base\.cc": [
"+mojo/core/embedder",
"+ui/gl",
],
"view_skia_gold_pixel_diff.cc" : [
"+ui/snapshot",
],
}
| Zhao-PengFei35/chromium_src_4 | ui/views/test/DEPS | Python | unknown | 211 |
// 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 <utility>
#include "ui/views/test/ax_event_counter.h"
#include "ui/accessibility/ax_node_data.h"
#include "ui/views/view.h"
namespace views::test {
AXEventCounter:... | Zhao-PengFei35/chromium_src_4 | ui/views/test/ax_event_counter.cc | C++ | unknown | 2,229 |
// 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_VIEWS_TEST_AX_EVENT_COUNTER_H_
#define UI_VIEWS_TEST_AX_EVENT_COUNTER_H_
#include <utility>
#include "base/containers/flat_map.h"
#include "base/memory/raw_ptr.h"
... | Zhao-PengFei35/chromium_src_4 | ui/views/test/ax_event_counter.h | C++ | unknown | 2,524 |
// 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/views/test/button_test_api.h"
#include "ui/views/controls/button/button.h"
namespace views::test {
void ButtonTestApi::NotifyClick(const ui::Event& event) {
b... | Zhao-PengFei35/chromium_src_4 | ui/views/test/button_test_api.cc | C++ | unknown | 379 |
// 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_VIEWS_TEST_BUTTON_TEST_API_H_
#define UI_VIEWS_TEST_BUTTON_TEST_API_H_
#include "base/memory/raw_ptr.h"
namespace ui {
class Event;
}
namespace views {
class Butt... | Zhao-PengFei35/chromium_src_4 | ui/views/test/button_test_api.h | C++ | unknown | 801 |
// 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/views/test/capture_tracking_view.h"
namespace views::test {
CaptureTrackingView::CaptureTrackingView() = default;
CaptureTrackingView::~CaptureTrackingView() = ... | Zhao-PengFei35/chromium_src_4 | ui/views/test/capture_tracking_view.cc | C++ | unknown | 549 |
// 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_VIEWS_TEST_CAPTURE_TRACKING_VIEW_H_
#define UI_VIEWS_TEST_CAPTURE_TRACKING_VIEW_H_
#include "ui/views/view.h"
namespace views::test {
// Used to track OnMousePres... | Zhao-PengFei35/chromium_src_4 | ui/views/test/capture_tracking_view.h | C++ | unknown | 1,215 |
// 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/views/test/combobox_test_api.h"
#include <stdint.h>
#include <memory>
#include "base/memory/raw_ptr.h"
#include "ui/base/models/menu_model.h"
#include "ui/views... | Zhao-PengFei35/chromium_src_4 | ui/views/test/combobox_test_api.cc | C++ | unknown | 1,922 |
// 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_VIEWS_TEST_COMBOBOX_TEST_API_H_
#define UI_VIEWS_TEST_COMBOBOX_TEST_API_H_
#include "base/memory/raw_ptr.h"
namespace gfx {
class Size;
}
namespace ui {
class Men... | Zhao-PengFei35/chromium_src_4 | ui/views/test/combobox_test_api.h | C++ | unknown | 1,280 |
// 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_VIEWS_TEST_DESKTOP_TEST_VIEWS_DELEGATE_H_
#define UI_VIEWS_TEST_DESKTOP_TEST_VIEWS_DELEGATE_H_
#include "ui/views/test/test_views_delegate.h"
namespace views {
//... | Zhao-PengFei35/chromium_src_4 | ui/views/test/desktop_test_views_delegate.h | C++ | unknown | 1,060 |
// 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/views/test/desktop_test_views_delegate.h"
#include "build/build_config.h"
#include "ui/views/buildflags.h"
#include "ui/views/widget/native_widget_aura.h"
#if BU... | Zhao-PengFei35/chromium_src_4 | ui/views/test/desktop_test_views_delegate_aura.cc | C++ | unknown | 1,205 |
// 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/views/test/desktop_test_views_delegate.h"
#include "ui/views/widget/native_widget_mac.h"
namespace views {
DesktopTestViewsDelegate::DesktopTestViewsDelegate() ... | Zhao-PengFei35/chromium_src_4 | ui/views/test/desktop_test_views_delegate_mac.mm | Objective-C++ | unknown | 1,016 |
// 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/views/test/desktop_window_tree_host_win_test_api.h"
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
#include "ui/views/win/hwnd_message_han... | Zhao-PengFei35/chromium_src_4 | ui/views/test/desktop_window_tree_host_win_test_api.cc | C++ | unknown | 1,537 |
// 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_VIEWS_TEST_DESKTOP_WINDOW_TREE_HOST_WIN_TEST_API_H_
#define UI_VIEWS_TEST_DESKTOP_WINDOW_TREE_HOST_WIN_TEST_API_H_
#include <windows.h>
#include "base/memory/raw_p... | Zhao-PengFei35/chromium_src_4 | ui/views/test/desktop_window_tree_host_win_test_api.h | C++ | unknown | 1,541 |
// 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/views/test/dialog_test.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/widget.h"
#include "ui/views/window/dialog_delegate.h"
namespace views:... | Zhao-PengFei35/chromium_src_4 | ui/views/test/dialog_test.cc | C++ | unknown | 809 |
// 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_VIEWS_TEST_DIALOG_TEST_H_
#define UI_VIEWS_TEST_DIALOG_TEST_H_
namespace views {
class Widget;
namespace test {
void AcceptDialog(Widget* widget);
void CancelDia... | Zhao-PengFei35/chromium_src_4 | ui/views/test/dialog_test.h | C++ | unknown | 426 |
// 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_VIEWS_TEST_EVENT_GENERATOR_DELEGATE_MAC_H_
#define UI_VIEWS_TEST_EVENT_GENERATOR_DELEGATE_MAC_H_
#include <memory>
#include "ui/gfx/native_widget_types.h"
namespa... | Zhao-PengFei35/chromium_src_4 | ui/views/test/event_generator_delegate_mac.h | C++ | unknown | 768 |
// 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/memory/raw_ptr.h"
#import <Cocoa/Cocoa.h>
#include <stddef.h>
#import "base/mac/scoped_nsobject.h"
#import "base/mac/scoped_objc_class_swizzler.h"
#include "ba... | Zhao-PengFei35/chromium_src_4 | ui/views/test/event_generator_delegate_mac.mm | Objective-C++ | unknown | 25,720 |
// 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/views/test/focus_manager_test.h"
#include "base/ranges/algorithm.h"
#include "ui/views/focus/focus_manager.h"
#include "ui/views/widget/widget.h"
namespace views... | Zhao-PengFei35/chromium_src_4 | ui/views/test/focus_manager_test.cc | C++ | unknown | 3,580 |
// 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_VIEWS_TEST_FOCUS_MANAGER_TEST_H_
#define UI_VIEWS_TEST_FOCUS_MANAGER_TEST_H_
#include "ui/views/focus/focus_manager.h"
#include <utility>
#include <vector>
#inclu... | Zhao-PengFei35/chromium_src_4 | ui/views/test/focus_manager_test.h | C++ | unknown | 3,512 |
// 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 <ostream>
#include "ui/views/layout/flex_layout_types.h"
#include "ui/views/layout/layout_types.h"
namespace views {
void PrintTo(const SizeBounds& size_bounds, ::s... | Zhao-PengFei35/chromium_src_4 | ui/views/test/layout_test_utils.cc | C++ | unknown | 1,978 |
// 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/views/test/menu_runner_test_api.h"
#include <utility>
#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/controls/menu/menu_runner_handler.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/views/test/menu_runner_test_api.cc | C++ | unknown | 698 |
// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
#define UI_VIEWS_TEST_MENU_RUNNER_TEST_API_H_
#include <memory>
#include "base/memory/raw_ptr.h"
namespace views {
class MenuR... | Zhao-PengFei35/chromium_src_4 | ui/views/test/menu_runner_test_api.h | C++ | unknown | 948 |
// 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/views/test/menu_test_utils.h"
#include "base/run_loop.h"
#include "build/build_config.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/... | Zhao-PengFei35/chromium_src_4 | ui/views/test/menu_test_utils.cc | C++ | unknown | 3,413 |
// 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_VIEWS_TEST_MENU_TEST_UTILS_H_
#define UI_VIEWS_TEST_MENU_TEST_UTILS_H_
#include <memory>
#include <utility>
#include "base/functional/callback.h"
#include "base/me... | Zhao-PengFei35/chromium_src_4 | ui/views/test/menu_test_utils.h | C++ | unknown | 5,525 |
// 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/views/test/mock_drag_controller.h"
#include "ui/base/dragdrop/drag_drop_types.h"
#include "ui/base/dragdrop/os_exchange_data.h"
namespace views {
MockDragContro... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_drag_controller.cc | C++ | unknown | 1,069 |
// 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_VIEWS_TEST_MOCK_DRAG_CONTROLLER_H_
#define UI_VIEWS_TEST_MOCK_DRAG_CONTROLLER_H_
#include "ui/views/drag_controller.h"
#include "testing/gmock/include/gmock/gmock.... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_drag_controller.h | C++ | unknown | 1,318 |
// 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/views/test/mock_input_event_activation_protector.h"
namespace views {
MockInputEventActivationProtector::MockInputEventActivationProtector() =
default;
MockIn... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_input_event_activation_protector.cc | C++ | unknown | 423 |
// 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_VIEWS_TEST_MOCK_INPUT_EVENT_ACTIVATION_PROTECTOR_H_
#define UI_VIEWS_TEST_MOCK_INPUT_EVENT_ACTIVATION_PROTECTOR_H_
#include "testing/gmock/include/gmock/gmock.h"
#i... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_input_event_activation_protector.h | C++ | unknown | 1,138 |
//, 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/views/test/mock_native_widget.h"
using testing::Return;
namespace views {
MockNativeWidget::MockNativeWidget(Widget* widget) : widget_(widget) {}
MockNative... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_native_widget.cc | C++ | unknown | 531 |
//, 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_VIEWS_TEST_MOCK_NATIVE_WIDGET_H_
#define UI_VIEWS_TEST_MOCK_NATIVE_WIDGET_H_
#include <memory>
#include <string>
#include "base/memory/raw_ptr.h"
#include "base... | Zhao-PengFei35/chromium_src_4 | ui/views/test/mock_native_widget.h | C++ | unknown | 7,808 |
// 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/views/test/native_widget_factory.h"
#include <utility>
#include "build/build_config.h"
#include "ui/views/buildflags.h"
#include "ui/views/test/test_platform_nat... | Zhao-PengFei35/chromium_src_4 | ui/views/test/native_widget_factory.cc | C++ | unknown | 1,732 |
// 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_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_
#define UI_VIEWS_TEST_NATIVE_WIDGET_FACTORY_H_
#include <stdint.h>
#include "base/functional/callback_forward.h"
#include "ui/v... | Zhao-PengFei35/chromium_src_4 | ui/views/test/native_widget_factory.h | C++ | unknown | 1,711 |
// 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/views/test/scoped_views_test_helper.h"
#include <utility>
#include "ui/base/clipboard/clipboard.h"
#include "ui/base/clipboard/test/test_clipboard.h"
#if define... | Zhao-PengFei35/chromium_src_4 | ui/views/test/scoped_views_test_helper.cc | C++ | unknown | 1,935 |
// 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_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_
#define UI_VIEWS_TEST_SCOPED_VIEWS_TEST_HELPER_H_
#include <memory>
#include "third_party/abseil-cpp/absl/types/optional.h"
... | Zhao-PengFei35/chromium_src_4 | ui/views/test/scoped_views_test_helper.h | C++ | unknown | 2,038 |
// 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/views/test/scoped_views_test_helper.h"
#include <Cocoa/Cocoa.h>
#import "base/mac/scoped_nsobject.h"
#include "ui/views/widget/widget.h"
namespace views {
void... | Zhao-PengFei35/chromium_src_4 | ui/views/test/scoped_views_test_helper_cocoa.mm | Objective-C++ | unknown | 758 |
// 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/views/test/slider_test_api.h"
#include "ui/views/controls/slider.h"
namespace views::test {
SliderTestApi::SliderTestApi(Slider* slider) : slider_(slider) {}
S... | Zhao-PengFei35/chromium_src_4 | ui/views/test/slider_test_api.cc | C++ | unknown | 584 |
// 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_VIEWS_TEST_SLIDER_TEST_API_H_
#define UI_VIEWS_TEST_SLIDER_TEST_API_H_
#include "base/memory/raw_ptr.h"
namespace views {
class Slider;
class SliderListener;
nam... | Zhao-PengFei35/chromium_src_4 | ui/views/test/slider_test_api.h | C++ | unknown | 1,020 |
// 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/views/test/test_desktop_screen_ozone.h"
namespace views::test {
namespace {
TestDesktopScreenOzone* g_instance = nullptr;
}
// static
std::unique_ptr<display::Sc... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_desktop_screen_ozone.cc | C++ | unknown | 907 |
// 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_VIEWS_TEST_TEST_DESKTOP_SCREEN_OZONE_H_
#define UI_VIEWS_TEST_TEST_DESKTOP_SCREEN_OZONE_H_
#include <memory>
#include "ui/gfx/geometry/point.h"
#include "ui/views/... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_desktop_screen_ozone.h | C++ | unknown | 1,425 |
// 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/views/test/test_layout_manager.h"
namespace views::test {
TestLayoutManager::TestLayoutManager() = default;
TestLayoutManager::~TestLayoutManager() = default;
... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_layout_manager.cc | C++ | unknown | 745 |
// 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_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_
#define UI_VIEWS_TEST_TEST_LAYOUT_MANAGER_H_
#include "ui/gfx/geometry/size.h"
#include "ui/views/layout/layout_manager.h"
namesp... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_layout_manager.h | C++ | unknown | 1,478 |
// 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/views/test/test_layout_provider.h"
namespace views::test {
TestLayoutProvider::TestLayoutProvider() = default;
TestLayoutProvider::~TestLayoutProvider() = defaul... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_layout_provider.cc | C++ | unknown | 1,449 |
// 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_VIEWS_TEST_TEST_LAYOUT_PROVIDER_H_
#define UI_VIEWS_TEST_TEST_LAYOUT_PROVIDER_H_
#include <map>
#include <utility>
#include "ui/views/layout/layout_provider.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_layout_provider.h | C++ | unknown | 1,775 |
// 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_VIEWS_TEST_TEST_PLATFORM_NATIVE_WIDGET_H_
#define UI_VIEWS_TEST_TEST_PLATFORM_NATIVE_WIDGET_H_
#include <utility>
#include "base/functional/callback_forward.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/views/test/test_platform_native_widget.h | C++ | unknown | 2,640 |