update chromium and v8 patches
This commit is contained in:
parent
aefb8911ec
commit
ef12492d6c
78 changed files with 2816 additions and 7025 deletions
|
@ -1,5 +1,11 @@
|
|||
From 61cd6b5bc2068a3740313d7f4680ef3fcaaacb1a Mon Sep 17 00:00:00 2001
|
||||
From: Cheng Zhao <zcbenz@gmail.com>
|
||||
Date: Thu, 4 Oct 2018 14:57:02 -0700
|
||||
Subject: accelerator.patch
|
||||
|
||||
|
||||
diff --git a/ui/base/accelerators/accelerator.cc b/ui/base/accelerators/accelerator.cc
|
||||
index a6756c20f22c..53529588af27 100644
|
||||
index 7e55ef366ac8..c3fb98b426cd 100644
|
||||
--- a/ui/base/accelerators/accelerator.cc
|
||||
+++ b/ui/base/accelerators/accelerator.cc
|
||||
@@ -11,6 +11,7 @@
|
||||
|
@ -20,7 +26,7 @@ index a6756c20f22c..53529588af27 100644
|
|||
|
||||
namespace ui {
|
||||
|
||||
@@ -145,7 +144,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||
@@ -139,7 +138,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||
shortcut = KeyCodeToName(key_code_);
|
||||
#endif
|
||||
|
||||
|
@ -36,7 +42,7 @@ index a6756c20f22c..53529588af27 100644
|
|||
#if defined(OS_WIN)
|
||||
// Our fallback is to try translate the key code to a regular character
|
||||
// unless it is one of digits (VK_0 to VK_9). Some keyboard
|
||||
@@ -154,17 +161,20 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||
@@ -148,17 +155,20 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||
// accent' for '0'). For display in the menu (e.g. Ctrl-0 for the
|
||||
// default zoom level), we leave VK_[0-9] alone without translation.
|
||||
wchar_t key;
|
||||
|
@ -67,15 +73,7 @@ index a6756c20f22c..53529588af27 100644
|
|||
#endif
|
||||
}
|
||||
|
||||
@@ -221,15 +231,15 @@ base::string16 Accelerator::GetShortcutText() const {
|
||||
|
||||
base::string16 Accelerator::ApplyLongFormModifiers(
|
||||
base::string16 shortcut) const {
|
||||
if (IsShiftDown())
|
||||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_SHIFT_MODIFIER, shortcut);
|
||||
|
||||
// Note that we use 'else-if' in order to avoid using Ctrl+Alt as a shortcut.
|
||||
// See http://blogs.msdn.com/oldnewthing/archive/2004/03/29/101121.aspx for
|
||||
@@ -223,7 +233,7 @@ base::string16 Accelerator::ApplyLongFormModifiers(
|
||||
// more information.
|
||||
if (IsCtrlDown())
|
||||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_CONTROL_MODIFIER, shortcut);
|
||||
|
@ -84,7 +82,7 @@ index a6756c20f22c..53529588af27 100644
|
|||
shortcut = l10n_util::GetStringFUTF16(IDS_APP_ALT_MODIFIER, shortcut);
|
||||
|
||||
if (IsCmdDown()) {
|
||||
@@ -249,14 +256,12 @@ base::string16 Accelerator::ApplyShortFormModifiers(
|
||||
@@ -243,14 +253,12 @@ base::string16 Accelerator::ApplyShortFormModifiers(
|
||||
base::string16 shortcut) const {
|
||||
const base::char16 kCommandSymbol[] = {0x2318, 0};
|
||||
const base::char16 kCtrlSymbol[] = {0x2303, 0};
|
||||
|
@ -99,3 +97,6 @@ index a6756c20f22c..53529588af27 100644
|
|||
parts.push_back(base::string16(IsCmdDown() ? kCommandSymbol : kNoSymbol));
|
||||
parts.push_back(shortcut);
|
||||
return base::StrCat(parts);
|
||||
--
|
||||
2.17.0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue