Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify customization of WebUIBubbleManager #23049

Merged
merged 1 commit into from
Apr 17, 2024

Conversation

zenparsing
Copy link
Collaborator

@zenparsing zenparsing commented Apr 12, 2024

Resolves brave/brave-browser#37366

Summary of changes:

  • The patches for WebUIBubbleManager intended to support dialog view customization have been removed.
  • The BraveWebUIBubbleManager class has been removed.
  • An preprocessor replacement has been added for WebUIBubbleDialogView that sets the bubble corner radius in the constructor.

Note that this change also gives the tab search bubble a 16px corner radius:

Screenshot 2024-04-16 at 10 14 33 AM

Submitter Checklist:

  • I confirm that no security/privacy review is needed and no other type of reviews are needed, or that I have requested them
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally:
    • npm run test -- brave_browser_tests, npm run test -- brave_unit_tests wiki
    • npm run presubmit wiki, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

@zenparsing zenparsing force-pushed the ksmith-webui-bubble-mgr branch 4 times, most recently from ce155c5 to c1b225a Compare April 16, 2024 14:18
@zenparsing zenparsing marked this pull request as ready for review April 16, 2024 14:23
@zenparsing zenparsing requested review from a team as code owners April 16, 2024 14:23
Copy link
Collaborator

@mkarolin mkarolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chromium_src and patches LGTM

@zenparsing zenparsing force-pushed the ksmith-webui-bubble-mgr branch 2 times, most recently from 6870df6 to dc4e3a4 Compare April 16, 2024 16:15
@zenparsing zenparsing requested a review from mkarolin April 16, 2024 16:31
Copy link
Collaborator

@mkarolin mkarolin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zenparsing zenparsing force-pushed the ksmith-webui-bubble-mgr branch from dc4e3a4 to c2daa7a Compare April 16, 2024 19:15
@zenparsing zenparsing merged commit 1b8b9fe into master Apr 17, 2024
19 checks passed
@zenparsing zenparsing deleted the ksmith-webui-bubble-mgr branch April 17, 2024 12:18
@github-actions github-actions bot added this to the 1.67.x - Nightly milestone Apr 17, 2024
mkarolin pushed a commit that referenced this pull request May 5, 2024
Simplify customization of WebUIBubbleManager
mkarolin pushed a commit that referenced this pull request May 8, 2024
Simplify customization of WebUIBubbleManager
kjozwiak pushed a commit that referenced this pull request May 8, 2024
* Merge pull request #23049 from brave/ksmith-webui-bubble-mgr

Simplify customization of WebUIBubbleManager

* Merge pull request #22936 from brave/cr125

Upgrade from Chromium 124 to Chromium 125.

* NTP drive module was renamed to file suggestion.

Chromium change:

https://chromium.googlesource.com/chromium/src/+/1af2f445d25a6

commit 1af2f445d25a6f2e12984418df7b9a0bd09d4523
Author: Riley Tatum <rtatum@google.com>
Date:   Mon Apr 8 18:55:34 2024 +0000

    [NTP] Rename drive module to file suggestion for cleaner reuse of code

    This change is helping to prepare for another source for file
    suggestions to be added to the NTP. The other file suggestion source
    will have the same UX; therefore, it would be best to reuse as much code
    as possible.

    Code that can be used across both sources for the module, are changed
    to use the term "file_suggestion" instead of "drive". Code that is
    specific to the Drive source keeps the name "drive". This shouldn't
    change any functionality. It is just meant to make the reuse of this
    code cleaner.

    I left v1 of the module largely alone, since extra source support will
    not be added for the older version of modules .

    Bug: 329897261

* Merge pull request #23429 from brave/sko/spt-resurrect

Fix SharedPinnedTab functionality

* TabStripModel::DetachWebContentsAtForInsertion was removed.

Chromium change:

https://source.chromium.org/chromium/chromium/src/+/afdf1e54a8ef45bfd22ecabfea0012da22bba6a3

commit afdf1e54a8ef45bfd22ecabfea0012da22bba6a3
Author: Erik Chen <erikchen@chromium.org>
Date:   Mon Apr 15 20:56:17 2024 +0000

    Remove TabStripModel::DetachWebContentsAtForInsertion.

    This CL is a refactor with no intended behavior change. This CL removes
    callers of DetachWebContentsAtForInsertion. This also allows
    TabModel::RemoveContents to become private.

    Bug: 1476012

* Disables crashing upstream unit tests.

* Merge pull request #23441 from brave/maxk-fix-bookmarks-folder-color

[cr125 follow up] Fixes bookmarks folder color in the side panel.

* Merge pull request #23497 from brave/bookmarks_panel_checkboux

Fixed bookmarks panel checkbox colors

* Restore .rustfmt.toml patch accidentally removed by cr124 bump.

---------

Co-authored-by: Kevin Smith <zenparsing@gmail.com>
Co-authored-by: Sangwoo Ko <sko@brave.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CR124] Follow up on WebUIBubbleManager patching
4 participants