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

Issue 2041723002: [Mac] Dismiss an open page info dialog when the location icon is clicked. (Closed)

Created:
4 years, 6 months ago by dominickn
Modified:
4 years, 6 months ago
Reviewers:
tapted, msw
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Mac] Dismiss an open page info dialog when the location icon is clicked. On views platforms, clicking the location (lock) icon opens the page info dialog. Clicking the icon again dismisses the dialog. Currently, the same actions on Mac "refreshes" the dialog in place, with a strange animation caused by the original dialog disappearing and a new one taking its place immediately. This CL makes the Cocoa and toolkit-views page info dialogs on Mac behave consistently with views platforms, so that clicking the location icon when the dialog is open dismisses the dialog. BUG=59289 TEST=Open Chrome on Mac, and navigate to a page. Click on the lock icon to open the page info dialog. Click on the icon again and the dialog should dismiss, rather than refresh in place. The same behaviour should apply to the toolkit-views and MacViews-WebUI browsers. Committed: https://crrev.com/77e33ef8f3837e7bad8794501cafd0d0268b988f Cr-Commit-Position: refs/heads/master@{#398721}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address reviewer comments #

Total comments: 2

Patch Set 3 : Address nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -2 lines) Patch
M chrome/browser/ui/cocoa/website_settings/website_settings_bubble_controller.mm View 1 4 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/browser_dialogs_views_mac.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (10 generated)
dominickn
tapted, WDYT? This patch is very similar to the existing way that views works. I'd ...
4 years, 6 months ago (2016-06-06 03:15:22 UTC) #3
tapted
Can we have a test for Cocoa? Something like LocationIconViewTest.HideOnSecondClick I guess. In fact, you ...
4 years, 6 months ago (2016-06-06 05:06:37 UTC) #4
dominickn
On 2016/06/06 05:06:37, tapted wrote: > Can we have a test for Cocoa? > > ...
4 years, 6 months ago (2016-06-08 03:03:09 UTC) #5
tapted
lgtm https://codereview.chromium.org/2041723002/diff/20001/chrome/browser/ui/views/browser_dialogs_views_mac.cc File chrome/browser/ui/views/browser_dialogs_views_mac.cc (right): https://codereview.chromium.org/2041723002/diff/20001/chrome/browser/ui/views/browser_dialogs_views_mac.cc#newcode32 chrome/browser/ui/views/browser_dialogs_views_mac.cc:32: // This must be checked explicitly on views ...
4 years, 6 months ago (2016-06-08 06:54:57 UTC) #6
dominickn
Thanks! +msw: please review views/browser_dialogs_views_mac.cc https://codereview.chromium.org/2041723002/diff/20001/chrome/browser/ui/views/browser_dialogs_views_mac.cc File chrome/browser/ui/views/browser_dialogs_views_mac.cc (right): https://codereview.chromium.org/2041723002/diff/20001/chrome/browser/ui/views/browser_dialogs_views_mac.cc#newcode32 chrome/browser/ui/views/browser_dialogs_views_mac.cc:32: // This must be ...
4 years, 6 months ago (2016-06-08 07:03:34 UTC) #8
dominickn
Actually +msw this time. PTAL at views/, thanks!
4 years, 6 months ago (2016-06-08 07:06:50 UTC) #10
msw
lgtm, but :( at globals and hackyness...
4 years, 6 months ago (2016-06-08 20:02:02 UTC) #13
dominickn
On 2016/06/08 20:02:02, msw wrote: > lgtm, but :( at globals and hackyness... Acknowledged. Perhaps ...
4 years, 6 months ago (2016-06-08 22:58:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2041723002/40001
4 years, 6 months ago (2016-06-08 22:59:32 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-08 23:04:46 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-08 23:07:08 UTC) #21
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/77e33ef8f3837e7bad8794501cafd0d0268b988f
Cr-Commit-Position: refs/heads/master@{#398721}

Powered by Google App Engine
This is Rietveld 408576698