code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ui/events/test/test_event_rewriter.h" #include "ui/events/event.h" namespace ui { namespace test { TestEventRewriter::TestEventRewriter() = default; TestEventRewr...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_rewriter.cc
C++
unknown
618
// 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_EVENTS_TEST_TEST_EVENT_REWRITER_H_ #define UI_EVENTS_TEST_TEST_EVENT_REWRITER_H_ #include <memory> #include "ui/events/event_rewriter.h" namespace ui { namespace ...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_rewriter.h
C++
unknown
1,142
// 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_EVENTS_TEST_TEST_EVENT_REWRITER_CONTINUATION_H_ #define UI_EVENTS_TEST_TEST_EVENT_REWRITER_CONTINUATION_H_ #include "ui/events/event_rewriter_continuation.h" names...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_rewriter_continuation.h
C++
unknown
921
// 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/events/test/test_event_source.h" #include "ui/events/event.h" namespace ui { namespace test { EventDispatchDetails TestEventSource::Send(Event* event) { CHECK...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_source.cc
C++
unknown
629
// 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_EVENTS_TEST_TEST_EVENT_SOURCE_H_ #define UI_EVENTS_TEST_TEST_EVENT_SOURCE_H_ #include "base/memory/raw_ptr.h" #include "ui/events/event_sink.h" #include "ui/events/...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_source.h
C++
unknown
1,218
// 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/events/test/test_event_target.h" #include <algorithm> #include <utility> #include "ui/events/event.h" #include "ui/events/event_target_iterator.h" #include "ui/e...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_target.cc
C++
unknown
2,537
// 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_EVENTS_TEST_TEST_EVENT_TARGET_H_ #define UI_EVENTS_TEST_TEST_EVENT_TARGET_H_ #include <stddef.h> #include <memory> #include <set> #include <string> #include <vecto...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_target.h
C++
unknown
2,357
// 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/events/test/test_event_targeter.h" #include "ui/events/test/test_event_target.h" namespace ui { namespace test { TestEventTargeter::TestEventTargeter(TestEventT...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_targeter.cc
C++
unknown
1,033
// 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_EVENTS_TEST_TEST_EVENT_TARGETER_H_ #define UI_EVENTS_TEST_TEST_EVENT_TARGETER_H_ #include "base/memory/raw_ptr.h" #include "ui/events/event_targeter.h" namespace u...
Zhao-PengFei35/chromium_src_4
ui/events/test/test_event_targeter.h
C++
unknown
1,411
// 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/events/test/x11_event_waiter.h" #include "base/task/single_thread_task_runner.h" #include "ui/gfx/x/x11_atom_cache.h" #include "ui/gfx/x/xproto.h" #include "ui/gf...
Zhao-PengFei35/chromium_src_4
ui/events/test/x11_event_waiter.cc
C++
unknown
1,595
// 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_EVENTS_TEST_X11_EVENT_WAITER_H_ #define UI_EVENTS_TEST_X11_EVENT_WAITER_H_ #include "base/functional/callback.h" #include "ui/gfx/x/connection.h" #include "ui/gfx/x...
Zhao-PengFei35/chromium_src_4
ui/events/test/x11_event_waiter.h
C++
unknown
891
// 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_EVENTS_TYPES_EVENT_TYPE_H_ #define UI_EVENTS_TYPES_EVENT_TYPE_H_ namespace ui { // Event types. (prefixed because of a conflict with windows headers) enum EventTyp...
Zhao-PengFei35/chromium_src_4
ui/events/types/event_type.h
C++
unknown
2,488
// 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_EVENTS_TYPES_SCROLL_INPUT_TYPE_H_ #define UI_EVENTS_TYPES_SCROLL_INPUT_TYPE_H_ namespace ui { enum class ScrollInputType { kTouchscreen = 0, kWheel, kAutoscr...
Zhao-PengFei35/chromium_src_4
ui/events/types/scroll_input_type.h
C++
unknown
437
// 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_EVENTS_TYPES_SCROLL_TYPES_H_ #define UI_EVENTS_TYPES_SCROLL_TYPES_H_ #include <stdint.h> namespace ui { enum class ScrollGranularity : uint8_t { kScrollByPrecis...
Zhao-PengFei35/chromium_src_4
ui/events/types/scroll_types.h
C++
unknown
580
// 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/events/event_utils.h" #include <windows.h> #include "testing/gtest/include/gtest/gtest.h" #include "ui/gfx/win/window_impl.h" namespace ui { namespace { class...
Zhao-PengFei35/chromium_src_4
ui/events/win/event_utils_win_unittest.cc
C++
unknown
2,116
// 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 "base/notreached.h" #include "ui/events/event_utils.h" #include "ui/events/win/events_win_utils.h" namespace ui { EventType EventTypeFromNative(const CHROME_MSG& nat...
Zhao-PengFei35/chromium_src_4
ui/events/win/events_win.cc
C++
unknown
3,530
// 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 <stdint.h> #include "base/check.h" #include "base/no_destructor.h" #include "base/notreached.h" #include "base/time/tick_clock.h" #include "base/time/time.h" #include...
Zhao-PengFei35/chromium_src_4
ui/events/win/events_win_utils.cc
C++
unknown
19,676
// 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_EVENTS_WIN_EVENTS_WIN_UTILS_H_ #define UI_EVENTS_WIN_EVENTS_WIN_UTILS_H_ #include <stdint.h> #include "base/win/windows_types.h" #include "build/build_config.h" #i...
Zhao-PengFei35/chromium_src_4
ui/events/win/events_win_utils.h
C++
unknown
5,094
// 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_EVENTS_WIN_KEYBOARD_HOOK_MONITOR_H_ #define UI_EVENTS_WIN_KEYBOARD_HOOK_MONITOR_H_ #include "base/component_export.h" namespace ui { class KeyboardHookObserver; ...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_monitor.h
C++
unknown
1,501
// 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/events/win/keyboard_hook_monitor_impl.h" #include "base/no_destructor.h" namespace ui { KeyboardHookMonitorImpl::KeyboardHookMonitorImpl() = default; KeyboardH...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_monitor_impl.cc
C++
unknown
1,666
// 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_EVENTS_WIN_KEYBOARD_HOOK_MONITOR_IMPL_H_ #define UI_EVENTS_WIN_KEYBOARD_HOOK_MONITOR_IMPL_H_ #include "base/component_export.h" #include "base/no_destructor.h" #inc...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_monitor_impl.h
C++
unknown
2,232
// 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_EVENTS_WIN_KEYBOARD_HOOK_OBSERVER_H_ #define UI_EVENTS_WIN_KEYBOARD_HOOK_OBSERVER_H_ #include "base/component_export.h" namespace ui { // Used in conjunction with...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_observer.h
C++
unknown
875
// 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/events/win/keyboard_hook_win_base.h" #include "base/logging.h" namespace ui { KeyboardHookWinBase::KeyboardHookWinBase( absl::optional<base::flat_set<DomCod...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_win_base.cc
C++
unknown
2,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_EVENTS_WIN_KEYBOARD_HOOK_WIN_BASE_H_ #define UI_EVENTS_WIN_KEYBOARD_HOOK_WIN_BASE_H_ #include <memory> #include <windows.h> #include "base/check.h" #include "base...
Zhao-PengFei35/chromium_src_4
ui/events/win/keyboard_hook_win_base.h
C++
unknown
2,862
// 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/events/win/keyboard_hook_win_base.h" #include "ui/events/event.h" #include "ui/events/keycodes/dom/dom_code.h" #include "ui/events/win/events_win_utils.h" namesp...
Zhao-PengFei35/chromium_src_4
ui/events/win/media_keyboard_hook_win.cc
C++
unknown
4,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/events/keyboard_hook.h" #include <windows.h> #include "base/functional/bind.h" #include "base/run_loop.h" #include "base/test/task_environment.h" #include "testi...
Zhao-PengFei35/chromium_src_4
ui/events/win/media_keyboard_hook_win_interactive_test.cc
C++
unknown
3,989
// 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 <memory> #include <vector> #include "base/functional/bind.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/events/event.h" #include "ui/events/keyboard_...
Zhao-PengFei35/chromium_src_4
ui/events/win/media_keyboard_hook_win_unittest.cc
C++
unknown
7,638
// 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/events/win/keyboard_hook_win_base.h" #include <utility> #include "base/logging.h" #include "third_party/abseil-cpp/absl/types/optional.h" #include "ui/events/eve...
Zhao-PengFei35/chromium_src_4
ui/events/win/modifier_keyboard_hook_win.cc
C++
unknown
13,604
// 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 <memory> #include <vector> #include "base/containers/flat_set.h" #include "base/functional/bind.h" #include "testing/gtest/include/gtest/gtest.h" #include "third_part...
Zhao-PengFei35/chromium_src_4
ui/events/win/modifier_keyboard_hook_win_unittest.cc
C++
unknown
42,670
// 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/events/win/system_event_state_lookup.h" #include <windows.h> namespace ui { namespace win { bool IsShiftPressed() { return (::GetKeyState(VK_SHIFT) & 0x8000) ...
Zhao-PengFei35/chromium_src_4
ui/events/win/system_event_state_lookup.cc
C++
unknown
1,008
// 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_EVENTS_WIN_SYSTEM_EVENT_STATE_LOOKUP_H_ #define UI_EVENTS_WIN_SYSTEM_EVENT_STATE_LOOKUP_H_ #include "ui/events/events_export.h" namespace ui { namespace win { // ...
Zhao-PengFei35/chromium_src_4
ui/events/win/system_event_state_lookup.h
C++
unknown
1,248
// 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_EVENTS_X_EVENTS_X_EXPORT_H_ #define UI_EVENTS_X_EVENTS_X_EXPORT_H_ #if defined(COMPONENT_BUILD) #if defined(WIN32) #if defined(EVENTS_X_IMPLEMENTATION) #define EVE...
Zhao-PengFei35/chromium_src_4
ui/events/x/events_x_export.h
C
unknown
731
// 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/events/x/events_x_utils.h" #include <stddef.h> #include <string.h> #include <algorithm> #include <cmath> #include "base/logging.h" #include "base/memory/singlet...
Zhao-PengFei35/chromium_src_4
ui/events/x/events_x_utils.cc
C++
unknown
32,499
// 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_EVENTS_X_EVENTS_X_UTILS_H_ #define UI_EVENTS_X_EVENTS_X_UTILS_H_ #include <stdint.h> #include "base/time/tick_clock.h" #include "base/time/time.h" #include "ui/ev...
Zhao-PengFei35/chromium_src_4
ui/events/x/events_x_utils.h
C++
unknown
4,825
// 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/events/x/x11_event_translation.h" #include <vector> #include "base/check.h" #include "base/notreached.h" #include "base/time/time.h" #include "build/build_config...
Zhao-PengFei35/chromium_src_4
ui/events/x/x11_event_translation.cc
C++
unknown
12,040
// 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_EVENTS_X_X11_EVENT_TRANSLATION_H_ #define UI_EVENTS_X_X11_EVENT_TRANSLATION_H_ #include <memory> #include "base/component_export.h" #include "ui/events/event.h" #i...
Zhao-PengFei35/chromium_src_4
ui/events/x/x11_event_translation.h
C++
unknown
1,355
include_rules = [ "+ui/base", "+ui/webui", ]
Zhao-PengFei35/chromium_src_4
ui/file_manager/DEPS
Python
unknown
49
# 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. USE_PYTHON3 = True PRESUBMIT_VERSION = '2.0.0' TEST_PATTERNS = [r'.+_test.py$'] def ChecksPatchFormatted(input_api, output_api): return input_api.canned_checks.CheckPatchFo...
Zhao-PengFei35/chromium_src_4
ui/file_manager/PRESUBMIT.py
Python
unknown
1,747
# 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. """Presubmit script for //ui/file_manager/base/gn. See http://dev.chromium.org/developers/how-tos/depottools/presubmit-scripts for more details on the presubmit API built into dep...
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/gn/PRESUBMIT.py
Python
unknown
5,473
# 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. """ This file provides some additional globals/filters for processing the file_types_data.js templates. """ def _get_extension_to_type_map(file_types): """ Gets the extes...
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/gn/custom_jinja_helper.py
Python
unknown
1,488
<!DOCTYPE html> <script type="module" src="./test_harness.js"></script>
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/js/test_harness.html
HTML
unknown
72
// 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. // Mark the test as fully loaded. The Browser Test reads this. window.__TEST_LOADED__ = false; import 'chrome://webui-test/strings.m.js'; async function run() { // Grab the...
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/js/test_harness.js
JavaScript
unknown
863
# Copyright 2022 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. from pathlib import Path GM3_SUFFIX = '_gm3.css' def _CheckGM3Counterpart(input_api, output_api): """If a CSS file (say foo.css) is included in the pa...
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/presubmit_support.py
Python
unknown
3,788
#!/usr/bin/env python3 # Copyright 2022 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. import os.path from pathlib import Path import unittest from unittest.mock import patch import sys from presubmit_support import _Che...
Zhao-PengFei35/chromium_src_4
ui/file_manager/base/presubmit_support_test.py
Python
unknown
6,223
// 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 {openWindow} from '../../common/js/api.js'; import {AsyncQueue} from '../../common/js/async_util.js'; import {FilesAppState} from '../../common/js/files_app_state.js'; ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/app_window_wrapper.js
JavaScript
unknown
2,260
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js'; import {VolumeManagerCommon} fr...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/crostini.js
JavaScript
unknown
8,709
// 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 {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js'; import {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {in...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/crostini_unittest.js
JavaScript
unknown
9,284
// 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 {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js'; import {AsyncQueue, RateLimiter} from '../../common/js/async_util.js'; import {...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/drive_sync_handler.js
JavaScript
unknown
21,808
// 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 {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {installMockChrome} from '../../common/js/mock_chrome.js'; import {Pr...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/drive_sync_handler_unittest.js
JavaScript
unknown
11,361
// 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 {util} from '../../common/js/util.js'; import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js'; import {EntryLocation} from '../../externs/entry_loca...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/entry_location_impl.js
JavaScript
unknown
2,489
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js'; import {resolveIsolatedEntries} ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_manager_base.js
JavaScript
unknown
12,985
// 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 {startIOTask} from '../../common/js/api.js'; import {ProgressCenterItem, ProgressItemState, ProgressItemType} from '../../common/js/progress_center_common.js'; import {s...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_operation_handler.js
JavaScript
unknown
9,541
// 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 {assertEquals, assertGT, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {FileOperationHandler} from './file_operation_handler.js'; import {fileO...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_operation_handler_unittest.js
JavaScript
unknown
5,294
// 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 {util} from '../../common/js/util.js'; import {FileOperationManager} from '../../externs/background/file_operation_manager.js'; import {FakeEntry} from '../../externs/fi...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_operation_manager.js
JavaScript
unknown
3,088
// 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 {loadTimeData} from 'chrome://resources/ash/common/load_time_data.m.js'; import {assertArrayEquals, assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_ass...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_operation_manager_unittest.js
JavaScript
unknown
6,595
// 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 {util} from '../../common/js/util.js'; /** * Utilities for file operations. */ const fileOperationUtil = {}; /** * Error class used to report problems with a copy o...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/file_operation_util.js
JavaScript
unknown
8,977
// 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 {FilesAppState} from '../../common/js/files_app_state.js'; import {util} from '../../common/js/util.js'; import {AppWindowWrapper} from './app_window_wrapper.js'; /** ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/launcher.js
JavaScript
unknown
1,418
// 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. /** * @fileoverview Metrics calls to start measurement of script loading. Include * this as the first script in main_background.js. */ import {metrics} from '../../common/...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/metrics_start.js
JavaScript
unknown
385
// 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. /** * Mock class for Background. */ class MockBackground { constructor() { this.fileOperationManager = new MockFileOperationManager(); this.progressCenter = new Moc...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_background.js
JavaScript
unknown
345
// 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 {Crostini} from '../../externs/background/crostini.js'; import {CrostiniImpl} from './crostini.js'; /** * Crostini shared path state handler factory for foreground t...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_crostini.js
JavaScript
unknown
502
// 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 {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js'; import {DriveSyncHandler} from '../../externs/background/drive_sync_handler.js'...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_drive_sync_handler.js
JavaScript
unknown
2,096
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {NativeEventTarget as EventTarget} from 'chrome://resources/ash/common/event_target.js'; import {FileOpe...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_file_operation_manager.js
JavaScript
unknown
3,389
// 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 {ProgressCenterItem, ProgressItemState} from '../../common/js/progress_center_common.js'; import {ProgressCenter} from '../../externs/background/progress_center.js'; ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_progress_center.js
JavaScript
unknown
1,534
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {MockEntry, MockFileSystem} from '../../common/js/mock_entry.js'; import {str, util} from '../../common/...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/mock_volume_manager.js
JavaScript
unknown
12,066
// 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 {AsyncQueue} from '../../common/js/async_util.js'; import {notifications} from '../../common/js/notifications.js'; import {ProgressCenterItem, ProgressItemState} from '....
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/progress_center.js
JavaScript
unknown
9,971
// 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. /** * @fileoverview Script loaded into the background page of a component * extension under test at runtime to populate testing functionality. */ import {assert} from 'chro...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/runtime_loaded_test_util.js
JavaScript
unknown
42,458
// 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 {FilesAppState} from '../../common/js/files_app_state.js'; import {ProgressCenterItem} from '../../common/js/progress_center_common.js'; import {util} from '../../common...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/test_util.js
JavaScript
unknown
30,894
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {metrics} from '../../common/js/metrics.js'; import {util} from '../../common/js/util.js'; import {Volum...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/test_util_base.js
JavaScript
unknown
3,890
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {FakeEntryImpl} from '../../common/js/files_app_entry_types.js'; import {str} from '../../common/js/util...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_info_impl.js
JavaScript
unknown
11,947
// 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 {ArrayDataModel} from '../../common/js/array_data_model.js'; import {VolumeInfo} from '../../externs/volume_info.js'; import {VolumeInfoList} from '../../externs/volume_...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_info_list_impl.js
JavaScript
unknown
1,650
// 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 {VolumeManager} from '../../externs/volume_manager.js'; import {VolumeManagerImpl} from './volume_manager_impl.js'; const volumeManagerFactory = (() => { /** * Th...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_manager_factory.js
JavaScript
unknown
1,652
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js'; import {NativeEventTarget as...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_manager_impl.js
JavaScript
unknown
22,668
// 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 {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {installMockChrome, MockCommandLinePrivate} from '../../common/js/moc...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_manager_unittest.js
JavaScript
unknown
24,799
// 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 {str, util} from '../../common/js/util.js'; import {VolumeManagerCommon} from '../../common/js/volume_manager_types.js'; import {VolumeInfo} from '../../externs/volume_i...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/background/js/volume_manager_util.js
JavaScript
unknown
6,869
// 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. /** * @fileoverview Helpers for APIs used within Files app. */ import {FilesAppEntry} from '../../externs/files_app_entry_interfaces.js'; import {util} from './util.js'; /...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/api.js
JavaScript
unknown
10,431
// 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. import {VolumeManager} from '../../externs/volume_manager.js'; import {storage} from './storage.js'; const appUtil = {}; /** * Save app launch data to the local storage. *...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/app_util.js
JavaScript
unknown
1,130
// 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. /** * @fileoverview This is a data model representin */ import {assert} from 'chrome://resources/ash/common/assert.js'; import {NativeEventTarget as EventTarget} from 'chrom...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/array_data_model.js
JavaScript
unknown
13,380
// 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. // clang-format off import {ArrayDataModel} from './array_data_model.js'; import {assertArrayEquals, assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; // clang...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/array_data_model_unittest.js
JavaScript
unknown
2,963
// 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. /** * Creates a class for executing several asynchronous closures in a fifo queue. * Added tasks will be started in order they were added. Tasks are run * concurrently. At m...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/async_util.js
JavaScript
unknown
12,043
// 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 {assertArrayEquals, assertEquals} from 'chrome://webui-test/chromeos/chai_assert.js'; import {AsyncQueue} from './async_util.js'; import {waitUntil} from './test_error_...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/async_util_unittest.js
JavaScript
unknown
2,678
// 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. /** * List of dialog types. * * Keep this in sync with FileManagerDialog::GetDialogTypeAsString, except * FULL_PAGE which is specific to this code. * * @enum {string} * ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/dialog_type.js
JavaScript
unknown
1,191
// 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 {assertInstanceof} from 'chrome://resources/js/assert_ts.js'; import type {CSSResult} from '../../widgets/xf_base.js'; import {decorate} from './ui.js'; /** * Function...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/dom_utils.ts
TypeScript
unknown
7,056
// 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 {FilesAppEntry} from '../../externs/files_app_entry_interfaces.js'; import {EntryType, FileData} from '../../externs/ts/state.js'; import {driveRootEntryListKey, myFiles...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/entry_utils.ts
TypeScript
unknown
6,186
// 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 {assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {setUpFileManagerOnWindow} from '../../state/for_tests.js'; import {convertEntryToF...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/entry_utils_unittest.ts
TypeScript
unknown
3,310
// 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 {GlitchType, reportGlitch} from './glitch.js'; /** * This variable is checked in several integration and unit tests, to make sure * that new code changes don't cause ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/error_counter.js
JavaScript
unknown
2,478
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {FilesAppEntry} from '../../externs/files_app_entry_interfaces.js'; import {FileData} from '../../extern...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/file_type.js
JavaScript
unknown
9,431
// 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 {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {FileType} from './file_type.js'; import {MockFileSystem} from './moc...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/file_type_unittest.js
JavaScript
unknown
9,955
// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. /** * @fileoverview Entry-like types for Files app UI. * This file defines the interface |FilesAppEntry| and some specialized * implementations of it. * * These entries ar...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/files_app_entry_types.js
JavaScript
unknown
26,080
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {Volu...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/files_app_entry_types_unittest.js
JavaScript
unknown
21,067
// 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 {DialogType} from './dialog_type.js'; import {AllowedPaths} from './volume_manager_types.js'; /** * FilesAppState is used in 2 ways: * * 1. Persist in the localStora...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/files_app_state.js
JavaScript
unknown
3,088
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {dispatchSimpleEvent} from 'chrome://resources/ash/common/cr_deprecated.js'; import {NativeEventTarget as...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/filtered_volume_manager.js
JavaScript
unknown
17,149
// 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 {assert} from 'chrome://resources/ash/common/assert.js'; import {assertEquals, assertFalse, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {Mock...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/filtered_volume_manager_unittest.js
JavaScript
unknown
14,811
// 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 {metrics} from './metrics.js'; /** * Possible error metrics. We allow for errors intercepted by an error counter. * These are unhandled errors and promise rejections....
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/glitch.js
JavaScript
unknown
1,023
// 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. /** * @fileoverview This file contains utils for working with icons. */ /** * @param {!chrome.fileManagerPrivate.VmType} vmType * @return {string} */ export function vmTy...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/icon_util.js
JavaScript
unknown
706
// 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. /** * A linked-list node which holds data for cache entry such as key, value, size. * @template T */ class LRUCacheNode { /** * @param {string} key * @param {T} valu...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/lru_cache.js
JavaScript
unknown
6,533
// 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 {assertEquals, assertTrue} from 'chrome://webui-test/chromeos/chai_assert.js'; import {LRUCache} from './lru_cache.js'; export function testLRUCache() { const cache ...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/lru_cache_unittest.js
JavaScript
unknown
5,206
// 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. /** * @fileoverview Utility methods for accessing chrome.metricsPrivate API. * * To be included as a first script in main.html */ import {metricsBase} from './metrics_base...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/metrics.js
JavaScript
unknown
612
// 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. /** * @fileoverview Utility methods for accessing chrome.metricsPrivate API. * * To be included as a first script in main.html */ const metricsBase = {}; /** * A map fro...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/metrics_base.js
JavaScript
unknown
6,897
// 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. /** * Installs a mock object to replace window.chrome in a unit test. * @param {!Object} mockChrome */ export function installMockChrome(mockChrome) { /** @suppress {const...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/mock_chrome.js
JavaScript
unknown
6,903
// 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 {util} from './util.js'; /** * Joins paths so that the two paths are connected by only 1 '/'. * @param {string} a Path. * @param {string} b Path. * @return {string}...
Zhao-PengFei35/chromium_src_4
ui/file_manager/file_manager/common/js/mock_entry.js
JavaScript
unknown
16,195