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

Issue 2119373002: Creates coordinators for displaying alerts (Closed)

Created:
4 years, 5 months ago by gambard
Modified:
4 years, 5 months ago
CC:
chromium-reviews, sdefresne+watch_chromium.org, lpromero
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Creates coordinator for displaying alerts This CL creates an AlertControllerCoordinator which can handle displaying alerts. This coordinator can display action sheets and modal alerts. BUG=629515 Committed: https://crrev.com/b61a9611880a5e5cfdb9780985df88810cf657ef Cr-Commit-Position: refs/heads/master@{#407431}

Patch Set 1 #

Total comments: 51

Patch Set 2 : AlertCoordinator uses delegates #

Patch Set 3 : Add tests #

Patch Set 4 : Add comment for StubDelegate #

Patch Set 5 : Add dependencies + sort headers #

Patch Set 6 : Split CL #

Total comments: 22

Patch Set 7 : Revisions #

Patch Set 8 : Remove the use of a delegate, use only one class. #

Patch Set 9 : Remove stub delegate #

Patch Set 10 : cleanup #

Total comments: 1

Patch Set 11 : Fix tests #

Patch Set 12 : Fix init #

Total comments: 4

Patch Set 13 : Nits #

Total comments: 6

Patch Set 14 : Fix tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+517 lines, -0 lines) Patch
M ios/chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
A + ios/chrome/browser/ui/alert_coordinator/OWNERS View 1 6 7 8 10 12 13 1 chunk +1 line, -0 lines 0 comments Download
A ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +53 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +159 lines, -0 lines 0 comments Download
A ios/chrome/browser/ui/alert_coordinator/alert_coordinator_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +294 lines, -0 lines 0 comments Download
M ios/chrome/ios_chrome.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M ios/chrome/ios_chrome_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 44 (20 generated)
gambard
+marq for owners approval. +lpromero FYI. This CL should replace the ContextMenuCoordinator. The tests are ...
4 years, 5 months ago (2016-07-05 16:28:59 UTC) #3
marq (ping after 24h)
+michaeldo Cool, I'm keen to look a this, but don't expect much (if any) feedback ...
4 years, 5 months ago (2016-07-05 16:32:42 UTC) #5
lpromero
I don't think subclasses are the best way to achieve this. Granted, UIKit UIAlertController is ...
4 years, 5 months ago (2016-07-06 09:04:00 UTC) #7
Jackie Quinn
On 2016/07/06 09:04:00, lpromero wrote: > I don't think subclasses are the best way to ...
4 years, 5 months ago (2016-07-06 13:52:42 UTC) #8
gambard
Thanks for the input. PTAL! I now use one class with two delegates (one for ...
4 years, 5 months ago (2016-07-07 08:57:43 UTC) #9
michaeldo
The goal of the ContextMenuCoordinator was to put the logic (action blocks) for shared items ...
4 years, 5 months ago (2016-07-14 21:10:56 UTC) #10
gambard
PTAL, I have split this CL into two CLs. michaeldo@, from what I understand of ...
4 years, 5 months ago (2016-07-18 08:46:03 UTC) #13
lpromero
https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode31 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h:31: // Calling stop on this coordinator destroy the current ...
4 years, 5 months ago (2016-07-18 12:29:34 UTC) #14
marq (ping after 24h)
https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode15 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h:15: @protocol AlertCoordinatorDelegate<NSObject> The preferred way to construct delegate protocols ...
4 years, 5 months ago (2016-07-18 13:09:48 UTC) #15
gambard
I have done the changes from your comments. From the comments on this CL and ...
4 years, 5 months ago (2016-07-18 14:03:03 UTC) #16
gambard
PTAL, I have put everything in one class and remove the use of delegate. The ...
4 years, 5 months ago (2016-07-18 14:29:16 UTC) #17
lpromero
https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm (right): https://codereview.chromium.org/2119373002/diff/100001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm#newcode80 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.mm:80: [_alertController dismissViewControllerAnimated:NO completion:nil]; On 2016/07/18 14:03:03, gambard wrote: > ...
4 years, 5 months ago (2016-07-18 14:33:54 UTC) #18
michaeldo
https://codereview.chromium.org/2119373002/diff/180001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): https://codereview.chromium.org/2119373002/diff/180001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode40 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h:40: params:(const web::ContextMenuParams&)params; Per the comment for this class, this ...
4 years, 5 months ago (2016-07-18 15:40:09 UTC) #19
gambard
On 2016/07/18 15:40:09, michaeldo wrote: > https://codereview.chromium.org/2119373002/diff/180001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h > File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): > > https://codereview.chromium.org/2119373002/diff/180001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode40 > ...
4 years, 5 months ago (2016-07-18 15:43:10 UTC) #20
gambard
PTAL. I have fixed the tests and remove the dependency on ContextMenuParams.
4 years, 5 months ago (2016-07-19 14:39:48 UTC) #21
marq (ping after 24h)
LGTM with nits. https://codereview.chromium.org/2119373002/diff/220001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): https://codereview.chromium.org/2119373002/diff/220001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode32 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h:32: // -configureForActionSheetWithRect:popoverView: is not call, it ...
4 years, 5 months ago (2016-07-20 12:07:43 UTC) #22
gambard
Thanks. https://codereview.chromium.org/2119373002/diff/220001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h File ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h (right): https://codereview.chromium.org/2119373002/diff/220001/ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h#newcode32 ios/chrome/browser/ui/alert_coordinator/alert_coordinator.h:32: // -configureForActionSheetWithRect:popoverView: is not call, it will be ...
4 years, 5 months ago (2016-07-20 12:15:18 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2119373002/240001
4 years, 5 months ago (2016-07-22 11:50:01 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/39979)
4 years, 5 months ago (2016-07-22 12:01:34 UTC) #29
sdefresne
https://codereview.chromium.org/2119373002/diff/240001/ios/chrome/BUILD.gn File ios/chrome/BUILD.gn (right): https://codereview.chromium.org/2119373002/diff/240001/ios/chrome/BUILD.gn#newcode123 ios/chrome/BUILD.gn:123: "//ui/strings:ui_strings_grit", Use "//ui/strings:ui_strings" instead ("//ui/strings:ui_strings_grit" is an implementation detail). ...
4 years, 5 months ago (2016-07-22 14:16:57 UTC) #31
gambard
Thanks. https://codereview.chromium.org/2119373002/diff/240001/ios/chrome/BUILD.gn File ios/chrome/BUILD.gn (right): https://codereview.chromium.org/2119373002/diff/240001/ios/chrome/BUILD.gn#newcode123 ios/chrome/BUILD.gn:123: "//ui/strings:ui_strings_grit", On 2016/07/22 14:16:57, sdefresne wrote: > Use ...
4 years, 5 months ago (2016-07-25 07:23:33 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2119373002/280001
4 years, 5 months ago (2016-07-25 08:22:01 UTC) #40
commit-bot: I haz the power
Committed patchset #14 (id:280001)
4 years, 5 months ago (2016-07-25 08:25:18 UTC) #42
commit-bot: I haz the power
4 years, 5 months ago (2016-07-25 08:38:03 UTC) #44
Message was sent while issue was closed.
Patchset 14 (id:??) landed as
https://crrev.com/b61a9611880a5e5cfdb9780985df88810cf657ef
Cr-Commit-Position: refs/heads/master@{#407431}

Powered by Google App Engine
This is Rietveld 408576698