@vscodium/native-keymap 3.3.7-258412
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -0
- package/.release-it.yml +8 -0
- package/LICENSE +22 -0
- package/README.md +82 -0
- package/ThirdPartyNotices.txt +42 -0
- package/binding.gyp +92 -0
- package/collected-artifacts/native-keymap-darwin-arm64/native-keymap-3.3.7-258412-darwin-arm64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-darwin-arm64/native-keymap-3.3.7-258412-darwin-arm64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-darwin-x64/native-keymap-3.3.7-258412-darwin-x64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-darwin-x64/native-keymap-3.3.7-258412-darwin-x64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-arm64/native-keymap-3.3.7-258412-linux-arm64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-arm64/native-keymap-3.3.7-258412-linux-arm64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-armhf/native-keymap-3.3.7-258412-linux-armhf.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-armhf/native-keymap-3.3.7-258412-linux-armhf.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-loong64/native-keymap-3.3.7-258412-linux-loong64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-loong64/native-keymap-3.3.7-258412-linux-loong64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-ppc64le/native-keymap-3.3.7-258412-linux-ppc64le.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-ppc64le/native-keymap-3.3.7-258412-linux-ppc64le.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-riscv64/native-keymap-3.3.7-258412-linux-riscv64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-riscv64/native-keymap-3.3.7-258412-linux-riscv64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-s390x/native-keymap-3.3.7-258412-linux-s390x.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-s390x/native-keymap-3.3.7-258412-linux-s390x.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-linux-x64/native-keymap-3.3.7-258412-linux-x64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-linux-x64/native-keymap-3.3.7-258412-linux-x64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-win32-arm64/native-keymap-3.3.7-258412-win32-arm64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-win32-arm64/native-keymap-3.3.7-258412-win32-arm64.tar.gz.sha256 +1 -0
- package/collected-artifacts/native-keymap-win32-x64/native-keymap-3.3.7-258412-win32-x64.tar.gz +0 -0
- package/collected-artifacts/native-keymap-win32-x64/native-keymap-3.3.7-258412-win32-x64.tar.gz.sha256 +1 -0
- package/deps/chromium/dom_code_data.inc +618 -0
- package/deps/chromium/keyboard_codes.h +23 -0
- package/deps/chromium/macros.h +32 -0
- package/deps/chromium/x/keysym_to_unicode.cc +896 -0
- package/deps/chromium/x/keysym_to_unicode.h +26 -0
- package/index.d.ts +70 -0
- package/index.js +70 -0
- package/package.json +25 -0
- package/release/native-keymap-3.3.7-258412-darwin-arm64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-darwin-arm64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-darwin-x64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-darwin-x64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-arm64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-arm64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-armhf.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-armhf.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-loong64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-loong64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-ppc64le.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-ppc64le.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-riscv64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-riscv64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-s390x.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-s390x.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-linux-x64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-linux-x64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-win32-arm64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-win32-arm64.tar.gz.sha256 +1 -0
- package/release/native-keymap-3.3.7-258412-win32-x64.tar.gz +0 -0
- package/release/native-keymap-3.3.7-258412-win32-x64.tar.gz.sha256 +1 -0
- package/src/common.h +92 -0
- package/src/keyboard_mac.mm +209 -0
- package/src/keyboard_win.cc +476 -0
- package/src/keyboard_x.cc +407 -0
- package/src/keymapping.cc +147 -0
- package/src/keymapping.h +65 -0
- package/src/string_conversion.cc +67 -0
- package/src/string_conversion.h +18 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Copyright 2014 The Chromium Authors. All rights reserved.
|
|
2
|
+
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
+
// found in the LICENSE file.
|
|
4
|
+
|
|
5
|
+
// This file contains macros and macro-like constructs (e.g., templates) that
|
|
6
|
+
// are commonly used throughout Chromium source. (It may also contain things
|
|
7
|
+
// that are closely related to things that are commonly used that belong in this
|
|
8
|
+
// file.)
|
|
9
|
+
|
|
10
|
+
#ifndef BASE_MACROS_H_
|
|
11
|
+
#define BASE_MACROS_H_
|
|
12
|
+
|
|
13
|
+
#include <stddef.h> // For size_t.
|
|
14
|
+
#include <string.h> // For memcpy.
|
|
15
|
+
|
|
16
|
+
namespace base {
|
|
17
|
+
|
|
18
|
+
// C++14 implementation of C++17's std::size():
|
|
19
|
+
// http://en.cppreference.com/w/cpp/iterator/size
|
|
20
|
+
template <typename Container>
|
|
21
|
+
constexpr auto size(const Container& c) -> decltype(c.size()) {
|
|
22
|
+
return c.size();
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
template <typename T, size_t N>
|
|
26
|
+
constexpr size_t size(const T (&array)[N]) noexcept {
|
|
27
|
+
return N;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
#endif // BASE_MACROS_H_
|