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 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/clipboard_util_mac.h" #include <AppKit/AppKit.h> #include <CoreServices/CoreServices.h> // pre-macOS 11 #include <UniformTypeI...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_util_mac.mm
Objective-C++
unknown
16,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. #import "ui/base/clipboard/clipboard_util_mac.h" #include "base/mac/mac_util.h" #include "base/mac/scoped_nsobject.h" #include "base/memory/ref_counted.h" #include "build/buil...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_util_mac_unittest.mm
Objective-C++
unknown
4,667
// 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/clipboard/clipboard_util_win.h" #include <shellapi.h> #include <wininet.h> // For INTERNET_MAX_URL_LENGTH. #include <wrl/client.h> #include <limits> #inclu...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_util_win.cc
C++
unknown
37,942
// 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_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ #define UI_BASE_CLIPBOARD_CLIPBOARD_UTIL_WIN_H_ #include <shlobj.h> #include <stddef.h> #include <string> #include <unordered_m...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_util_win.h
C++
unknown
5,299
// 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/base/clipboard/clipboard_util_win.h" #include "testing/platform_test.h" namespace ui { namespace { using ClipboardUtilWinTest = PlatformTest; TEST_F(ClipboardU...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_util_win_unittest.cc
C++
unknown
4,135
// 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. // Many of these functions are based on those found in // webkit/port/platform/PasteboardWin.cpp #include "ui/base/clipboard/clipboard_win.h" #include <objidl.h> #include <sh...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_win.cc
C++
unknown
31,850
// 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_CLIPBOARD_CLIPBOARD_WIN_H_ #define UI_BASE_CLIPBOARD_CLIPBOARD_WIN_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include "ui/base/clipboard/c...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/clipboard_win.h
C++
unknown
5,586
// 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. // // TODO(dcheng): For efficiency reasons, consider passing custom data around // as a vector instead. It allows us to append a // std::pair<std::u16string, std::u16string> and...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/custom_data_helper.cc
C++
unknown
3,425
// 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_CLIPBOARD_CUSTOM_DATA_HELPER_H_ #define UI_BASE_CLIPBOARD_CUSTOM_DATA_HELPER_H_ #include <stddef.h> #include <string> #include <unordered_map> #include <vecto...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/custom_data_helper.h
C++
unknown
1,774
// 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/clipboard/custom_data_helper.h" #include <utility> #include "base/pickle.h" #include "base/strings/utf_string_conversions.h" #include "testing/gtest/include...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/custom_data_helper_unittest.cc
C++
unknown
4,447
// 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/clipboard/file_info.h" #include "base/strings/escape.h" #include "base/strings/string_split.h" #include "base/strings/string_util.h" #include "base/strings/u...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/file_info.cc
C++
unknown
5,811
// 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_CLIPBOARD_FILE_INFO_H_ #define UI_BASE_CLIPBOARD_FILE_INFO_H_ #include <string> #include "base/component_export.h" #include "base/files/file_path.h" #include ...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/file_info.h
C++
unknown
1,587
// 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 "base/strings/string_piece.h" #include "ui/base/clipboard/file_info.h" namespace ui { // Entry point for LibFuzzer. extern "C" int LLVMFuzzerTestOneInput(const uint8...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/file_info_fuzzer.cc
C++
unknown
526
// 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/clipboard/file_info.h" #include <string> #include "base/files/file_path.h" #include "base/strings/string_util.h" #include "build/build_config.h" #include "t...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/file_info_unittest.cc
C++
unknown
4,077
/* * Copyright (c) 2022 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/clipboard/ohos/clip_board_image_data_adapter_impl.cc
C++
unknown
1,959
/* * Copyright (c) 2022 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/clipboard/ohos/clip_board_image_data_adapter_impl.h
C++
unknown
1,900
// Copyright 2019 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/clipboard_format_type.h" #include "base/no_destructor.h" #include "base/strings/strcat.h" #include "base/strings/string_numbe...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/ohos/clipboard_format_type_ohos.cc
C++
unknown
3,954
// Copyright 2022 The Huawei Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/ohos/clipboard_ohos.h" #include "ui/base/clipboard/ohos/clipboard_ohos_read_data.h" #include "ui/base/clipboard/ohos/clip_board_...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/ohos/clipboard_ohos.cc
C++
unknown
32,354
// Copyright 2022 The Huawei Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_OHOS_H_ #define UI_BASE_CLIPBOARD_CLIPBOARD_OHOS_H_ #include "ui/base/clipboard/clipboard.h" #include "ohos_nweb/includ...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/ohos/clipboard_ohos.h
C++
unknown
6,501
// Copyright 2022 The Huawei Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/clipboard/ohos/clipboard_ohos_read_data.h" #include <map> #include "base/files/file_path.h" #include "base/files/file_util.h" #include "...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/ohos/clipboard_ohos_read_data.cc
C++
unknown
2,608
// Copyright 2022 The Huawei Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_CLIPBOARD_CLIPBOARD_OHOS_READ_DATA_H_ #define UI_BASE_CLIPBOARD_CLIPBOARD_OHOS_READ_DATA_H_ #include "base/files/file_util.h" #include "ui/...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/ohos/clipboard_ohos_read_data.h
C++
unknown
1,827
/* * 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/clipboard/ohos/clipboard_ohos_read_data_unittest.cc
C++
unknown
16,470
/* * 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/clipboard/ohos/clipboard_ohos_unittest.cc
C++
unknown
34,142
// 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/clipboard/scoped_clipboard_writer.h" #include <memory> #include <utility> #include "base/json/json_writer.h" #include "base/pickle.h" #include "base/strings/...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/scoped_clipboard_writer.cc
C++
unknown
12,939
// 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_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ #define UI_BASE_CLIPBOARD_SCOPED_CLIPBOARD_WRITER_H_ #include <string> #include "base/component_export.h" #include "base/...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/scoped_clipboard_writer.h
C++
unknown
6,393
/* * 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/clipboard/scoped_clipboard_writer_unittest.cc
C++
unknown
2,454
// 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/clipboard/test/clipboard_test_util.h" #include <vector> #include "base/run_loop.h" #include "base/synchronization/waitable_event.h" #include "base/test/bind...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/test/clipboard_test_util.cc
C++
unknown
1,171
// 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_CLIPBOARD_TEST_CLIPBOARD_TEST_UTIL_H_ #define UI_BASE_CLIPBOARD_TEST_CLIPBOARD_TEST_UTIL_H_ #include <cstdint> #include <vector> class SkBitmap; namespace ui...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/test/clipboard_test_util.h
C++
unknown
649
// 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/clipboard/test/test_clipboard.h" #include <stddef.h> #include <memory> #include <utility> #include "base/containers/contains.h" #include "base/memory/ptr_uti...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/test/test_clipboard.cc
C++
unknown
18,549
// 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_CLIPBOARD_TEST_TEST_CLIPBOARD_H_ #define UI_BASE_CLIPBOARD_TEST_TEST_CLIPBOARD_H_ #include <stddef.h> #include <stdint.h> #include <memory> #include <string> ...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/test/test_clipboard.h
C++
unknown
7,670
// 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/clipboard/test/test_clipboard.h" #include "base/test/task_environment.h" #include "testing/gtest/include/gtest/gtest.h" namespace ui { namespace { base::t...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/test/test_clipboard_unittest.cc
C++
unknown
1,199
// 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/clipboard/url_file_parser.h" #include <string> #include <vector> #include "base/containers/span.h" #include "base/strings/string_piece.h" #include "base/str...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/url_file_parser.cc
C++
unknown
2,816
// 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_CLIPBOARD_URL_FILE_PARSER_H_ #define UI_BASE_CLIPBOARD_URL_FILE_PARSER_H_ #include <cstddef> #include <string> #include "base/strings/string_piece_forward.h" ...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/url_file_parser.h
C++
unknown
1,192
// 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 "base/strings/string_piece.h" #include "ui/base/clipboard/url_file_parser.h" // Entry point for LibFuzzer. extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, ...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/url_file_parser_fuzzer.cc
C++
unknown
523
// 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/clipboard/url_file_parser.h" #include <tuple> #include "base/strings/string_piece.h" #include "testing/gtest/include/gtest/gtest.h" namespace ui::clipboard...
Zhao-PengFei35/chromium_src_4
ui/base/clipboard/url_file_parser_unittest.cc
C++
unknown
2,933
// 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_COCOA_ACCESSIBILITY_FOCUS_OVERRIDER_H_ #define UI_BASE_COCOA_ACCESSIBILITY_FOCUS_OVERRIDER_H_ #include "base/component_export.h" #include "base/memory/raw_ptr....
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/accessibility_focus_overrider.h
C++
unknown
2,779
// 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/cocoa/accessibility_focus_overrider.h" #import <AppKit/AppKit.h> #import <Foundation/Foundation.h> #import <objc/runtime.h> namespace ui { namespace { Acce...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/accessibility_focus_overrider.mm
Objective-C++
unknown
1,626
// 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_COCOA_ANIMATION_UTILS_H_ #define UI_BASE_COCOA_ANIMATION_UTILS_H_ #include "build/build_config.h" #if BUILDFLAG(IS_MAC) #import <Cocoa/Cocoa.h> #endif #impor...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/animation_utils.h
Objective-C
unknown
1,832
// 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_COCOA_APPKIT_UTILS_H_ #define UI_BASE_COCOA_APPKIT_UTILS_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" namespace ui { // Whether a force-cli...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/appkit_utils.h
Objective-C
unknown
614
// 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. #import "ui/base/cocoa/appkit_utils.h" #include <cmath> #include "base/mac/mac_util.h" #include "ui/base/resource/resource_bundle.h" namespace { // Double-click in window t...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/appkit_utils.mm
Objective-C++
unknown
1,092
// 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_COCOA_BASE_VIEW_H_ #define UI_BASE_COCOA_BASE_VIEW_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" #include "base/mac/scoped_nsobject.h" #import...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/base_view.h
Objective-C
unknown
2,198
// 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/cocoa/base_view.h" #include "base/check_op.h" #include "base/mac/mac_util.h" NSString* kViewDidBecomeFirstResponder = @"Chromium.kViewDidBecomeFirstResp...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/base_view.mm
Objective-C++
unknown
5,787
// 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. #import <Cocoa/Cocoa.h> #include "base/mac/scoped_nsobject.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/platform_test.h" #include "ui/base/cocoa/base_vi...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/base_view_unittest.mm
Objective-C++
unknown
1,773
// 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_COCOA_BUBBLE_CLOSER_H_ #define UI_BASE_COCOA_BUBBLE_CLOSER_H_ #include <memory> #include "base/component_export.h" #include "base/functional/callback.h" #incl...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/bubble_closer.h
C++
unknown
1,296
// 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/cocoa/bubble_closer.h" #import <AppKit/AppKit.h> #include <memory> #include "base/memory/weak_ptr.h" namespace ui { struct BubbleCloser::ObjCStorage { ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/bubble_closer.mm
Objective-C++
unknown
2,146
// 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/cocoa/bubble_closer.h" #include "base/functional/bind.h" #import "ui/base/test/cocoa_helper.h" #import "ui/base/test/menu_test_observer.h" #import "ui/events...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/bubble_closer_unittest.mm
Objective-C++
unknown
4,449
// 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_COCOA_COCOA_BASE_UTILS_H_ #define UI_BASE_COCOA_COCOA_BASE_UTILS_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" #include "ui/base/window_open_d...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/cocoa_base_utils.h
Objective-C
unknown
1,156
// 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/cocoa/cocoa_base_utils.h" #include "ui/base/window_open_disposition_utils.h" #include "ui/events/cocoa/cocoa_event_utils.h" namespace ui { WindowOpenDispos...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/cocoa_base_utils.mm
Objective-C++
unknown
752
// 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/cocoa/cocoa_base_utils.h" #import <objc/objc-class.h> #import "base/mac/scoped_objc_class_swizzler.h" #include "testing/gtest/include/gtest/gtest.h" #includ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/cocoa_base_utils_unittest.mm
Objective-C++
unknown
2,774
// 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_COCOA_COMMAND_DISPATCHER_H_ #define UI_BASE_COCOA_COMMAND_DISPATCHER_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" #import "base/mac/scoped_ns...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/command_dispatcher.h
Objective-C
unknown
6,584
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/command_dispatcher.h" #include "base/auto_reset.h" #include "base/check_op.h" #include "base/notreached.h" #include "base/trace_event/trace_event.h" #im...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/command_dispatcher.mm
Objective-C++
unknown
11,128
// 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_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_ #define UI_BASE_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_ANIMATION_H_ #import <Cocoa/Cocoa.h> #inc...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/constrained_window/constrained_window_animation.h
Objective-C
unknown
1,192
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/constrained_window/constrained_window_animation.h" #include <stdint.h> #include <stdlib.h> #include "base/files/file_path.h" #include "base/location.h"...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/constrained_window/constrained_window_animation.mm
Objective-C++
unknown
11,896
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/constrained_window/constrained_window_animation.h" #include <memory> #include "base/mac/scoped_nsobject.h" #import "ui/base/test/cocoa_helper.h" // Th...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/constrained_window/constrained_window_animation_unittest.mm
Objective-C++
unknown
2,224
// 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_COCOA_CURSOR_UTILS_H_ #define UI_BASE_COCOA_CURSOR_UTILS_H_ #import <AppKit/AppKit.h> #include "base/component_export.h" namespace ui { class Cursor; COMPO...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/cursor_utils.h
Objective-C
unknown
456
// 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/cocoa/cursor_utils.h" #import <AppKit/AppKit.h> #include <stdint.h> #include "base/check.h" #include "base/mac/mac_util.h" #include "base/mac/scoped_cftyper...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/cursor_utils.mm
Objective-C++
unknown
10,703
// 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_COCOA_DEFAULTS_UTILS_H_ #define UI_BASE_COCOA_DEFAULTS_UTILS_H_ #include "base/component_export.h" #include "base/time/time.h" #include "third_party/abseil-cpp...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/defaults_utils.h
C++
unknown
757
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/base/cocoa/defaults_utils.h" #include <AppKit/AppKit.h> #include "base/time/time.h" #include "third_party/abseil-cpp/absl/types/optional.h" namespace { bool& B...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/defaults_utils.mm
Objective-C++
unknown
2,978
// 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/cocoa/defaults_utils.h" #include <AppKit/AppKit.h> #include "base/time/time.h" #import "ui/base/test/cocoa_helper.h" namespace ui::cocoa { namespace { con...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/defaults_utils_unittest.mm
Objective-C++
unknown
7,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_BASE_COCOA_FIND_PASTEBOARD_H_ #define UI_BASE_COCOA_FIND_PASTEBOARD_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" #include "base/mac/scoped_nsobjec...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/find_pasteboard.h
Objective-C
unknown
1,709
// Copyright 2009 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/find_pasteboard.h" #include "base/check.h" #include "base/strings/sys_string_conversions.h" NSString* kFindPasteboardChangedNotification = @"kFindP...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/find_pasteboard.mm
Objective-C++
unknown
2,224
// 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_COCOA_FLIPPED_VIEW_H_ #define UI_BASE_COCOA_FLIPPED_VIEW_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" // A view where the Y axis is flipped ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/flipped_view.h
Objective-C
unknown
675
// 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. #import "ui/base/cocoa/flipped_view.h" @implementation FlippedView - (BOOL)isFlipped { return YES; } @end
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/flipped_view.mm
Objective-C++
unknown
255
// 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_COCOA_MENU_CONTROLLER_H_ #define UI_BASE_COCOA_MENU_CONTROLLER_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" #include "base/mac/scoped_nsobje...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/menu_controller.h
Objective-C
unknown
3,441
// 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. #import "ui/base/cocoa/menu_controller.h" #include "base/check_op.h" #include "base/functional/bind.h" #include "base/mac/foundation_util.h" #include "base/numerics/safe_conve...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/menu_controller.mm
Objective-C++
unknown
13,441
// 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 "base/memory/raw_ptr.h" #import <Cocoa/Cocoa.h> #include "base/run_loop.h" #include "base/strings/sys_string_conversions.h" #include "base/strings/utf_string_convers...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/menu_controller_unittest.mm
Objective-C++
unknown
26,745
// 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_COCOA_NSMENU_ADDITIONS_H_ #define UI_BASE_COCOA_NSMENU_ADDITIONS_H_ #import <Cocoa/Cocoa.h> @interface NSMenu (ChromeAdditions) // Sets a block that cr_menuI...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenu_additions.h
Objective-C
unknown
1,343
// 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. #import "ui/base/cocoa/nsmenu_additions.h" #include "base/check.h" #include "base/mac/scoped_nsobject.h" #import "ui/base/cocoa/nsmenuitem_additions.h" namespace { typedef v...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenu_additions.mm
Objective-C++
unknown
3,003
// 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. #import "ui/base/cocoa/nsmenu_additions.h" #include "base/mac/scoped_nsobject.h" #include "base/test/gtest_util.h" #include "testing/gtest/include/gtest/gtest.h" @interface N...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenu_additions_unittest.mm
Objective-C++
unknown
8,725
// Copyright 2009 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_COCOA_NSMENUITEM_ADDITIONS_H_ #define UI_BASE_COCOA_NSMENUITEM_ADDITIONS_H_ #import <Cocoa/Cocoa.h> #include "base/component_export.h" @interface NSMenuItem ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenuitem_additions.h
Objective-C
unknown
1,778
// Copyright 2009 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/nsmenuitem_additions.h" #include <Carbon/Carbon.h> #include "base/check.h" #include "base/mac/scoped_cftyperef.h" #include "ui/events/keycodes/keyboard...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenuitem_additions.mm
Objective-C++
unknown
11,515
// 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. #import "ui/base/cocoa/nsmenuitem_additions.h" #include <Carbon/Carbon.h> #include <ostream> #include "base/mac/foundation_util.h" #include "base/mac/scoped_nsobject.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nsmenuitem_additions_unittest.mm
Objective-C++
unknown
30,009
// 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/cocoa/nswindow_test_util.h" namespace ui { NSWindowFullscreenNotificationWaiter::NSWindowFullscreenNotificationWaiter( gfx::NativeWindow window) : w...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nswindow_test_util.cc
C++
unknown
1,981
// 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_COCOA_NSWINDOW_TEST_UTIL_H_ #define UI_BASE_COCOA_NSWINDOW_TEST_UTIL_H_ #include <memory> #include "base/component_export.h" #include "base/run_loop.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/nswindow_test_util.h
C++
unknown
1,709
// 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_COCOA_PERMISSIONS_UTILS_H_ #define UI_BASE_COCOA_PERMISSIONS_UTILS_H_ #include "base/component_export.h" namespace ui { // Starting on macOS 10.15, the abili...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/permissions_utils.h
C++
unknown
1,472
// 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/cocoa/permissions_utils.h" #include <CoreGraphics/CoreGraphics.h> #include <Foundation/Foundation.h> #include "base/mac/foundation_util.h" #include "base/ma...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/permissions_utils.mm
Objective-C++
unknown
4,119
// 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_COCOA_QUARTZ_UTIL_H_ #define UI_BASE_COCOA_QUARTZ_UTIL_H_ #include "base/component_export.h" namespace ui { // Calls +[CATransaction begin]. COMPONENT_EXPORT...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/quartz_util.h
C++
unknown
507
// 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/cocoa/quartz_util.h" #include <QuartzCore/QuartzCore.h> namespace ui { void BeginCATransaction() { [CATransaction begin]; } void CommitCATransaction() {...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/quartz_util.mm
Objective-C++
unknown
369
// 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_COCOA_REMOTE_ACCESSIBILITY_API_H_ #define UI_BASE_COCOA_REMOTE_ACCESSIBILITY_API_H_ #import <Cocoa/Cocoa.h> #include <vector> #include "base/component_export....
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/remote_accessibility_api.h
Objective-C
unknown
1,090
// 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/cocoa/remote_accessibility_api.h" namespace ui { // static std::vector<uint8_t> RemoteAccessibility::GetTokenForLocalElement(id element) { NSData* data = ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/remote_accessibility_api.mm
Objective-C++
unknown
1,046
// 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_COCOA_REMOTE_LAYER_API_H_ #define UI_BASE_COCOA_REMOTE_LAYER_API_H_ #include <stdint.h> #include "base/component_export.h" #include "build/build_config.h" #i...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/remote_layer_api.h
Objective-C
unknown
2,553
// 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/cocoa/remote_layer_api.h" #include "base/feature_list.h" #include <objc/runtime.h> namespace ui { namespace { // Control use of cross-process CALayers to ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/remote_layer_api.mm
Objective-C++
unknown
1,843
// 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_COCOA_SECURE_PASSWORD_INPUT_H_ #define UI_BASE_COCOA_SECURE_PASSWORD_INPUT_H_ #include "base/component_export.h" namespace ui { // Enables the secure passwor...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/secure_password_input.h
C++
unknown
861
// 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. #import "ui/base/cocoa/secure_password_input.h" #import <Carbon/Carbon.h> #include "base/check_op.h" namespace { // Used to protect from out-of-order calls to enabling/disa...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/secure_password_input.mm
Objective-C++
unknown
1,695
// 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_COCOA_TEXT_SERVICES_CONTEXT_MENU_H_ #define UI_BASE_COCOA_TEXT_SERVICES_CONTEXT_MENU_H_ #include <string> #include "base/component_export.h" #include "base/i1...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/text_services_context_menu.h
C++
unknown
3,105
// 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/cocoa/text_services_context_menu.h" #import <AppKit/AppKit.h> #include <utility> #include "base/strings/sys_string_conversions.h" #include "ui/base/l10n/l1...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/text_services_context_menu.mm
Objective-C++
unknown
5,604
// 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_COCOA_TOOL_TIP_BASE_VIEW_H_ #define UI_BASE_COCOA_TOOL_TIP_BASE_VIEW_H_ #include "base/memory/raw_ptr.h" #import <AppKit/AppKit.h> #include "base/component_e...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/tool_tip_base_view.h
Objective-C
unknown
1,101
// Copyright 2015 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/tool_tip_base_view.h" #include "base/check.h" #include "base/notreached.h" // Below is the nasty tooltip stuff -- copied from WebKit's WebHTMLView.mm /...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/tool_tip_base_view.mm
Objective-C++
unknown
10,205
// 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_COCOA_TOUCH_BAR_UTIL_H_ #define UI_BASE_COCOA_TOUCH_BAR_UTIL_H_ #import <Cocoa/Cocoa.h> #include <os/availability.h> #include "base/component_export.h" names...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/touch_bar_util.h
Objective-C
unknown
664
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/touch_bar_util.h" #include "base/mac/foundation_util.h" #include "base/strings/sys_string_conversions.h" namespace ui { NSString* GetTouchBarId(NSStri...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/touch_bar_util.mm
Objective-C++
unknown
697
// Copyright 2017 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/touch_bar_util.h" #include "base/mac/foundation_util.h" #include "testing/gtest/include/gtest/gtest.h" #include "testing/platform_test.h" #import "ui/ba...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/touch_bar_util_unittest.mm
Objective-C++
unknown
970
// 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_COCOA_TRACKING_AREA_H_ #define UI_BASE_COCOA_TRACKING_AREA_H_ #import <AppKit/AppKit.h> #include "base/component_export.h" #include "base/mac/scoped_nsobject....
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/tracking_area.h
Objective-C
unknown
1,966
// 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. #import "ui/base/cocoa/tracking_area.h" #include "base/check.h" // NSTrackingArea does not retain its |owner| so CrTrackingArea wraps the real // owner in this proxy, which c...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/tracking_area.mm
Objective-C++
unknown
3,130
// Copyright 2011 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #import "ui/base/cocoa/tracking_area.h" #include "base/mac/scoped_nsobject.h" #import "ui/base/test/cocoa_helper.h" // A test object that counts the number of times a message ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/tracking_area_unittest.mm
Objective-C++
unknown
2,322
// 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_COCOA_USER_INTERFACE_ITEM_COMMAND_HANDLER_H_ #define UI_BASE_COCOA_USER_INTERFACE_ITEM_COMMAND_HANDLER_H_ #import <Cocoa/Cocoa.h> // Used by CommandDispatchin...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/user_interface_item_command_handler.h
Objective-C
unknown
1,595
// 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_COCOA_VIEWS_HOSTABLE_H_ #define UI_BASE_COCOA_VIEWS_HOSTABLE_H_ #include "base/component_export.h" #include "ui/gfx/geometry/rect.h" #include "ui/gfx/native_wi...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/views_hostable.h
Objective-C
unknown
3,208
// 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_COCOA_WINDOW_SIZE_CONSTANTS_H_ #define UI_BASE_COCOA_WINDOW_SIZE_CONSTANTS_H_ #include "base/component_export.h" #import <Foundation/Foundation.h> namespace ...
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/window_size_constants.h
Objective-C
unknown
546
// 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/cocoa/window_size_constants.h" namespace ui { const NSRect kWindowSizeDeterminedLater = { {0, 0}, {1, 1} }; } // namespace ui
Zhao-PengFei35/chromium_src_4
ui/base/cocoa/window_size_constants.mm
Objective-C++
unknown
292
// 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/cursor/cursor.h" #include <utility> #include "base/check_op.h" #include "third_party/skia/include/core/SkBitmap.h" #include "ui/gfx/geometry/point.h" #inclu...
Zhao-PengFei35/chromium_src_4
ui/base/cursor/cursor.cc
C++
unknown
2,358
// Copyright 2012 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef UI_BASE_CURSOR_CURSOR_H_ #define UI_BASE_CURSOR_CURSOR_H_ #include <vector> #include "base/component_export.h" #include "base/memory/scoped_refptr.h" #include "third_...
Zhao-PengFei35/chromium_src_4
ui/base/cursor/cursor.h
C++
unknown
3,173