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 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/controls/button/radio_button.h" #include "base/auto_reset.h" #include "base/check.h" #include "base/ranges/algorithm.h" #include "ui/accessibility/ax_action...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/radio_button.cc
C++
unknown
4,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_CONTROLS_BUTTON_RADIO_BUTTON_H_ #define UI_VIEWS_CONTROLS_BUTTON_RADIO_BUTTON_H_ #include <string> #include "ui/views/controls/button/checkbox.h" #include "u...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/radio_button.h
C++
unknown
1,971
// 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/controls/button/radio_button.h" #include <memory> #include <utility> #include "base/memory/raw_ptr.h" #include "base/strings/utf_string_conversions.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/radio_button_unittest.cc
C++
unknown
4,437
// 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/controls/button/toggle_button.h" #include <memory> #include <utility> #include <vector> #include "base/callback_list.h" #include "base/functional/bind.h" #...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/toggle_button.cc
C++
unknown
22,196
// 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_CONTROLS_BUTTON_TOGGLE_BUTTON_H_ #define UI_VIEWS_CONTROLS_BUTTON_TOGGLE_BUTTON_H_ #include "base/memory/raw_ptr.h" #include "third_party/abseil-cpp/absl/type...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/toggle_button.h
C++
unknown
4,191
// 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/controls/button/toggle_button.h" #include <memory> #include <utility> #include "base/functional/bind.h" #include "base/memory/raw_ptr.h" #include "build/bu...
Zhao-PengFei35/chromium_src_4
ui/views/controls/button/toggle_button_unittest.cc
C++
unknown
4,909
// 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/controls/combobox/combobox.h" #include <algorithm> #include <memory> #include <utility> #include <vector> #include "base/check_op.h" #include "base/functio...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox.cc
C++
unknown
26,898
// 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_CONTROLS_COMBOBOX_COMBOBOX_H_ #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_H_ #include <memory> #include <string> #include <utility> #include "base/memory/raw...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox.h
C++
unknown
11,347
// 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/controls/combobox/combobox_menu_model.h" ComboboxMenuModel::ComboboxMenuModel(views::Combobox* owner, ui::ComboboxModel...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox_menu_model.cc
C++
unknown
3,537
// 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_CONTROLS_COMBOBOX_COMBOBOX_MENU_MODEL_H_ #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_MENU_MODEL_H_ #include "base/i18n/rtl.h" #include "ui/base/models/combobo...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox_menu_model.h
C++
unknown
3,095
// 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/controls/combobox/combobox.h" #include <memory> #include <set> #include <string> #include <utility> #include <vector> #include "base/memory/raw_ptr.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox_unittest.cc
C++
unknown
36,050
// 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/controls/combobox/combobox_util.h" #include <memory> #include "cc/paint/paint_flags.h" #include "third_party/skia/include/core/SkColor.h" #include "ui/base...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox_util.cc
C++
unknown
5,014
// 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_CONTROLS_COMBOBOX_COMBOBOX_UTIL_H_ #define UI_VIEWS_CONTROLS_COMBOBOX_COMBOBOX_UTIL_H_ #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/geo...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/combobox_util.h
C++
unknown
1,190
// 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/controls/combobox/empty_combobox_model.h" #include <string> #include "base/notreached.h" namespace views::internal { EmptyComboboxModel::EmptyComboboxMod...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/empty_combobox_model.cc
C++
unknown
678
// 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_CONTROLS_COMBOBOX_EMPTY_COMBOBOX_MODEL_H_ #define UI_VIEWS_CONTROLS_COMBOBOX_EMPTY_COMBOBOX_MODEL_H_ #include "ui/base/models/combobox_model.h" namespace vie...
Zhao-PengFei35/chromium_src_4
ui/views/controls/combobox/empty_combobox_model.h
C++
unknown
899
// 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/controls/dot_indicator.h" #include <algorithm> #include <utility> #include "base/memory/ptr_util.h" #include "ui/base/metadata/metadata_impl_macros.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/dot_indicator.cc
C++
unknown
2,234
// 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_VIEWS_CONTROLS_DOT_INDICATOR_H_ #define UI_VIEWS_CONTROLS_DOT_INDICATOR_H_ #include "ui/gfx/color_palette.h" #include "ui/views/view.h" namespace views { // Dot i...
Zhao-PengFei35/chromium_src_4
ui/views/controls/dot_indicator.h
C++
unknown
1,133
// 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/controls/editable_combobox/editable_combobox.h" #include <algorithm> #include <memory> #include <string> #include <vector> #include "base/check_op.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_combobox.cc
C++
unknown
20,816
// 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_CONTROLS_EDITABLE_COMBOBOX_EDITABLE_COMBOBOX_H_ #define UI_VIEWS_CONTROLS_EDITABLE_COMBOBOX_EDITABLE_COMBOBOX_H_ #include <memory> #include <string> #include ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_combobox.h
C++
unknown
7,792
// 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/controls/editable_combobox/editable_combobox.h" #include <memory> #include <set> #include <string> #include <utility> #include <vector> #include "base/func...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_combobox_unittest.cc
C++
unknown
32,206
// 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/controls/editable_combobox/editable_password_combobox.h" #include <algorithm> #include <memory> #include <string> #include <utility> #include "base/functio...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_password_combobox.cc
C++
unknown
5,181
// 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_CONTROLS_EDITABLE_COMBOBOX_EDITABLE_PASSWORD_COMBOBOX_H_ #define UI_VIEWS_CONTROLS_EDITABLE_COMBOBOX_EDITABLE_PASSWORD_COMBOBOX_H_ #include <memory> #include ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_password_combobox.h
C++
unknown
2,773
// 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/controls/editable_combobox/editable_password_combobox.h" #include <memory> #include <string> #include <utility> #include <vector> #include "base/functional...
Zhao-PengFei35/chromium_src_4
ui/views/controls/editable_combobox/editable_password_combobox_unittest.cc
C++
unknown
5,827
// 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/controls/focus_ring.h" #include <algorithm> #include <memory> #include <utility> #include "base/i18n/rtl.h" #include "base/memory/ptr_util.h" #include "bas...
Zhao-PengFei35/chromium_src_4
ui/views/controls/focus_ring.cc
C++
unknown
14,075
// 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_CONTROLS_FOCUS_RING_H_ #define UI_VIEWS_CONTROLS_FOCUS_RING_H_ #include <memory> #include "base/scoped_observation.h" #include "ui/base/class_property.h" #in...
Zhao-PengFei35/chromium_src_4
ui/views/controls/focus_ring.h
C++
unknown
7,184
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/controls/focusable_border.h" #include "cc/paint/paint_flags.h" #include "third_party/skia/include/core/SkPath.h" #include "ui/base/ui_base_features.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/focusable_border.cc
C++
unknown
2,577
// 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_CONTROLS_FOCUSABLE_BORDER_H_ #define UI_VIEWS_CONTROLS_FOCUSABLE_BORDER_H_ #include "third_party/abseil-cpp/absl/types/optional.h" #include "ui/color/color_id...
Zhao-PengFei35/chromium_src_4
ui/views/controls/focusable_border.h
C++
unknown
1,553
// 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/controls/highlight_path_generator.h" #include <algorithm> #include <utility> #include "third_party/skia/include/core/SkRect.h" #include "ui/gfx/geometry/ro...
Zhao-PengFei35/chromium_src_4
ui/views/controls/highlight_path_generator.cc
C++
unknown
5,320
// 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_CONTROLS_HIGHLIGHT_PATH_GENERATOR_H_ #define UI_VIEWS_CONTROLS_HIGHLIGHT_PATH_GENERATOR_H_ #include <memory> #include "third_party/abseil-cpp/absl/types/opti...
Zhao-PengFei35/chromium_src_4
ui/views/controls/highlight_path_generator.h
C++
unknown
6,744
// 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/controls/image_view.h" #include <utility> #include "base/check_op.h" #include "base/i18n/rtl.h" #include "base/numerics/safe_conversions.h" #include "base/...
Zhao-PengFei35/chromium_src_4
ui/views/controls/image_view.cc
C++
unknown
5,250
// 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_CONTROLS_IMAGE_VIEW_H_ #define UI_VIEWS_CONTROLS_IMAGE_VIEW_H_ #include "base/memory/raw_ptr.h" #include "ui/base/metadata/metadata_header_macros.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/image_view.h
C++
unknown
3,731
// 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/controls/image_view_base.h" #include <utility> #include "base/i18n/rtl.h" #include "ui/accessibility/ax_enums.mojom.h" #include "ui/base/metadata/metadata_...
Zhao-PengFei35/chromium_src_4
ui/views/controls/image_view_base.cc
C++
unknown
6,128
// 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_VIEWS_CONTROLS_IMAGE_VIEW_BASE_H_ #define UI_VIEWS_CONTROLS_IMAGE_VIEW_BASE_H_ #include <string> #include "third_party/abseil-cpp/absl/types/optional.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/views/controls/image_view_base.h
C++
unknown
2,979
// 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/controls/image_view.h" #include <memory> #include <string> #include <utility> #include "base/i18n/rtl.h" #include "base/memory/raw_ptr.h" #include "testing...
Zhao-PengFei35/chromium_src_4
ui/views/controls/image_view_unittest.cc
C++
unknown
9,204
// 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/controls/label.h" #include <stddef.h> #include <algorithm> #include <cmath> #include <limits> #include <utility> #include <vector> #include "base/i18n/rtl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/label.cc
C++
unknown
44,776
// 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_CONTROLS_LABEL_H_ #define UI_VIEWS_CONTROLS_LABEL_H_ #include <memory> #include <vector> #include "base/gtest_prod_util.h" #include "base/memory/raw_ptr_excl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/label.h
C++
unknown
23,279
// 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/controls/label.h" #include "base/strings/utf_string_conversions.h" #include "base/timer/lap_timer.h" #include "testing/perf/perf_result_reporter.h" #include...
Zhao-PengFei35/chromium_src_4
ui/views/controls/label_perftest.cc
C++
unknown
1,482
// 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/controls/label.h" #include <stddef.h> #include <string> #include <utility> #include <vector> #include "base/command_line.h" #include "base/functional/bind...
Zhao-PengFei35/chromium_src_4
ui/views/controls/label_unittest.cc
C++
unknown
64,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. #include "ui/views/controls/link.h" #include "build/build_config.h" #include "base/check.h" #include "base/strings/utf_string_conversions.h" #include "ui/accessibility/ax_enu...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link.cc
C++
unknown
6,648
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_VIEWS_CONTROLS_LINK_H_ #define UI_VIEWS_CONTROLS_LINK_H_ #include <memory> #include <string> #include <utility> #include "base/functional/callback.h" #include "thi...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link.h
C++
unknown
3,989
// 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/controls/link_fragment.h" #include <string> #include "ui/base/metadata/metadata_impl_macros.h" #include "ui/views/controls/focus_ring.h" #include "ui/views...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link_fragment.cc
C++
unknown
3,691
// 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_CONTROLS_LINK_FRAGMENT_H_ #define UI_VIEWS_CONTROLS_LINK_FRAGMENT_H_ #include "base/memory/raw_ptr.h" #include "ui/views/controls/link.h" #include "ui/views/m...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link_fragment.h
C++
unknown
2,055
// 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/controls/link_fragment.h" #include <array> #include <memory> #include "base/memory/raw_ptr.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/e...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link_fragment_unittest.cc
C++
unknown
6,609
// 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/controls/link.h" #include <memory> #include <utility> #include <vector> #include "base/memory/raw_ptr.h" #include "base/strings/utf_string_conversions.h" #...
Zhao-PengFei35/chromium_src_4
ui/views/controls/link_unittest.cc
C++
unknown
6,729
// 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_VIEWS_CONTROLS_MENU_MENU_CLOSURE_ANIMATION_MAC_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_CLOSURE_ANIMATION_MAC_H_ #include <memory> #include "base/memory/raw_ptr.h" #...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_closure_animation_mac.h
C++
unknown
3,382
// 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/controls/menu/menu_closure_animation_mac.h" #import <Cocoa/Cocoa.h> #include "base/check_op.h" #include "base/functional/bind.h" #include "base/notreached....
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_closure_animation_mac.mm
Objective-C++
unknown
3,826
// 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/controls/menu/menu_closure_animation_mac.h" #include <memory> #include "base/test/bind.h" #include "base/test/task_environment.h" #include "testing/gtest/i...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_closure_animation_mac_unittest.cc
C++
unknown
985
// 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_VIEWS_CONTROLS_MENU_MENU_COCOA_WATCHER_MAC_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_COCOA_WATCHER_MAC_H_ #include <memory> #include "base/functional/callback.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_cocoa_watcher_mac.h
C++
unknown
1,547
// 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/controls/menu/menu_cocoa_watcher_mac.h" #import <Cocoa/Cocoa.h> #include <dispatch/dispatch.h> #include <memory> #include <utility> namespace views { name...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_cocoa_watcher_mac.mm
Objective-C++
unknown
4,083
// 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/controls/menu/menu_config.h" #include "base/no_destructor.h" #include "ui/base/ui_base_features.h" #include "ui/views/controls/menu/menu_controller.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config.cc
C++
unknown
1,919
// 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_CONTROLS_MENU_MENU_CONFIG_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_CONFIG_H_ #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/color_palette.h...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config.h
C++
unknown
7,870
// 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/controls/menu/menu_config.h" #include "build/chromeos_buildflags.h" #include "ui/views/controls/menu/menu_image_util.h" namespace views { void MenuConfig:...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config_chromeos.cc
C++
unknown
975
// 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/controls/menu/menu_config.h" namespace views { void MenuConfig::Init() {} } // namespace views
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config_fuchsia.cc
C++
unknown
262
// 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/controls/menu/menu_config.h" namespace views { void MenuConfig::Init() { arrow_to_edge_padding = 6; } } // namespace views
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config_linux.cc
C++
unknown
292
// 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/controls/menu/menu_config.h" #import <AppKit/AppKit.h> #include "base/mac/mac_util.h" #include "ui/gfx/platform_font_mac.h" namespace { void InitMaterial...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config_mac.mm
Objective-C++
unknown
1,688
// 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/controls/menu/menu_config.h" #include <windows.h> // Must come before other Windows system headers. #include <Vssym32.h> #include "base/check.h" #include...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_config_win.cc
C++
unknown
1,879
// 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/controls/menu/menu_controller.h" #include <algorithm> #include <set> #include <utility> #include "base/containers/flat_set.h" #include "base/functional/bin...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller.cc
C++
unknown
132,288
// 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_CONTROLS_MENU_MENU_CONTROLLER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_H_ #include <stddef.h> #include <list> #include <memory> #include <set> #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller.h
C++
unknown
32,656
// 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_CONTROLS_MENU_MENU_CONTROLLER_COCOA_DELEGATE_IMPL_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_COCOA_DELEGATE_IMPL_H_ #import "base/mac/scoped_nsobject.h...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller_cocoa_delegate_impl.h
Objective-C
unknown
653
// 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. #import "ui/views/controls/menu/menu_controller_cocoa_delegate_impl.h" #include "base/logging.h" #include "base/mac/foundation_util.h" #import "base/mac/scoped_nsobject.h" #im...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller_cocoa_delegate_impl.mm
Objective-C++
unknown
13,760
// 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_CONTROLS_MENU_MENU_CONTROLLER_DELEGATE_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_CONTROLLER_DELEGATE_H_ namespace views { class MenuItemView; // This is intern...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller_delegate.h
C++
unknown
1,356
// 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/controls/menu/menu_controller.h" #include <vector> #include "base/functional/bind.h" #include "base/functional/callback.h" #include "base/i18n/rtl.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_controller_unittest.cc
C++
unknown
143,452
// 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/controls/menu/menu_delegate.h" #include "base/functional/callback_helpers.h" #include "base/notreached.h" #include "ui/base/dragdrop/mojom/drag_drop_types.m...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_delegate.cc
C++
unknown
4,244
// 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_CONTROLS_MENU_MENU_DELEGATE_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_DELEGATE_H_ #include <set> #include <string> #include "third_party/abseil-cpp/absl/types/o...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_delegate.h
C++
unknown
9,742
// 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/controls/menu/menu_host.h" #include <utility> #include "base/auto_reset.h" #include "base/check_op.h" #include "base/memory/raw_ptr.h" #include "base/notre...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_host.cc
C++
unknown
12,169
// 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_CONTROLS_MENU_MENU_HOST_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_H_ #include <memory> #include "base/memory/raw_ptr.h" #include "build/build_config.h" #in...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_host.h
C++
unknown
3,890
// 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/controls/menu/menu_host_root_view.h" #include "ui/base/metadata/metadata_impl_macros.h" #include "ui/views/controls/menu/menu_controller.h" #include "ui/vie...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_host_root_view.cc
C++
unknown
3,606
// 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_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_HOST_ROOT_VIEW_H_ #include "base/memory/raw_ptr.h" #include "ui/views/widget/root_vie...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_host_root_view.h
C++
unknown
2,266
// 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/controls/menu/menu_image_util.h" #include "components/vector_icons/vector_icons.h" #include "ui/gfx/color_palette.h" #include "ui/gfx/paint_vector_icon.h" #...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_image_util.cc
C++
unknown
690
// 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_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_IMAGE_UTIL_H_ #include "third_party/skia/include/core/SkColor.h" #include "ui/gfx/image/i...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_image_util.h
C++
unknown
786
// 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_CONTROLS_MENU_MENU_INSERTION_DELEGATE_WIN_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_INSERTION_DELEGATE_WIN_H_ #include <windows.h> namespace views { class Menu...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_insertion_delegate_win.h
C++
unknown
622
// 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/controls/menu/menu_item_view.h" #include <math.h> #include <stddef.h> #include <algorithm> #include <memory> #include <numeric> #include <utility> #includ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_item_view.cc
C++
unknown
56,438
// 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_CONTROLS_MENU_MENU_ITEM_VIEW_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_ITEM_VIEW_H_ #include <memory> #include <string> #include <utility> #include <vector> #in...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_item_view.h
C++
unknown
26,543
// 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/controls/menu/menu_item_view.h" #include <memory> #include <string> #include <utility> #include "base/memory/raw_ptr.h" #include "base/strings/utf_string_c...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_item_view_unittest.cc
C++
unknown
25,778
// 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/controls/menu/menu_model_adapter.h" #include <limits> #include <list> #include <memory> #include <utility> #include "base/check.h" #include "base/notreache...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_model_adapter.cc
C++
unknown
12,819
// 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_CONTROLS_MENU_MENU_MODEL_ADAPTER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_MODEL_ADAPTER_H_ #include <map> #include "base/functional/callback.h" #include "base/...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_model_adapter.h
C++
unknown
5,518
// 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/controls/menu/menu_model_adapter.h" #include <memory> #include <string> #include <vector> #include "base/memory/raw_ptr.h" #include "base/strings/utf_strin...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_model_adapter_unittest.cc
C++
unknown
11,882
// 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_VIEWS_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_H_ #include <memory> namespace views { class MenuController;...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_pre_target_handler.h
C++
unknown
1,085
// 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/controls/menu/menu_pre_target_handler_aura.h" #include <memory> #include "ui/aura/env.h" #include "ui/aura/window.h" #include "ui/views/controls/menu/menu_...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_pre_target_handler_aura.cc
C++
unknown
2,445
// 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_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_AURA_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_AURA_H_ #include "base/memory/raw_ptr.h" #include "ui/aur...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_pre_target_handler_aura.h
C++
unknown
1,964
// 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_VIEWS_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_MAC_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_PRE_TARGET_HANDLER_MAC_H_ #include <memory> #include "base/memory/raw_ptr.h"...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_pre_target_handler_mac.h
C++
unknown
1,440
// 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/controls/menu/menu_pre_target_handler_mac.h" #import <Cocoa/Cocoa.h> #include "ui/events/event.h" #include "ui/events/event_utils.h" #include "ui/views/coc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_pre_target_handler_mac.mm
Objective-C++
unknown
1,476
// 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/controls/menu/menu_runner.h" #include <utility> #include "ui/gfx/geometry/rounded_corners_f.h" #include "ui/views/controls/menu/menu_runner_handler.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner.cc
C++
unknown
3,572
// 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_CONTROLS_MENU_MENU_RUNNER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_H_ #include <stdint.h> #include <memory> #include "base/functional/callback.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner.h
C++
unknown
7,202
// 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 "base/task/single_thread_task_runner.h" #include "base/task/single_thread_task_runner.h" #import "ui/views/controls/menu/menu_runner_i...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_cocoa_unittest.mm
Objective-C++
unknown
15,994
// 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_CONTROLS_MENU_MENU_RUNNER_HANDLER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_HANDLER_H_ #include <stdint.h> #include "ui/base/ui_base_types.h" namespace ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_handler.h
C++
unknown
1,050
// 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/controls/menu/menu_runner_impl.h" #include <memory> #include <utility> #include "build/build_config.h" #include "ui/accessibility/platform/ax_platform_node...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl.cc
C++
unknown
9,245
// 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_CONTROLS_MENU_MENU_RUNNER_IMPL_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_H_ #include <stdint.h> #include <memory> #include <set> #include "base/mem...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl.h
C++
unknown
3,375
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/views/controls/menu/menu_runner_impl_adapter.h" #include <utility> #include "ui/views/controls/menu/menu_model_adapter.h" #include "ui/views/controls/menu/menu_r...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl_adapter.cc
C++
unknown
1,546
// 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_CONTROLS_MENU_MENU_RUNNER_IMPL_ADAPTER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_ADAPTER_H_ #include <stdint.h> #include <memory> #include "base/me...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl_adapter.h
C++
unknown
1,796
// 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_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_COCOA_H_ #include <stdint.h> #include "base/functional/callback.h" #i...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl_cocoa.h
Objective-C
unknown
2,391
// 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/views/controls/menu/menu_runner_impl_cocoa.h" #include <dispatch/dispatch.h> #include "base/i18n/rtl.h" #include "base/mac/mac_util.h" #import "base/message_loop/...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl_cocoa.mm
Objective-C++
unknown
9,366
// 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_CONTROLS_MENU_MENU_RUNNER_IMPL_INTERFACE_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_INTERFACE_H_ #include <stdint.h> #include "base/functional/callba...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_impl_interface.h
C++
unknown
2,133
// 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/controls/menu/menu_runner.h" #include <stdint.h> #include <memory> #include <utility> #include "base/functional/callback_helpers.h" #include "base/memory/...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_runner_unittest.cc
C++
unknown
27,852
// 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/controls/menu/menu_scroll_view_container.h" #include <algorithm> #include <memory> #include <utility> #include "base/functional/callback_helpers.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_scroll_view_container.cc
C++
unknown
19,611
// 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_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_SCROLL_VIEW_CONTAINER_H_ #include "base/memory/raw_ptr.h" #include "ui/views/b...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_scroll_view_container.h
C++
unknown
3,347
// 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/controls/menu/menu_separator.h" #include "build/build_config.h" #include "third_party/skia/include/core/SkColor.h" #include "ui/accessibility/ax_enums.mojom...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_separator.cc
C++
unknown
3,845
// 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_CONTROLS_MENU_MENU_SEPARATOR_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_SEPARATOR_H_ #include "ui/base/metadata/metadata_header_macros.h" #include "ui/base/models...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_separator.h
C++
unknown
1,090
// 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/controls/menu/menu_separator.h" #include <memory> #include "testing/gtest/include/gtest/gtest.h" #include "ui/accessibility/ax_enums.mojom.h" #include "ui/...
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_separator_unittest.cc
C++
unknown
1,473
// 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_CONTROLS_MENU_MENU_TYPES_H_ #define UI_VIEWS_CONTROLS_MENU_MENU_TYPES_H_ namespace views { // Where a popup menu should be anchored to for non-RTL languages....
Zhao-PengFei35/chromium_src_4
ui/views/controls/menu/menu_types.h
C++
unknown
727