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

Issue 1518543002: Adds MD ink ripple animations to buttons within location bar (Closed)

Created:
5 years ago by varkha
Modified:
4 years, 10 months ago
CC:
chromium-reviews, tdanderson+views_chromium.org, msw+watch_chromium.org, tfarina, groby+bubble_chromium.org, hcarmona+bubble_chromium.org, rouslan+bubble_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds MD ink ripple animations to buttons within location bar BUG=518941 TEST=Click the possible icons in location bar: Bookmark (Star) - always there Zoom (Ctrl-+ to see it) Translate (navigate to a page in foreign language) Save Password - navigate to a secure page and enter credentials Save Credit Card - navigate to a booking site and enter a bogus CC. Allow popups and use http://www.popuptest.com/ to get a popup blocker view. For all those buttons a click should produce an ink ripple animation. TBR=sadrul@chromium.org Committed: https://crrev.com/9b3dd66a8dce80938cb51578f128416d2d539595 Cr-Commit-Position: refs/heads/master@{#372279}

Patch Set 1 : Adds MD ink ripple animations to buttons within location bar (tweaks) #

Patch Set 2 : Adds MD ink ripple animations to buttons within location bar (split gesture support into a separate… #

Total comments: 2

Patch Set 3 : Adds MD ink ripple animations to buttons within location bar (proper Z-order) #

Patch Set 4 : Adds MD ink ripple animations to buttons within location bar (fixed test build) #

Total comments: 20

Patch Set 5 : Adds MD ink ripple animations to buttons within location bar (addressed most comments and rebased) #

Patch Set 6 : Adds MD ink ripple animations to buttons within location bar (test fix) #

Patch Set 7 : Adds MD ink ripple animations to buttons within location bar (with WidgetObserver) #

Total comments: 5

Patch Set 8 : Adds MD ink ripple animations to buttons within location bar (nits) #

Patch Set 9 : Adds MD ink ripple animations to buttons within location bar (AddObserver in BubbleIconView) #

Patch Set 10 : Adds MD ink ripple animations to buttons within location bar (reverted a bad change) #

Total comments: 6

Patch Set 11 : Adds MD ink ripple animations to buttons within location bar (Avoids multiple calls to observe) #

Patch Set 12 : Adds MD ink ripple animations to buttons within location bar (sadrul's comments) #

Total comments: 3

Patch Set 13 : Adds MD ink ripple animations to buttons within location bar (fixes for immersive mode) #

Total comments: 6

Patch Set 14 : Adds MD ink ripple animations to buttons within location bar (added ContentSettingImageView) #

Total comments: 3

Patch Set 15 : Adds MD ink ripple animations to buttons within location bar (missing member init) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+340 lines, -74 lines) Patch
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.h View 1 2 3 4 5 6 7 8 9 10 11 8 chunks +40 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/location_bar/bubble_icon_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +95 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +25 lines, -1 line 0 comments Download
M chrome/browser/ui/views/location_bar/content_setting_image_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 7 chunks +102 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/location_bar/zoom_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h View 1 2 3 4 5 6 7 8 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar/toolbar_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +9 lines, -7 lines 0 comments Download
M chrome/browser/ui/views/translate/translate_bubble_view.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +6 lines, -5 lines 0 comments Download
M ui/views/controls/image_view.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/image_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 99 (41 generated)
varkha
bruthig@, early comments? I think it would be good time to move the size to ...
5 years ago (2015-12-09 20:28:13 UTC) #2
bruthig
+1 To moving size constants to LayoutConstants! First off it would probably make sense to ...
5 years ago (2015-12-09 23:12:19 UTC) #4
bruthig
On 2015/12/09 23:12:19, bruthig wrote: > +1 To moving size constants to LayoutConstants! > > ...
5 years ago (2015-12-09 23:37:59 UTC) #5
varkha
Deleted the SupportsState patch by mistake, I will upload it separately. Please take a look ...
5 years ago (2015-12-11 17:00:58 UTC) #8
bruthig
Sorry I didn't notice this point in the first pass. https://codereview.chromium.org/1518543002/diff/80001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc File chrome/browser/ui/views/location_bar/bubble_icon_view.cc (right): https://codereview.chromium.org/1518543002/diff/80001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc#newcode126 ...
5 years ago (2015-12-11 17:43:38 UTC) #9
varkha
PTAL. https://codereview.chromium.org/1518543002/diff/80001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc File chrome/browser/ui/views/location_bar/bubble_icon_view.cc (right): https://codereview.chromium.org/1518543002/diff/80001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc#newcode126 chrome/browser/ui/views/location_bar/bubble_icon_view.cc:126: SetPaintToLayer(true); On 2015/12/11 17:43:38, bruthig wrote: > Does ...
4 years, 11 months ago (2016-01-26 01:19:18 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/100001
4 years, 11 months ago (2016-01-26 01:54:36 UTC) #12
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/147618)
4 years, 11 months ago (2016-01-26 02:13:20 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/120001
4 years, 11 months ago (2016-01-26 02:31:02 UTC) #16
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-26 03:20:45 UTC) #18
varkha
sadrul, pkasting, can you please take a look? I have experimented without having a BubbleIconView ...
4 years, 11 months ago (2016-01-26 16:23:36 UTC) #20
bruthig
Minor nit, otherwise lgtm https://codereview.chromium.org/1518543002/diff/120001/chrome/browser/ui/views/location_bar/bubble_icon_view.h File chrome/browser/ui/views/location_bar/bubble_icon_view.h (right): https://codereview.chromium.org/1518543002/diff/120001/chrome/browser/ui/views/location_bar/bubble_icon_view.h#newcode47 chrome/browser/ui/views/location_bar/bubble_icon_view.h:47: // Returns the image currently ...
4 years, 11 months ago (2016-01-26 16:47:25 UTC) #21
Peter Kasting
https://codereview.chromium.org/1518543002/diff/120001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc File chrome/browser/ui/views/location_bar/bubble_icon_view.cc (right): https://codereview.chromium.org/1518543002/diff/120001/chrome/browser/ui/views/location_bar/bubble_icon_view.cc#newcode72 chrome/browser/ui/views/location_bar/bubble_icon_view.cc:72: return image_->GetTooltipText(p, tooltip); Nit: Simpler: return IsBubbleShowing() && image_->GetTooltipText(p, ...
4 years, 11 months ago (2016-01-26 16:59:35 UTC) #22
msw
https://codereview.chromium.org/1518543002/diff/120001/ui/views/view.h File ui/views/view.h (right): https://codereview.chromium.org/1518543002/diff/120001/ui/views/view.h#newcode1003 ui/views/view.h:1003: virtual void OnBubbleClosing() {} On 2016/01/26 16:59:35, Peter Kasting ...
4 years, 11 months ago (2016-01-26 17:42:33 UTC) #24
varkha
Still working on the bubble closing but wanted to post the intermediate state. Thanks for ...
4 years, 11 months ago (2016-01-26 17:45:45 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/140001
4 years, 11 months ago (2016-01-26 17:46:26 UTC) #27
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/157431)
4 years, 11 months ago (2016-01-26 18:21:59 UTC) #29
varkha
https://codereview.chromium.org/1518543002/diff/260001/ui/views/bubble/bubble_delegate.h File ui/views/bubble/bubble_delegate.h (right): https://codereview.chromium.org/1518543002/diff/260001/ui/views/bubble/bubble_delegate.h#newcode41 ui/views/bubble/bubble_delegate.h:41: BubbleDelegateView(WidgetObserverView* anchor_view, msw@, pkasting@, did you have in mind ...
4 years, 10 months ago (2016-01-28 00:11:10 UTC) #34
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/260001
4 years, 10 months ago (2016-01-28 00:15:02 UTC) #36
Peter Kasting
LGTM. The |has_widget_observer_view_| stuff is kinda ugly but I don't have a better idea. https://codereview.chromium.org/1518543002/diff/260001/chrome/browser/ui/views/location_bar/bubble_icon_view.h ...
4 years, 10 months ago (2016-01-28 00:22:09 UTC) #37
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/280001
4 years, 10 months ago (2016-01-28 00:32:11 UTC) #39
varkha
Thanks for quick turnaround! https://codereview.chromium.org/1518543002/diff/260001/chrome/browser/ui/views/location_bar/bubble_icon_view.h File chrome/browser/ui/views/location_bar/bubble_icon_view.h (right): https://codereview.chromium.org/1518543002/diff/260001/chrome/browser/ui/views/location_bar/bubble_icon_view.h#newcode46 chrome/browser/ui/views/location_bar/bubble_icon_view.h:46: // Returns the image currently ...
4 years, 10 months ago (2016-01-28 00:32:50 UTC) #40
msw
NOT LGTM. I don't really like the direction of this change. widget_observer_view.h should not be ...
4 years, 10 months ago (2016-01-28 00:40:55 UTC) #41
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/148814)
4 years, 10 months ago (2016-01-28 00:59:36 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/300001
4 years, 10 months ago (2016-01-28 02:26:27 UTC) #45
varkha
On 2016/01/28 00:40:55, msw wrote: > NOT LGTM. I don't really like the direction of ...
4 years, 10 months ago (2016-01-28 02:29:38 UTC) #46
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/320001
4 years, 10 months ago (2016-01-28 07:09:40 UTC) #49
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/165676)
4 years, 10 months ago (2016-01-28 07:43:43 UTC) #51
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/340001
4 years, 10 months ago (2016-01-28 17:03:48 UTC) #53
varkha
sadrul@, ping for comments in ui/views/.
4 years, 10 months ago (2016-01-28 17:23:35 UTC) #54
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/158717)
4 years, 10 months ago (2016-01-28 17:40:59 UTC) #56
sadrul
https://codereview.chromium.org/1518543002/diff/340001/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1518543002/diff/340001/chrome/browser/ui/views/frame/browser_view.cc#newcode1298 chrome/browser/ui/views/frame/browser_view.cc:1298: BookmarkBubbleView::bookmark_bubble()->GetWidget()); I would do this differently: . BubbleIconView becomes ...
4 years, 10 months ago (2016-01-28 17:45:06 UTC) #57
msw
+1 to everything Sadrul said, but instead of adding BubbleIconView::ObserveBubble, just use Widget::AddObserver
4 years, 10 months ago (2016-01-28 18:02:04 UTC) #58
varkha
Thanks, this ToolbarView handler is what I was missing. >> instead of adding BubbleIconView::ObserveBubble, just ...
4 years, 10 months ago (2016-01-28 20:09:20 UTC) #59
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/400001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/400001
4 years, 10 months ago (2016-01-28 20:16:44 UTC) #62
Peter Kasting
Still LGTM https://codereview.chromium.org/1518543002/diff/400001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1518543002/diff/400001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode337 chrome/browser/ui/views/toolbar/toolbar_view.cc:337: anchor_view == location_bar()->translate_icon_view())) { Nit: {} not ...
4 years, 10 months ago (2016-01-28 20:42:12 UTC) #63
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/165959)
4 years, 10 months ago (2016-01-28 21:27:10 UTC) #65
varkha
Some anchor views can be NULL when in immersive mode. Added DCHECK when this is ...
4 years, 10 months ago (2016-01-28 22:04:52 UTC) #66
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/410001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/410001
4 years, 10 months ago (2016-01-28 22:06:26 UTC) #68
Peter Kasting
https://codereview.chromium.org/1518543002/diff/400001/chrome/browser/ui/views/toolbar/toolbar_view.cc File chrome/browser/ui/views/toolbar/toolbar_view.cc (right): https://codereview.chromium.org/1518543002/diff/400001/chrome/browser/ui/views/toolbar/toolbar_view.cc#newcode337 chrome/browser/ui/views/toolbar/toolbar_view.cc:337: anchor_view == location_bar()->translate_icon_view())) { On 2016/01/28 22:04:52, varkha wrote: ...
4 years, 10 months ago (2016-01-28 22:21:22 UTC) #69
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-28 23:11:43 UTC) #71
msw
lgtm with a nit and a q. static_cast isn't wonderful, but this is a much ...
4 years, 10 months ago (2016-01-28 23:27:43 UTC) #72
varkha
https://codereview.chromium.org/1518543002/diff/410001/chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc File chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc (right): https://codereview.chromium.org/1518543002/diff/410001/chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc#newcode46 chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc:46: const gfx::ImageSkia& GetImage() { On 2016/01/28 23:27:42, msw wrote: ...
4 years, 10 months ago (2016-01-29 00:00:41 UTC) #73
msw
lgtm https://codereview.chromium.org/1518543002/diff/410001/chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc File chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc (right): https://codereview.chromium.org/1518543002/diff/410001/chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc#newcode46 chrome/browser/ui/views/passwords/manage_passwords_icon_view_interactive_uitest.cc:46: const gfx::ImageSkia& GetImage() { On 2016/01/29 00:00:40, varkha ...
4 years, 10 months ago (2016-01-29 00:02:01 UTC) #74
varkha
One more case added that I didn't remember was there until I saw crbug.com/582196. https://codereview.chromium.org/1518543002/diff/430001/chrome/browser/ui/views/location_bar/content_setting_image_view.h ...
4 years, 10 months ago (2016-01-29 00:22:35 UTC) #75
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/430001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/430001
4 years, 10 months ago (2016-01-29 00:24:19 UTC) #77
msw
https://codereview.chromium.org/1518543002/diff/430001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): https://codereview.chromium.org/1518543002/diff/430001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc#newcode50 chrome/browser/ui/views/location_bar/content_setting_image_view.cc:50: bubble_widget_(nullptr), you can probably remove the |bubble_widget_| member if ...
4 years, 10 months ago (2016-01-29 01:10:10 UTC) #79
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/160760)
4 years, 10 months ago (2016-01-29 01:49:57 UTC) #81
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/450001
4 years, 10 months ago (2016-01-29 02:22:18 UTC) #83
varkha
https://codereview.chromium.org/1518543002/diff/430001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc File chrome/browser/ui/views/location_bar/content_setting_image_view.cc (right): https://codereview.chromium.org/1518543002/diff/430001/chrome/browser/ui/views/location_bar/content_setting_image_view.cc#newcode50 chrome/browser/ui/views/location_bar/content_setting_image_view.cc:50: bubble_widget_(nullptr), On 2016/01/29 01:10:10, msw wrote: > you can ...
4 years, 10 months ago (2016-01-29 02:23:19 UTC) #84
msw
lgtm, but I idly wonder if the whole ink ripple thing could be done [more ...
4 years, 10 months ago (2016-01-29 02:40:05 UTC) #85
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-01-29 03:04:51 UTC) #87
varkha
> if the whole ink ripple thing could be done [more simply] at the location ...
4 years, 10 months ago (2016-01-29 03:31:15 UTC) #88
varkha
The changes in ui/views/ are now trivial, adding TBR=sadrul.
4 years, 10 months ago (2016-01-29 03:35:25 UTC) #91
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1518543002/450001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1518543002/450001
4 years, 10 months ago (2016-01-29 03:37:29 UTC) #94
commit-bot: I haz the power
Committed patchset #15 (id:450001)
4 years, 10 months ago (2016-01-29 03:43:15 UTC) #96
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/9b3dd66a8dce80938cb51578f128416d2d539595 Cr-Commit-Position: refs/heads/master@{#372279}
4 years, 10 months ago (2016-01-29 03:44:08 UTC) #98
msw
4 years, 10 months ago (2016-01-29 06:28:43 UTC) #99
Message was sent while issue was closed.
On 2016/01/29 03:31:15, varkha wrote:
> > if the whole ink ripple thing could be done [more simply] at the location
bar
> level.
> I will explore that. We still plan to simplify it a bit by pulling more ink
> ripple common functionality aside and making it state-driven as opposed to
input
> event driven as now. Our plan was to get the visible pieces in so that they
can
> be interacted with to gain time for feedback and refactor once the visuals are
> stable.
> In this case location bar could be or own an InkDropHost and delegate
> positioning to the child views. A challenge here is that different variations
of
> buttons / views have slightly different event model and need tweaks to make
the
> ripple consistent with the button state. E.g. content views (popup blocker
icon)
> respond to any mouse buttons while zoom / bookmark and such only work on left
> mouse buttons. Little things like that may need to be stabilized first.

Sounds good. To elaborate on my thinking, I wonder if all these bubble showing
functions on various buttons could just call into something like
LocationBarView::BubbleOpened(gfx::Point location, views::Widget* bubble)... (or
just pass the BubbleDelegate, which would know its anchor and its widget), and
then the location bar could paint the ripple and observe the bubble widget. That
said, it's probably more complicated than I imagine with this hand waving.

Powered by Google App Engine
This is Rietveld 408576698