Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Issue 1162393003: Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow (Closed)

Created:
5 years, 6 months ago by hcarmona
Modified:
5 years, 6 months ago
Reviewers:
Robert Sesek, tapted
CC:
chromium-reviews, extensions-reviews_chromium.org, tfarina, noyau+watch_chromium.org, chromium-apps-reviews_chromium.org, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace info_bubble::BubbleArrowLocation with views::BubbleBorder::Arrow Both serve the same purpose. Refactor cocoa code to use the views enum. BUG=476662

Patch Set 1 #

Patch Set 2 : Fix compile in test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -73 lines) Patch
M chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_bubble_controller.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_details_container.mm View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_main_container.mm View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_notification_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_section_container.mm View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/autofill_tooltip_controller_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/card_unmask_prompt_view_bridge.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/generated_credit_card_bubble_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/autofill/new_credit_card_bubble_cocoa.mm View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller.mm View 3 chunks +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/base_bubble_controller_unittest.mm View 6 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser/zoom_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_action_platform_delegate_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_installed_bubble_controller.mm View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.h View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 3 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/toolbar_actions_bar_bubble_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/info_bubble_view.h View 3 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/info_bubble_view.mm View 5 chunks +10 lines, -10 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/validation_message_bubble_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/website_settings/permission_bubble_cocoa.mm View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (2 generated)
hcarmona
I'm trying to replace the cocoa specific enum in bubbles with one that serves the ...
5 years, 6 months ago (2015-06-03 00:20:13 UTC) #2
Robert Sesek
What's the end goal of this refactoring? Is it just to share these constant values? ...
5 years, 6 months ago (2015-06-03 16:44:04 UTC) #4
hcarmona
On 2015/06/03 16:44:04, Robert Sesek wrote: > What's the end goal of this refactoring? Is ...
5 years, 6 months ago (2015-06-03 18:15:29 UTC) #5
tapted
On 2015/06/03 18:15:29, Hector Carmona wrote: > On 2015/06/03 16:44:04, Robert Sesek wrote: > > ...
5 years, 6 months ago (2015-06-03 21:51:38 UTC) #6
hcarmona
5 years, 6 months ago (2015-06-03 22:39:59 UTC) #7
On 2015/06/03 21:51:38, tapted wrote:
> On 2015/06/03 18:15:29, Hector Carmona wrote:
> > On 2015/06/03 16:44:04, Robert Sesek wrote:
> > > What's the end goal of this refactoring? Is it just to share these
constant
> > > values? Why is that useful? My inclination is that Cocoa shouldn't depend
on
> > > views.
> > > 
> > > +trent
> > 
> > The reason for consolidating these is that both enums do mean the same
> > thing. This inconsistency is something that I noticed when working on
> > some bubble issues. Maybe a better approach is to have this enum in a
> > common location for all bubbles (independent of views and cocoa)?
> 
> Yeah views code shouldn't be getting introduced into existing stuff under
> chrome/browser/ui/cocoa. I might need to shuffle things around a bit, but I
> should be able to make a DEPS rule to enforce this (probably I just need to
move
> some bridging classes to chrome/browser/ui/cocoa/views if that doesn't get too
> confusing).
> 
> A common enum is an option (probably something in ui_base_types), but I seem
to
> recall arrows being dubbed toolkit-specific.
> 
> If it's not high priority, you could imagine a world where
> chrome/browser/ui/cocoa disappears entirely... (this is GYP_DEFINES +=
> mac_views_browser=1). i.e. if this isn't blocking you, the refactoring might
not
> be worthwhile.

The dupe enum isn't blocking me and it's not high priority, especially
if mac views is right over the horizon.

Powered by Google App Engine
This is Rietveld 408576698