Let ToolbarView anchor on an (eventual) non-view LocationBar. [chromium/src : main]

0 views
Skip to first unread message

Maks Orlovich (Gerrit)

unread,
10:53 AM (10 hours ago) 10:53 AM
to Tom Lukaszewicz, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Tom Lukaszewicz

Maks Orlovich voted and added 1 comment

Votes added by Maks Orlovich

Commit-Queue+1

1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Line 23, Patchset 1:};
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Open in Gerrit

Related details

Attention is currently required from:
  • Tom Lukaszewicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 15:53:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
6:28 PM (2 hours ago) 6:28 PM
to Maks Orlovich, Keren Zhu, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Maks Orlovich

Tom Lukaszewicz added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Maks Orlovich
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Maks Orlovich <morl...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 23:27:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Maks Orlovich <morl...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Maks Orlovich (Gerrit)

unread,
6:35 PM (2 hours ago) 6:35 PM
to Keren Zhu, Tom Lukaszewicz, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Tom Lukaszewicz

Maks Orlovich added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Tom Lukaszewicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Comment-Date: Thu, 15 Jan 2026 23:35:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Maks Orlovich <morl...@chromium.org>
Comment-In-Reply-To: Tom Lukaszewicz <tl...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
7:06 PM (2 hours ago) 7:06 PM
to Maks Orlovich, Keren Zhu, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Maks Orlovich

Tom Lukaszewicz added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Tom Lukaszewicz

I think it might work (at least on clang https://godbolt.org/z/re93jxKdW)

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Maks Orlovich
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Maks Orlovich <morl...@chromium.org>
Gerrit-Comment-Date: Fri, 16 Jan 2026 00:06:03 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
7:07 PM (2 hours ago) 7:07 PM
to Maks Orlovich, Keren Zhu, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Maks Orlovich

Tom Lukaszewicz added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Tom Lukaszewicz

I think it might work (at least on clang https://godbolt.org/z/re93jxKdW)

Tom Lukaszewicz

Unless you meant wrapping it another way

Gerrit-Comment-Date: Fri, 16 Jan 2026 00:06:36 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Maks Orlovich (Gerrit)

unread,
7:19 PM (1 hour ago) 7:19 PM
to Keren Zhu, Tom Lukaszewicz, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Tom Lukaszewicz

Maks Orlovich added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Tom Lukaszewicz

I think it might work (at least on clang https://godbolt.org/z/re93jxKdW)

Tom Lukaszewicz

Unless you meant wrapping it another way

Maks Orlovich

I meant w/o repeating the whole definition.

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Tom Lukaszewicz
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-Comment-Date: Fri, 16 Jan 2026 00:19:07 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Maks Orlovich (Gerrit)

unread,
7:39 PM (1 hour ago) 7:39 PM
to Keren Zhu, Tom Lukaszewicz, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Tom Lukaszewicz

Maks Orlovich added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Tom Lukaszewicz

I think it might work (at least on clang https://godbolt.org/z/re93jxKdW)

Tom Lukaszewicz

Unless you meant wrapping it another way

Maks Orlovich

I meant w/o repeating the whole definition.

Maks Orlovich

Oh, sorry, I thought you meant forward-declaring BubbleAnchor rather than views::View.

(A lighter header for BubbleAnchor might be nice at any rate; I think the above was my frustration about not being able to forward declare it speaking --- it feels bad to add includes to files where people really kept dependencies down).

Gerrit-Comment-Date: Fri, 16 Jan 2026 00:39:53 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy

Tom Lukaszewicz (Gerrit)

unread,
8:45 PM (now) 8:45 PM
to Maks Orlovich, Keren Zhu, Chromium LUCI CQ, chromium...@chromium.org, ayman...@chromium.org, jdonnel...@chromium.org, mdjone...@chromium.org, omnibox-...@chromium.org, yuezhang...@chromium.org
Attention needed from Keren Zhu and Maks Orlovich

Tom Lukaszewicz added 1 comment

File chrome/browser/ui/views/bubble_anchor_util_views.h
Maks Orlovich . unresolved

I am not sure of this approach, but chrome/browser/ui/location_bar/location_bar.h isn't supposed to know about views...

Tom Lukaszewicz

Spoke with @kere...@chromium.org and I think we want to lift the existing `views::BubbleAnchor` out of a views include and perhaps somewhere in `//ui/base/interaction/`. It still depends on a views::View but perhaps we just forward declare this since the anchor is intended to be usable by non-views code also.

wdyt?

Maks Orlovich

Since it's a typedef of a variant it's not really forward-declarable as far as I know?

Tom Lukaszewicz

I think it might work (at least on clang https://godbolt.org/z/re93jxKdW)

Tom Lukaszewicz

Unless you meant wrapping it another way

Maks Orlovich

I meant w/o repeating the whole definition.

Maks Orlovich

Oh, sorry, I thought you meant forward-declaring BubbleAnchor rather than views::View.

(A lighter header for BubbleAnchor might be nice at any rate; I think the above was my frustration about not being able to forward declare it speaking --- it feels bad to add includes to files where people really kept dependencies down).

Tom Lukaszewicz

Ah I see what you mean. Maybe we can define it in a types header or similar (not as good as a forward include but perhaps light enough). No strong opinions but I'd be leaning more in that direction vs wrapping it in a struct to allow it to be forward declared.

Open in Gerrit

Related details

Attention is currently required from:
  • Keren Zhu
  • Maks Orlovich
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I15327c0db8034eabb43e2dd7f222e6029c884fc2
Gerrit-Change-Number: 7486788
Gerrit-PatchSet: 2
Gerrit-Owner: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Maks Orlovich <morl...@chromium.org>
Gerrit-Reviewer: Tom Lukaszewicz <tl...@chromium.org>
Gerrit-CC: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Keren Zhu <kere...@chromium.org>
Gerrit-Attention: Maks Orlovich <morl...@chromium.org>
Gerrit-Comment-Date: Fri, 16 Jan 2026 01:44:50 +0000
satisfied_requirement
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages