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

Unified Diff: ios/chrome/browser/ui/commands/show_mail_composer_command.h

Issue 1124173004: [iOS] Upstream //ios/chrome/browser/ui/commands changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/commands/show_mail_composer_command.h
diff --git a/ios/chrome/browser/ui/commands/show_mail_composer_command.h b/ios/chrome/browser/ui/commands/show_mail_composer_command.h
index 47d43ba8168a24242352afcc11c501559bc4a4b7..9c84fa9da730b6d7368dc8d47c4fc38fa750ba8f 100644
--- a/ios/chrome/browser/ui/commands/show_mail_composer_command.h
+++ b/ios/chrome/browser/ui/commands/show_mail_composer_command.h
@@ -15,18 +15,35 @@ class FilePath;
@interface ShowMailComposerCommand : GenericChromeCommand
+// Mark inherited initializer as unavailable to prevent calling it by mistake.
+- (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
+
+// Initializes a command designed to open the mail composer with pre-filled
+// recipients, subject, body.
- (instancetype)initWithToRecipient:(NSString*)toRecipient
subject:(NSString*)subject
body:(NSString*)body
emailNotConfiguredAlertTitleId:(int)alertTitleId
- emailNotConfiguredAlertMessageId:(int)alertMessageId;
-
-@property(nonatomic, readonly, assign) NSArray* toRecipients;
-@property(nonatomic, readonly, assign) NSString* subject;
-@property(nonatomic, readonly, assign) NSString* body;
-@property(nonatomic, assign) base::FilePath textFileToAttach;
-@property(nonatomic, readonly, assign) int emailNotConfiguredAlertTitleId;
-@property(nonatomic, readonly, assign) int emailNotConfiguredAlertMessageId;
+ emailNotConfiguredAlertMessageId:(int)alertMessageId
+ NS_DESIGNATED_INITIALIZER;
+
+// List of email recipients.
+@property(nonatomic, readonly) NSArray* toRecipients;
+
+// Pre-filled default email subject.
+@property(nonatomic, readonly) NSString* subject;
+
+// Pre-filled default email body.
+@property(nonatomic, readonly) NSString* body;
+
+// Path to file to attach to email.
+@property(nonatomic, assign) const base::FilePath& textFileToAttach;
+
+// Identifier for alert if the email title is empty.
+@property(nonatomic, readonly) int emailNotConfiguredAlertTitleId;
+
+// Identifier for alert if the email body is empty.
+@property(nonatomic, readonly) int emailNotConfiguredAlertMessageId;
@end

Powered by Google App Engine
This is Rietveld 408576698