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/base/l10n/l10n_util_ios.h"
#import <Foundation/Foundation.h>
#include "base/strings/sys_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
#inc... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_ios_unittest.mm | Objective-C++ | unknown | 1,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_BASE_L10N_L10N_UTIL_MAC_H_
#define UI_BASE_L10N_L10N_UTIL_MAC_H_
#include <stddef.h>
#include <string>
#include <vector>
#include "base/component_export.h"
#ifde... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_mac.h | Objective-C | unknown | 3,963 |
// 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 <Foundation/Foundation.h>
#include "base/check.h"
#include "base/lazy_instance.h"
#include "base/mac/bundle_locations.h"
#import "base/mac/scoped_nsobject.h"
#include ... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_mac.mm | Objective-C++ | unknown | 7,424 |
// 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_L10N_L10N_UTIL_MAC_BRIDGE_H_
#define UI_BASE_L10N_L10N_UTIL_MAC_BRIDGE_H_
#import <UIKit/UIKit.h>
typedef int MessageID;
// An Objective-C wrapper around nam... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_mac_bridge.h | Objective-C | unknown | 977 |
// 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.
#import <Foundation/Foundation.h>
#import "base/strings/sys_string_conversions.h"
#import "ui/base/l10n/l10n_util_mac.h"
#import "ui/base/l10n/l10n_util_mac_bridge.h"
@implem... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_mac_bridge.mm | Objective-C++ | unknown | 941 |
// 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/base/l10n/l10n_util_mac.h"
#import <Foundation/Foundation.h>
#include <stddef.h>
#include "base/strings/sys_string_conversions.h"
#include "testing/gtest/include... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_mac_unittest.mm | Objective-C++ | unknown | 1,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/l10n/l10n_util.h"
#include <stddef.h>
#include <cstring>
#include <memory>
#include "base/containers/flat_set.h"
#include "base/environment.h"
#include "ba... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_unittest.cc | C++ | unknown | 28,375 |
// 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/base/l10n/l10n_util_win.h"
#include <iterator>
#include "base/i18n/rtl.h"
#include "base/lazy_instance.h"
#include "base/ranges/algorithm.h"
#include "base/strin... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_win.cc | C++ | unknown | 3,900 |
// 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_BASE_L10N_L10N_UTIL_WIN_H_
#define UI_BASE_L10N_L10N_UTIL_WIN_H_
#include <windows.h>
#include <string>
#include <vector>
#include "base/component_export.h"
names... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/l10n_util_win.h | C++ | unknown | 2,471 |
// 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/base/l10n/time_format.h"
#include <limits>
#include "base/check_op.h"
#include "base/component_export.h"
#include "base/lazy_instance.h"
#include "base/notreache... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/time_format.cc | C++ | unknown | 6,794 |
// 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_BASE_L10N_TIME_FORMAT_H_
#define UI_BASE_L10N_TIME_FORMAT_H_
#include <string>
#include "base/component_export.h"
#include "build/build_config.h"
namespace base {... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/time_format.h | C++ | unknown | 5,988 |
// 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/base/l10n/time_format.h"
#include <string>
#include "base/files/file_path.h"
#include "base/strings/utf_string_conversions.h"
#include "base/time/time.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/base/l10n/time_format_unittest.cc | C++ | unknown | 25,008 |
// 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/layout.h"
#include <stddef.h>
#include <algorithm>
#include <cmath>
#include <limits>
#include "base/check.h"
#include "base/check_op.h"
#include "build/bu... | Zhao-PengFei35/chromium_src_4 | ui/base/layout.cc | C++ | unknown | 4,342 |
// 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_LAYOUT_H_
#define UI_BASE_LAYOUT_H_
#include <memory>
#include <vector>
#include "base/component_export.h"
#include "build/build_config.h"
#include "ui/base/r... | Zhao-PengFei35/chromium_src_4 | ui/base/layout.h | C++ | unknown | 2,331 |
// 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/layout.h"
#include "build/build_config.h"
#include "build/chromeos_buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#if BUILDFLAG(IS_CHROMEOS_AS... | Zhao-PengFei35/chromium_src_4 | ui/base/layout_unittest.cc | C++ | unknown | 2,266 |
// 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/linux/linux_desktop.h"
#include <vector>
#include "base/environment.h"
#include "base/nix/xdg_util.h"
#include "base/strings/string_piece.h"
#include "base/... | Zhao-PengFei35/chromium_src_4 | ui/base/linux/linux_desktop.cc | C++ | unknown | 1,055 |
// 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_LINUX_LINUX_DESKTOP_H_
#define UI_BASE_LINUX_LINUX_DESKTOP_H_
#include "base/component_export.h"
#include "base/values.h"
namespace ui {
// Returns desktop e... | Zhao-PengFei35/chromium_src_4 | ui/base/linux/linux_desktop.h | C++ | unknown | 491 |
// 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/menu_source_utils.h"
#include "ui/events/event.h"
namespace ui {
MenuSourceType GetMenuSourceTypeForEvent(const Event& event) {
if (event.IsKeyEvent())
... | Zhao-PengFei35/chromium_src_4 | ui/base/menu_source_utils.cc | C++ | unknown | 486 |
// 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_MENU_SOURCE_UTILS_H_
#define UI_BASE_MENU_SOURCE_UTILS_H_
#include "base/component_export.h"
#include "ui/base/ui_base_types.h"
namespace ui {
class Event;
... | Zhao-PengFei35/chromium_src_4 | ui/base/menu_source_utils.h | C++ | unknown | 469 |
// 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/metadata/base_type_conversion.h"
#include <algorithm>
#include <cmath>
#include <string>
#include "base/containers/fixed_flat_set.h"
#include "base/no_destr... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/base_type_conversion.cc | C++ | unknown | 21,901 |
// 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_METADATA_BASE_TYPE_CONVERSION_H_
#define UI_BASE_METADATA_BASE_TYPE_CONVERSION_H_
#include <stdint.h>
#include <algorithm> // Silence broken lint check
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/base_type_conversion.h | C++ | unknown | 16,991 |
// 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/metadata/base_type_conversion.h"
#include "base/ranges/ranges.h"
#include "base/strings/string_tokenizer.h"
#include "base/strings/utf_string_conversions.h"
... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/base_type_conversion_unittest.cc | C++ | unknown | 9,661 |
// 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/metadata/metadata_cache.h"
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/no_destructor.h"
#include "ui/base/metadata/metada... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_cache.cc | C++ | unknown | 1,171 |
// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_METADATA_METADATA_CACHE_H_
#define UI_BASE_METADATA_METADATA_CACHE_H_
#include <memory>
#include <utility>
#include <vector>
#include "base/component_export.h... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_cache.h | C++ | unknown | 2,152 |
// 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_METADATA_METADATA_HEADER_MACROS_H_
#define UI_BASE_METADATA_METADATA_HEADER_MACROS_H_
#include "ui/base/metadata/metadata_macros_internal.h"
// Generate Metad... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_header_macros.h | C | unknown | 942 |
// 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_METADATA_METADATA_IMPL_MACROS_H_
#define UI_BASE_METADATA_METADATA_IMPL_MACROS_H_
#include <memory>
#include <utility>
#include "ui/base/metadata/metadata_cac... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_impl_macros.h | C++ | unknown | 4,218 |
// 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_METADATA_METADATA_MACROS_INTERNAL_H_
#define UI_BASE_METADATA_METADATA_MACROS_INTERNAL_H_
#include <string>
#include <utility>
#include "ui/base/metadata/meta... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_macros_internal.h | C++ | unknown | 8,009 |
// 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/metadata/metadata_types.h"
#include <utility>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_util.h"
#include "ui/bas... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_types.cc | C++ | unknown | 5,831 |
// 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_METADATA_METADATA_TYPES_H_
#define UI_BASE_METADATA_METADATA_TYPES_H_
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "base/call... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_types.h | C++ | unknown | 8,308 |
// 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 <string>
#include "base/callback_list.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/strings/string_number_conversions.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/metadata_unittest.cc | C++ | unknown | 8,659 |
// 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_METADATA_PROPERTY_METADATA_H_
#define UI_BASE_METADATA_PROPERTY_METADATA_H_
#include <string>
#include <type_traits>
#include <utility>
#include "base/compone... | Zhao-PengFei35/chromium_src_4 | ui/base/metadata/property_metadata.h | C++ | unknown | 8,429 |
// 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/base/models/button_menu_item_model.h"
#include "ui/base/l10n/l10n_util.h"
namespace ui {
bool ButtonMenuItemModel::Delegate::IsItemForCommandIdDynamic(
int ... | Zhao-PengFei35/chromium_src_4 | ui/base/models/button_menu_item_model.cc | C++ | unknown | 3,624 |
// 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_BASE_MODELS_BUTTON_MENU_ITEM_MODEL_H_
#define UI_BASE_MODELS_BUTTON_MENU_ITEM_MODEL_H_
#include <string>
#include <vector>
#include "base/component_export.h"
#incl... | Zhao-PengFei35/chromium_src_4 | ui/base/models/button_menu_item_model.h | C++ | unknown | 4,258 |
// 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/models/combobox_model.h"
#include "ui/base/models/combobox_model_observer.h"
#include "ui/base/models/image_model.h"
namespace ui {
ComboboxModel::Combobox... | Zhao-PengFei35/chromium_src_4 | ui/base/models/combobox_model.cc | C++ | unknown | 1,916 |
// 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_MODELS_COMBOBOX_MODEL_H_
#define UI_BASE_MODELS_COMBOBOX_MODEL_H_
#include <string>
#include "base/component_export.h"
#include "base/observer_list.h"
#includ... | Zhao-PengFei35/chromium_src_4 | ui/base/models/combobox_model.h | C++ | unknown | 3,459 |
// 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_BASE_MODELS_COMBOBOX_MODEL_OBSERVER_H_
#define UI_BASE_MODELS_COMBOBOX_MODEL_OBSERVER_H_
#include "base/component_export.h"
#include "base/observer_list_types.h"
n... | Zhao-PengFei35/chromium_src_4 | ui/base/models/combobox_model_observer.h | C++ | unknown | 942 |
// 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/models/dialog_model.h"
#include <memory>
#include <vector>
#include "base/functional/callback_helpers.h"
#include "base/notreached.h"
#include "base/ranges/... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model.cc | C++ | unknown | 8,313 |
// 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_MODELS_DIALOG_MODEL_H_
#define UI_BASE_MODELS_DIALOG_MODEL_H_
#include <memory>
#include <string>
#include "base/component_export.h"
#include "base/functional... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model.h | C++ | unknown | 19,390 |
// 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/models/dialog_model_field.h"
#include <string>
#include "base/functional/bind.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/models/dialog_model.h... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_field.cc | C++ | unknown | 12,197 |
// 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_MODELS_DIALOG_MODEL_FIELD_H_
#define UI_BASE_MODELS_DIALOG_MODEL_FIELD_H_
#include <string>
#include "base/component_export.h"
#include "base/containers/flat_... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_field.h | C++ | unknown | 19,574 |
// 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_MODELS_DIALOG_MODEL_HOST_H_
#define UI_BASE_MODELS_DIALOG_MODEL_HOST_H_
#include "base/component_export.h"
#include "base/types/pass_key.h"
namespace ui {
cl... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_host.h | C++ | unknown | 1,292 |
// 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/models/dialog_model_menu_model_adapter.h"
#include "ui/base/models/dialog_model.h"
namespace ui {
DialogModelMenuModelAdapter::DialogModelMenuModelAdapter(... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_menu_model_adapter.cc | C++ | unknown | 4,225 |
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_MODELS_DIALOG_MODEL_MENU_MODEL_ADAPTER_H_
#define UI_BASE_MODELS_DIALOG_MODEL_MENU_MODEL_ADAPTER_H_
#include <memory>
#include "ui/base/models/dialog_model_ho... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_menu_model_adapter.h | C++ | unknown | 1,989 |
// 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/models/dialog_model_menu_model_adapter.h"
#include <memory>
#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "te... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_menu_model_adapter_unittest.cc | C++ | unknown | 1,626 |
// 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/models/dialog_model.h"
#include <memory>
#include <string>
#include "base/functional/callback.h"
#include "base/strings/utf_string_conversions.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/base/models/dialog_model_unittest.cc | C++ | unknown | 5,819 |
// 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 <tuple>
#include "base/functional/callback.h"
#include "ui/base/models/image_model.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/color/color_id.h"
#in... | Zhao-PengFei35/chromium_src_4 | ui/base/models/image_model.cc | C++ | unknown | 6,635 |
// 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_MODELS_IMAGE_MODEL_H_
#define UI_BASE_MODELS_IMAGE_MODEL_H_
#include "base/component_export.h"
#include "base/functional/callback.h"
#include "base/memory/raw_... | Zhao-PengFei35/chromium_src_4 | ui/base/models/image_model.h | C++ | unknown | 6,137 |
// 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/models/image_model.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "components/vector_icons/vector_icons.h... | Zhao-PengFei35/chromium_src_4 | ui/base/models/image_model_unittest.cc | C++ | unknown | 8,262 |
// 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_MODELS_LIST_MODEL_H_
#define UI_BASE_MODELS_LIST_MODEL_H_
#include <stddef.h>
#include <memory>
#include <utility>
#include <vector>
#include "base/check_op.... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_model.h | C++ | unknown | 4,475 |
// 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_MODELS_LIST_MODEL_OBSERVER_H_
#define UI_BASE_MODELS_LIST_MODEL_OBSERVER_H_
#include <stddef.h>
#include "base/component_export.h"
namespace ui {
class COMP... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_model_observer.h | C++ | unknown | 1,042 |
// 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/models/list_model.h"
#include <stddef.h>
#include <memory>
#include "base/compiler_specific.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace ui... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_model_unittest.cc | C++ | unknown | 4,287 |
// 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/models/list_selection_model.h"
#include <algorithm>
#include <valarray>
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/stri... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_selection_model.cc | C++ | unknown | 8,232 |
// 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_MODELS_LIST_SELECTION_MODEL_H_
#define UI_BASE_MODELS_LIST_SELECTION_MODEL_H_
#include <stddef.h>
#include "base/component_export.h"
#include "base/containers... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_selection_model.h | C++ | unknown | 4,813 |
// 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/models/list_selection_model.h"
#include <stddef.h>
#include <algorithm>
#include <string>
#include "base/strings/string_number_conversions.h"
#include "tes... | Zhao-PengFei35/chromium_src_4 | ui/base/models/list_selection_model_unittest.cc | C++ | unknown | 8,252 |
// 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/base/models/menu_model.h"
#include "ui/base/models/image_model.h"
namespace ui {
MenuModel::MenuModel() : menu_model_delegate_(nullptr) {}
MenuModel::~MenuMode... | Zhao-PengFei35/chromium_src_4 | ui/base/models/menu_model.cc | C++ | unknown | 3,149 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_MODELS_MENU_MODEL_H_
#define UI_BASE_MODELS_MENU_MODEL_H_
#include <string>
#include "base/component_export.h"
#include "base/memory/raw_ptr.h"
#include "base... | Zhao-PengFei35/chromium_src_4 | ui/base/models/menu_model.h | C++ | unknown | 8,765 |
// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
#define UI_BASE_MODELS_MENU_MODEL_DELEGATE_H_
namespace ui {
class MenuModelDelegate {
public:
// Invoked when an icon has be... | Zhao-PengFei35/chromium_src_4 | ui/base/models/menu_model_delegate.h | C++ | unknown | 1,014 |
// 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_MODELS_MENU_SEPARATOR_TYPES_H_
#define UI_BASE_MODELS_MENU_SEPARATOR_TYPES_H_
namespace ui {
// For a separator we have the following types.
enum MenuSeparato... | Zhao-PengFei35/chromium_src_4 | ui/base/models/menu_separator_types.h | C++ | unknown | 968 |
// 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/base/models/simple_combobox_model.h"
#include <utility>
namespace ui {
SimpleComboboxModel::Item::Item(std::u16string text) : text(std::move(text)) {}
SimpleCom... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_combobox_model.cc | C++ | unknown | 1,997 |
// 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_MODELS_SIMPLE_COMBOBOX_MODEL_H_
#define UI_BASE_MODELS_SIMPLE_COMBOBOX_MODEL_H_
#include "base/component_export.h"
#include "ui/base/models/combobox_model.h"
#... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_combobox_model.h | C++ | unknown | 1,856 |
// 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/models/simple_combobox_model.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/gfx/image/image_unittest_util.h"
namespace ui {
TEST(SimpleComb... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_combobox_model_unittest.cc | C++ | unknown | 1,564 |
// 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/models/simple_menu_model.h"
#include <stddef.h>
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/single_t... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_menu_model.cc | C++ | unknown | 19,389 |
// 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_MODELS_SIMPLE_MENU_MODEL_H_
#define UI_BASE_MODELS_SIMPLE_MENU_MODEL_H_
#include <string>
#include <vector>
#include "base/component_export.h"
#include "base/... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_menu_model.h | C++ | unknown | 11,974 |
// 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/models/simple_menu_model.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtes... | Zhao-PengFei35/chromium_src_4 | ui/base/models/simple_menu_model_unittest.cc | C++ | unknown | 8,326 |
// 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/models/table_model.h"
#include "base/check.h"
#include "base/i18n/string_compare.h"
#include "base/notreached.h"
#include "third_party/icu/source/i18n/unicod... | Zhao-PengFei35/chromium_src_4 | ui/base/models/table_model.cc | C++ | unknown | 2,302 |
// 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_MODELS_TABLE_MODEL_H_
#define UI_BASE_MODELS_TABLE_MODEL_H_
#include <string>
#include "base/component_export.h"
#include "third_party/icu/source/common/unico... | Zhao-PengFei35/chromium_src_4 | ui/base/models/table_model.h | C++ | unknown | 3,739 |
// 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_BASE_MODELS_TABLE_MODEL_OBSERVER_H_
#define UI_BASE_MODELS_TABLE_MODEL_OBSERVER_H_
#include "base/component_export.h"
namespace ui {
// Observer for a TableModel.... | Zhao-PengFei35/chromium_src_4 | ui/base/models/table_model_observer.h | C++ | unknown | 1,166 |
// 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/base/models/tree_model.h"
#include "base/notreached.h"
namespace ui {
void TreeModel::SetTitle(TreeModelNode* node, const std::u16string& title) {
NOTREACHED(... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_model.cc | C++ | unknown | 442 |
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef UI_BASE_MODELS_TREE_MODEL_H_
#define UI_BASE_MODELS_TREE_MODEL_H_
#include <string>
#include <vector>
#include "base/component_export.h"
#include "third_party/abseil-... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_model.h | C++ | unknown | 3,841 |
// 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_BASE_MODELS_TREE_NODE_ITERATOR_H_
#define UI_BASE_MODELS_TREE_NODE_ITERATOR_H_
#include "base/check.h"
#include "base/containers/stack.h"
#include "base/functional/... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_node_iterator.h | C++ | unknown | 3,612 |
// 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/base/models/tree_node_iterator.h"
#include "base/functional/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/models/tree_node_model.h"
na... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_node_iterator_unittest.cc | C++ | unknown | 2,498 |
// 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_MODELS_TREE_NODE_MODEL_H_
#define UI_BASE_MODELS_TREE_NODE_MODEL_H_
#include <stddef.h>
#include <memory>
#include <set>
#include <string>
#include <vector>
... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_node_model.h | C++ | unknown | 12,526 |
// 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/models/tree_node_model.h"
#include <memory>
#include <string>
#include "base/compiler_specific.h"
#include "base/strings/stringprintf.h"
#include "base/stri... | Zhao-PengFei35/chromium_src_4 | ui/base/models/tree_node_model_unittest.cc | C++ | unknown | 10,551 |
include_rules = [
"+mojo/public/cpp/bindings",
"+third_party/blink/public/mojom/clipboard/clipboard.mojom-shared.h",
]
| Zhao-PengFei35/chromium_src_4 | ui/base/mojom/DEPS | Python | unknown | 123 |
// 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_MOJOM_CLIPBOARD_BLINK_MOJOM_TRAITS_H_
#define UI_BASE_MOJOM_CLIPBOARD_BLINK_MOJOM_TRAITS_H_
#include "third_party/blink/public/mojom/clipboard/clipboard.mojom-... | Zhao-PengFei35/chromium_src_4 | ui/base/mojom/clipboard_blink_mojom_traits.h | C++ | unknown | 1,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.
#ifndef UI_BASE_MOJOM_UI_BASE_TYPES_MOJOM_TRAITS_H_
#define UI_BASE_MOJOM_UI_BASE_TYPES_MOJOM_TRAITS_H_
#include "base/notreached.h"
#include "build/build_config.h"
#include "... | Zhao-PengFei35/chromium_src_4 | ui/base/mojom/ui_base_types_mojom_traits.h | C++ | unknown | 5,707 |
// 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_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
#define UI_BASE_MOJOM_WINDOW_OPEN_DISPOSITION_MOJOM_TRAITS_H_
#include "base/notreached.h"
#include "mojo/public/... | Zhao-PengFei35/chromium_src_4 | ui/base/mojom/window_open_disposition_mojom_traits.h | C++ | unknown | 3,829 |
// 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/base/nine_image_painter_factory.h"
#include <stddef.h>
#include "ui/base/resource/resource_bundle.h"
#include "ui/gfx/nine_image_painter.h"
namespace ui {
name... | Zhao-PengFei35/chromium_src_4 | ui/base/nine_image_painter_factory.cc | C++ | unknown | 880 |
// 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_NINE_IMAGE_PAINTER_FACTORY_H_
#define UI_BASE_NINE_IMAGE_PAINTER_FACTORY_H_
#include <memory>
#include "base/component_export.h"
// A macro to define arrays ... | Zhao-PengFei35/chromium_src_4 | ui/base/nine_image_painter_factory.h | C++ | unknown | 2,017 |
// 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_OWNED_WINDOW_ANCHOR_H_
#define UI_BASE_OWNED_WINDOW_ANCHOR_H_
#include <cstdint>
#include <type_traits>
#include "ui/base/ui_base_types.h"
#include "ui/gfx/ge... | Zhao-PengFei35/chromium_src_4 | ui/base/owned_window_anchor.h | C++ | unknown | 1,827 |
// Copyright 2010 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/base/page_transition_types.h"
#include <ostream>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/types/cxx23_to_underlying.h"
namespace u... | Zhao-PengFei35/chromium_src_4 | ui/base/page_transition_types.cc | C++ | unknown | 3,390 |
// 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_PAGE_TRANSITION_TYPES_H_
#define UI_BASE_PAGE_TRANSITION_TYPES_H_
#include <stdint.h>
#include "base/component_export.h"
namespace ui {
// Types of transiti... | Zhao-PengFei35/chromium_src_4 | ui/base/page_transition_types.h | C++ | unknown | 9,840 |
// 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/base/pointer/pointer_device.h"
namespace ui {
// Platforms supporting touch link in an alternate implementation of this
// method.
TouchScreensAvailability GetTo... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device.cc | C++ | unknown | 887 |
// 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_POINTER_POINTER_DEVICE_H_
#define UI_BASE_POINTER_POINTER_DEVICE_H_
#include <tuple>
#include "base/component_export.h"
#include "build/build_config.h"
#if B... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device.h | C++ | unknown | 2,726 |
// 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/base/pointer/pointer_device.h"
#include "base/android/jni_array.h"
#include "base/check_op.h"
#include "ui/base/ui_base_jni_headers/TouchDevice_jni.h"
using base... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_android.cc | C++ | unknown | 1,696 |
// 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/pointer/pointer_device.h"
namespace ui {
TouchScreensAvailability GetTouchScreensAvailability() {
return TouchScreensAvailability::ENABLED;
}
int MaxTouc... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_ios.cc | C++ | unknown | 679 |
// 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/base/pointer/pointer_device.h"
#include "base/check_op.h"
#include "ui/events/devices/device_data_manager.h"
#if BUILDFLAG(IS_OHOS)
#include "base/ohos/sys_info_... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_linux.cc | C++ | unknown | 3,177 |
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_linux_unittest.cc | C++ | unknown | 894 |
// 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/pointer/pointer_device.h"
namespace ui {
namespace {
int available_pointer_types_for_testing = POINTER_TYPE_NONE;
int available_hover_types_for_testing = H... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_util.cc | C++ | unknown | 1,109 |
// 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/pointer/pointer_device.h"
#include "base/check_op.h"
#include "base/win/win_util.h"
#include "ui/base/win/hidden_window.h"
namespace ui {
namespace {
bool... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/pointer_device_win.cc | C++ | unknown | 3,266 |
// 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/base/pointer/touch_editing_controller.h"
namespace ui {
namespace {
TouchEditingControllerFactory* g_shared_instance = NULL;
} // namespace
TouchEditingControl... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_editing_controller.cc | C++ | unknown | 1,042 |
// 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_BASE_POINTER_TOUCH_EDITING_CONTROLLER_H_
#define UI_BASE_POINTER_TOUCH_EDITING_CONTROLLER_H_
#include "base/component_export.h"
#include "ui/base/models/simple_menu... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_editing_controller.h | C++ | unknown | 5,462 |
/*
* Copyright (c) 2024 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_editing_controller_unittest.cc | C++ | unknown | 2,353 |
// 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/pointer/touch_ui_controller.h"
#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/metrics/u... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_ui_controller.cc | C++ | unknown | 3,813 |
// 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_POINTER_TOUCH_UI_CONTROLLER_H_
#define UI_BASE_POINTER_TOUCH_UI_CONTROLLER_H_
#include <memory>
#include "base/callback_list.h"
#include "base/component_expor... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_ui_controller.h | C++ | unknown | 2,375 |
// 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 <string>
#include "base/test/bind.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/pointer/touch_ui_controller.h"
namespace ui {
namespace {
cla... | Zhao-PengFei35/chromium_src_4 | ui/base/pointer/touch_ui_controller_unittest.cc | C++ | unknown | 2,664 |
include_rules = [
"+third_party/one_euro_filter/src"
]
| Zhao-PengFei35/chromium_src_4 | ui/base/prediction/DEPS | Python | unknown | 57 |
// 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/empty_filter.h"
#include "ui/base/ui_base_features.h"
namespace ui {
EmptyFilter::EmptyFilter() {}
EmptyFilter::~EmptyFilter() {}
bool EmptyFilt... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/empty_filter.cc | C++ | unknown | 642 |
// 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_EMPTY_FILTER_H_
#define UI_BASE_PREDICTION_EMPTY_FILTER_H_
#include "base/component_export.h"
#include "ui/base/prediction/input_filter.h"
namespac... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/empty_filter.h | C++ | unknown | 1,222 |
// 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/empty_filter.h"
#include "ui/base/prediction/input_filter_unittest_helpe... | Zhao-PengFei35/chromium_src_4 | ui/base/prediction/empty_filter_unittests.cc | C++ | unknown | 1,429 |