瀏覽代碼

Updates for Chromium 96

Blaise 3 年之前
父節點
當前提交
447b177f98

+ 4 - 4
tweaks/shortcuts/macos-hotkeys-on-linux.patch

@@ -161,7 +161,7 @@
  #endif
  #if defined(OS_WIN)
      {VKEY_BACK, kAltKey, "Undo"},
-@@ -276,19 +276,19 @@ bool EditingBehavior::ShouldInsertCharac
+@@ -280,19 +280,19 @@ bool EditingBehavior::ShouldInsertCharac
    // unexpected behaviour
    if (ch < ' ')
      return false;
@@ -223,7 +223,7 @@
  
 --- a/ui/views/controls/textfield/textfield.cc
 +++ b/ui/views/controls/textfield/textfield.cc
-@@ -249,9 +249,9 @@ Textfield::Textfield()
+@@ -240,9 +240,9 @@ Textfield::Textfield()
    // These allow BrowserView to pass edit commands from the Chrome menu to us
    // when we're focused by simply asking the FocusManager to
    // ProcessAccelerator() with the relevant accelerators.
@@ -236,7 +236,7 @@
  #endif
  
    // Sometimes there are additional ignored views, such as the View representing
-@@ -2145,46 +2145,47 @@ ui::TextEditCommand Textfield::GetComman
+@@ -2123,46 +2123,47 @@ ui::TextEditCommand Textfield::GetComman
  #endif
    const bool control = event.IsControlDown() || event.IsCommandDown();
    const bool alt = event.IsAltDown() || event.IsAltGrDown();
@@ -294,7 +294,7 @@
                       : ui::TextEditCommand::MOVE_LEFT_AND_MODIFY_SELECTION;
      case ui::VKEY_HOME:
        if (shift) {
-@@ -2255,12 +2256,12 @@ ui::TextEditCommand Textfield::GetComman
+@@ -2233,12 +2234,12 @@ ui::TextEditCommand Textfield::GetComman
        if (shift && control)
          return ui::TextEditCommand::DELETE_TO_END_OF_LINE;
  #endif

+ 1 - 1
tweaks/visual/hide-toolbar-infobar-separator.patch

@@ -2,7 +2,7 @@
 
 --- a/chrome/browser/ui/views/frame/browser_view_layout.cc
 +++ b/chrome/browser/ui/views/frame/browser_view_layout.cc
-@@ -461,8 +461,9 @@ int BrowserViewLayout::LayoutBookmarkAnd
+@@ -466,8 +466,9 @@ int BrowserViewLayout::LayoutBookmarkAnd
  
    if (delegate_->IsContentsSeparatorEnabled() &&
        (toolbar_->GetVisible() || bookmark_bar_) && top > 0) {

+ 2 - 2
tweaks/visual/remove-focusring-from-locationbar.patch

@@ -4,9 +4,9 @@
 
 --- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
 +++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
-@@ -167,20 +167,6 @@ LocationBarView::LocationBarView(Browser
-       delegate_(delegate),
+@@ -169,20 +169,6 @@ LocationBarView::LocationBarView(Browser
        is_popup_mode_(is_popup_mode) {
+   set_suppress_default_focus_handling();
    if (!is_popup_mode_) {
 -    views::FocusRing::Install(this);
 -    views::FocusRing::Get(this)->SetHasFocusPredicate([](View* view) -> bool {

+ 1 - 1
tweaks/visual/thinner-tabbar-toolbar-bookmarkbar-downloadbar.patch

@@ -73,7 +73,7 @@
    return gfx::Insets();
 --- a/chrome/browser/ui/views/download/download_item_view.cc
 +++ b/chrome/browser/ui/views/download/download_item_view.cc
-@@ -130,7 +130,7 @@ constexpr int kProgressIndicatorSize = 2
+@@ -129,7 +129,7 @@ constexpr int kProgressIndicatorSize = 2
  
  // The vertical distance between the item's visual upper bound (as delineated
  // by the separator on the right) and the edge of the shelf.