mirror of
https://github.com/imputnet/helium.git
synced 2026-08-20 00:57:32 +02:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 7330d57709 | |||
| cacfef8cd3 | |||
| 9165e47027 | |||
| 347441cf8e | |||
| f247fc71fc | |||
| a3678ba9b3 | |||
| 484921bc85 | |||
| 7021065f4a |
@@ -1 +1 @@
|
||||
147.0.7727.116
|
||||
147.0.7727.137
|
||||
|
||||
@@ -15828,7 +15828,6 @@ third_party/skia/tests/PDFTaggedLinkTest.cpp
|
||||
third_party/skia/tests/PathOpsAsWindingTest.cpp
|
||||
third_party/skia/tests/PathTest.cpp
|
||||
third_party/skia/tests/RecordingXfermodeTest.cpp
|
||||
third_party/skia/tests/RegionTest.cpp
|
||||
third_party/skia/tests/SkXmpTest.cpp
|
||||
third_party/skia/tests/StringTest.cpp
|
||||
third_party/skia/tests/TriangulatingPathRendererTests.cpp
|
||||
|
||||
@@ -274,7 +274,7 @@
|
||||
namespace blink {
|
||||
|
||||
class MemoryManagedPaintCanvas;
|
||||
@@ -1165,9 +1168,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
@@ -1168,9 +1171,22 @@ TextMetrics* BaseRenderingContext2D::mea
|
||||
TextDirection direction =
|
||||
ToTextDirection(state.GetDirection(), host, computed_style);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu.cc
|
||||
@@ -1188,11 +1188,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
@@ -1191,11 +1191,6 @@ void RenderViewContextMenu::InitMenu() {
|
||||
AppendSpellingAndSearchSuggestionItems();
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
if (editable) {
|
||||
AppendOtherEditableItems();
|
||||
}
|
||||
@@ -2299,7 +2294,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2302,7 +2297,6 @@ void RenderViewContextMenu::AppendPageIt
|
||||
IDS_CONTENT_CONTEXT_SAVEPAGEAS);
|
||||
menu_model_.AddItemWithStringId(IDC_PRINT, IDS_CONTENT_CONTEXT_PRINT);
|
||||
AppendLiveCaptionItem();
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
if (features::IsReadAnythingMenuShuffleExperimentEnabled()) {
|
||||
// This will be set to false in AppendRegionSearchItem() if it is called.
|
||||
@@ -2451,8 +2445,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
@@ -2454,8 +2448,7 @@ void RenderViewContextMenu::AppendMediaR
|
||||
|
||||
void RenderViewContextMenu::AppendReadAnythingItem() {
|
||||
// Show Read Anything option if it's not already open in the side panel.
|
||||
@@ -30,7 +30,7 @@
|
||||
menu_model_.AddItemWithStringId(IDC_CONTENT_CONTEXT_OPEN_IN_READING_MODE,
|
||||
IDS_CONTENT_CONTEXT_READING_MODE);
|
||||
}
|
||||
@@ -3726,30 +3719,9 @@ void RenderViewContextMenu::ExecuteComma
|
||||
@@ -3729,30 +3722,9 @@ void RenderViewContextMenu::ExecuteComma
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
|
||||
// static
|
||||
void RenderViewContextMenu::RegisterMenuShownCallbackForTesting(
|
||||
@@ -4115,7 +4087,7 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
@@ -4118,7 +4090,7 @@ bool RenderViewContextMenu::IsVideoFrame
|
||||
bool RenderViewContextMenu::AppendQRCodeGeneratorItem(bool for_image,
|
||||
bool draw_icon,
|
||||
bool add_separator) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
||||
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
|
||||
@@ -176,7 +176,7 @@ using PermanentFolderType = BookmarkPare
|
||||
@@ -177,7 +177,7 @@ using PermanentFolderType = BookmarkPare
|
||||
bool animations_enabled = true;
|
||||
|
||||
// Thickness of the separator (|) in dips (density-independent pixels).
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
gfx::ImageSkia* GetImageSkiaNamed(int id) {
|
||||
return ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(id);
|
||||
@@ -372,8 +372,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
@@ -373,8 +373,8 @@ class BookmarkBarView::ButtonSeparatorVi
|
||||
|
||||
public:
|
||||
ButtonSeparatorView() {
|
||||
@@ -20,7 +20,7 @@
|
||||
separator_thickness_ = kBookmarkBarSeparatorThickness;
|
||||
const gfx::Insets border_insets =
|
||||
gfx::Insets::TLBR(0, leading_padding, 0, trailing_padding);
|
||||
@@ -728,7 +728,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -729,7 +729,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
}
|
||||
|
||||
int x = GetLeadingMargin();
|
||||
@@ -29,7 +29,7 @@
|
||||
int width = View::width() - x - kBookmarkBarTrailingMargin;
|
||||
|
||||
const int button_height =
|
||||
@@ -849,7 +849,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
@@ -850,7 +850,7 @@ void BookmarkBarView::Layout(PassKey) {
|
||||
// the bookmark buttons.
|
||||
if (saved_tab_group_bar_width > 0) {
|
||||
// Possibly update the paddings of the separator
|
||||
|
||||
@@ -304,7 +304,7 @@
|
||||
#include "chrome/browser/ui/side_panel/side_panel_action_callback.h"
|
||||
#include "chrome/browser/ui/side_panel/side_panel_enums.h"
|
||||
#include "chrome/browser/ui/toolbar/pinned_toolbar/pinned_toolbar_actions_model.h"
|
||||
@@ -297,15 +298,20 @@ ToolbarController::GetDefaultResponsiveE
|
||||
@@ -306,15 +307,20 @@ ToolbarController::GetDefaultResponsiveE
|
||||
nullptr,
|
||||
#endif // BUILDFLAG(ENABLE_WEBUI_TAB_STRIP)
|
||||
kToolbarNewTabButtonElementId),
|
||||
|
||||
@@ -879,3 +879,16 @@
|
||||
|
||||
bool VerticalTabIphController::IsTabShrunk(views::View* tab) {
|
||||
if (!tab) {
|
||||
--- a/chrome/browser/contextual_cueing/contextual_cueing_helper.cc
|
||||
+++ b/chrome/browser/contextual_cueing/contextual_cueing_helper.cc
|
||||
@@ -415,10 +415,6 @@ void ContextualCueingHelper::OnCueingDec
|
||||
Profile* profile =
|
||||
Profile::FromBrowserContext(web_contents()->GetBrowserContext());
|
||||
bool vertical_tabs_enabled = false;
|
||||
-#if !BUILDFLAG(IS_ANDROID)
|
||||
- vertical_tabs_enabled =
|
||||
- profile->GetPrefs()->GetBoolean(::prefs::kVerticalTabsEnabled);
|
||||
-#endif
|
||||
|
||||
bool should_open_side_panel =
|
||||
decision_result->auto_open_eligible &&
|
||||
|
||||
@@ -81,24 +81,73 @@
|
||||
}
|
||||
|
||||
#fit {
|
||||
--- a/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.ts
|
||||
+++ b/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.ts
|
||||
@@ -58,8 +58,17 @@ export class ViewerPdfSidenavElement ext
|
||||
bookmarks: {type: Array},
|
||||
clockwiseRotations: {type: Number},
|
||||
docLength: {type: Number},
|
||||
+ iconsVisible_: {
|
||||
+ type: Boolean,
|
||||
+ reflect: true,
|
||||
+ attribute: 'icons-visible',
|
||||
+ },
|
||||
strings: {type: Object},
|
||||
- selectedTab_: {type: Number},
|
||||
+ selectedTab_: {
|
||||
+ type: Number,
|
||||
+ reflect: true,
|
||||
+ attribute: 'selected-tab',
|
||||
+ },
|
||||
tabs_: {type: Array},
|
||||
};
|
||||
}
|
||||
@@ -70,6 +79,7 @@ export class ViewerPdfSidenavElement ext
|
||||
accessor clockwiseRotations: number = 0;
|
||||
accessor docLength: number = 0;
|
||||
accessor strings: {[key: string]: string}|undefined;
|
||||
+ private accessor iconsVisible_: boolean = false;
|
||||
private accessor selectedTab_: number = 0;
|
||||
protected accessor tabs_: Tab[] = [];
|
||||
|
||||
@@ -79,6 +89,7 @@ export class ViewerPdfSidenavElement ext
|
||||
if (changedProperties.has('bookmarks') ||
|
||||
changedProperties.has('attachments')) {
|
||||
this.tabs_ = this.computeTabs_();
|
||||
+ this.iconsVisible_ = !this.hideIcons_();
|
||||
}
|
||||
}
|
||||
|
||||
--- a/chrome/browser/resources/pdf/pdf_viewer.css
|
||||
+++ b/chrome/browser/resources/pdf/pdf_viewer.css
|
||||
@@ -13,7 +13,8 @@
|
||||
* #css_wrapper_metadata_end */
|
||||
@@ -14,6 +14,8 @@
|
||||
|
||||
:host {
|
||||
- --viewer-pdf-sidenav-width: 300px;
|
||||
+ --viewer-pdf-sidenav-width: 350px;
|
||||
--viewer-pdf-sidenav-width: 300px;
|
||||
+ --viewer-pdf-sidenav-min-width: 180px;
|
||||
+ --viewer-pdf-sidenav-icons-width: 64px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: 100%;
|
||||
@@ -53,7 +54,7 @@ viewer-toolbar {
|
||||
@@ -53,7 +55,20 @@ viewer-toolbar {
|
||||
overflow: hidden;
|
||||
transition: transform 250ms cubic-bezier(.6, 0, 0, 1), visibility 250ms;
|
||||
visibility: visible;
|
||||
- width: var(--viewer-pdf-sidenav-width);
|
||||
+ max-width: var(--viewer-pdf-sidenav-width);
|
||||
+ width: var(--viewer-pdf-sidenav-min-width);
|
||||
+}
|
||||
+
|
||||
+#sidenav-container:has(viewer-pdf-sidenav[selected-tab='0'][icons-visible]) {
|
||||
+ width: calc(
|
||||
+ var(--viewer-pdf-sidenav-min-width) +
|
||||
+ var(--viewer-pdf-sidenav-icons-width));
|
||||
+}
|
||||
+
|
||||
+#sidenav-container:has(viewer-pdf-sidenav[selected-tab='1'][icons-visible]),
|
||||
+#sidenav-container:has(viewer-pdf-sidenav[selected-tab='2'][icons-visible]) {
|
||||
+ width: calc(
|
||||
+ var(--viewer-pdf-sidenav-width) +
|
||||
+ var(--viewer-pdf-sidenav-icons-width));
|
||||
}
|
||||
|
||||
#sidenav-container.floating {
|
||||
@@ -120,23 +169,51 @@
|
||||
}
|
||||
--- a/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.css
|
||||
+++ b/chrome/browser/resources/pdf/elements/viewer_pdf_sidenav.css
|
||||
@@ -17,9 +17,9 @@
|
||||
@@ -17,15 +17,14 @@
|
||||
background-color: var(--viewer-side-background-color);
|
||||
display: flex;
|
||||
height: 100%;
|
||||
- min-width: var(--viewer-pdf-sidenav-width);
|
||||
overflow: hidden;
|
||||
- width: var(--viewer-pdf-sidenav-width);
|
||||
+ max-width: var(--viewer-pdf-sidenav-width);
|
||||
+ min-width: var(--viewer-pdf-sidenav-min-width);
|
||||
+ width: 100%;
|
||||
}
|
||||
|
||||
#icons {
|
||||
@@ -33,6 +33,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
- min-width: 64px;
|
||||
+ min-width: var(--viewer-pdf-sidenav-icons-width);
|
||||
}
|
||||
|
||||
/* These are dummy styles currently - replace with real content. */
|
||||
@@ -33,6 +32,7 @@
|
||||
color: white;
|
||||
flex: 1;
|
||||
overflow-x: hidden;
|
||||
+ min-width: var(--viewer-pdf-sidenav-min-width);
|
||||
+ min-width: 0;
|
||||
}
|
||||
|
||||
#icons:not([hidden]) + #content {
|
||||
--- a/chrome/browser/resources/pdf/elements/viewer_toolbar.html
|
||||
+++ b/chrome/browser/resources/pdf/elements/viewer_toolbar.html
|
||||
@@ -96,19 +96,6 @@ import {AnnotationMode} from '../constan
|
||||
</span>` : ''}
|
||||
</div>
|
||||
<div id="end">
|
||||
-<if expr="enable_pdf_save_to_drive">
|
||||
- ${this.pdfSaveToDriveEnabled ? html`
|
||||
- <viewer-save-to-drive-controls id="save-to-drive"
|
||||
- .hasEdits="${this.hasEdits}"
|
||||
- .hasEnteredAnnotationMode="${this.hasEnteredAnnotationMode}"
|
||||
-<if expr="enable_pdf_ink2">
|
||||
- .hasInk2Edits="${this.hasInk2Edits}"
|
||||
-</if>
|
||||
- .isFormFieldFocused="${this.isFormFieldFocused_()}"
|
||||
- .progress="${this.saveToDriveProgress}"
|
||||
- .state="${this.saveToDriveState}">
|
||||
- </viewer-save-to-drive-controls>` : ''}
|
||||
-</if>
|
||||
<viewer-download-controls id="downloads"
|
||||
.hasEdits="${this.hasEdits}"
|
||||
.hasEnteredAnnotationMode="${this.hasEnteredAnnotationMode}"
|
||||
|
||||
@@ -66,7 +66,7 @@
|
||||
#include "third_party/blink/public/platform/web_input_event_result.h"
|
||||
#include "third_party/blink/renderer/bindings/core/v8/v8_drag_event_init.h"
|
||||
#include "third_party/blink/renderer/bindings/core/v8/v8_pointer_event_init.h"
|
||||
@@ -654,8 +655,14 @@ WebInputEventResult MouseEventManager::H
|
||||
@@ -679,8 +680,14 @@ WebInputEventResult MouseEventManager::H
|
||||
|
||||
bool single_click = event.Event().click_count <= 1;
|
||||
|
||||
|
||||
@@ -473,7 +473,7 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
--- a/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
||||
+++ b/chrome/browser/ui/views/bookmarks/bookmark_menu_delegate.cc
|
||||
@@ -1308,13 +1308,15 @@ void BookmarkMenuDelegate::BuildOtherNod
|
||||
@@ -1349,13 +1349,15 @@ void BookmarkMenuDelegate::BuildOtherNod
|
||||
menu->AppendMenuItem(
|
||||
IDC_SHOW_BOOKMARK_SIDE_PANEL,
|
||||
l10n_util::GetStringUTF16(IDS_BOOKMARKS_ALL_BOOKMARKS_OPEN_SIDE_PANEL),
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "components/translate/core/browser/translate_download_manager.h"
|
||||
#include "components/translate/core/browser/translate_manager.h"
|
||||
#include "components/translate/core/browser/translate_prefs.h"
|
||||
@@ -2346,6 +2347,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
@@ -2349,6 +2350,7 @@ void RenderViewContextMenu::AppendPageIt
|
||||
}
|
||||
|
||||
if (CanTranslate(/*menu_logging=*/true)) {
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
6
|
||||
7
|
||||
|
||||
Reference in New Issue
Block a user