Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / commands / show_mail_composer_command.h
blob9c84fa9da730b6d7368dc8d47c4fc38fa750ba8f
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_CHROME_BROWSER_UI_COMMANDS_SHOW_MAIL_COMPOSER_COMMAND_H_
6 #define IOS_CHROME_BROWSER_UI_COMMANDS_SHOW_MAIL_COMPOSER_COMMAND_H_
8 #import <Foundation/Foundation.h>
10 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
12 namespace base {
13 class FilePath;
16 @interface ShowMailComposerCommand : GenericChromeCommand
18 // Mark inherited initializer as unavailable to prevent calling it by mistake.
19 - (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
21 // Initializes a command designed to open the mail composer with pre-filled
22 // recipients, subject, body.
23 - (instancetype)initWithToRecipient:(NSString*)toRecipient
24 subject:(NSString*)subject
25 body:(NSString*)body
26 emailNotConfiguredAlertTitleId:(int)alertTitleId
27 emailNotConfiguredAlertMessageId:(int)alertMessageId
28 NS_DESIGNATED_INITIALIZER;
30 // List of email recipients.
31 @property(nonatomic, readonly) NSArray* toRecipients;
33 // Pre-filled default email subject.
34 @property(nonatomic, readonly) NSString* subject;
36 // Pre-filled default email body.
37 @property(nonatomic, readonly) NSString* body;
39 // Path to file to attach to email.
40 @property(nonatomic, assign) const base::FilePath& textFileToAttach;
42 // Identifier for alert if the email title is empty.
43 @property(nonatomic, readonly) int emailNotConfiguredAlertTitleId;
45 // Identifier for alert if the email body is empty.
46 @property(nonatomic, readonly) int emailNotConfiguredAlertMessageId;
48 @end
50 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_SHOW_MAIL_COMPOSER_COMMAND_H_