| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 - (IBAction)sendReport:(id)sender; | 66 - (IBAction)sendReport:(id)sender; |
| 67 - (IBAction)cancel:(id)sender; | 67 - (IBAction)cancel:(id)sender; |
| 68 | 68 |
| 69 // YES if the user has selected the phishing report option. | 69 // YES if the user has selected the phishing report option. |
| 70 - (BOOL)isPhishingReport; | 70 - (BOOL)isPhishingReport; |
| 71 | 71 |
| 72 // The "send report" button may need to change its title to reflect that it's | 72 // The "send report" button may need to change its title to reflect that it's |
| 73 // bouncing to the phish report page instead of sending a report directly | 73 // bouncing to the phish report page instead of sending a report directly |
| 74 // from the dialog box (or vice versa). Observe the menu of bug types | 74 // from the dialog box (or vice versa). Observe the menu of bug types |
| 75 // and change the button title along with the selected bug. | 75 // and change the button title along with the selected bug. |
| 76 - (void)menu:(NSMenu *)menu willHighlightItem:(NSMenuItem *)item; | 76 - (void)menu:(NSMenu*)menu willHighlightItem:(NSMenuItem *)item; |
| 77 |
| 78 // Force the description text field to allow "return" to go to the next line |
| 79 // within the description field. Without this delegate method, "return" falls |
| 80 // back to the "Send Report" action, because this button has been bound to |
| 81 // the return key. |
| 82 - (BOOL)control:(NSControl*)control textView:(NSTextView*)textView |
| 83 doCommandBySelector:(SEL)commandSelector; |
| 77 | 84 |
| 78 // Properties for bindings. | 85 // Properties for bindings. |
| 79 @property (copy, nonatomic) NSString* bugDescription; | 86 @property (copy, nonatomic) NSString* bugDescription; |
| 80 @property NSUInteger bugType; | 87 @property NSUInteger bugType; |
| 81 @property (copy, nonatomic) NSString* pageTitle; | 88 @property (copy, nonatomic) NSString* pageTitle; |
| 82 @property (copy, nonatomic) NSString* pageURL; | 89 @property (copy, nonatomic) NSString* pageURL; |
| 83 @property (assign, nonatomic) IBOutlet NSButton* sendReportButton; | 90 @property (assign, nonatomic) IBOutlet NSButton* sendReportButton; |
| 84 @property (assign, nonatomic) IBOutlet NSButton* cancelButton; | 91 @property (assign, nonatomic) IBOutlet NSButton* cancelButton; |
| 85 @property BOOL sendScreenshot; | 92 @property BOOL sendScreenshot; |
| 86 | 93 |
| 87 @property BOOL disableScreenshot; | 94 @property BOOL disableScreenshot; |
| 88 @property (readonly, nonatomic) NSArray* bugTypeList; | 95 @property (readonly, nonatomic) NSArray* bugTypeList; |
| 89 | 96 |
| 90 @end | 97 @end |
| 91 | 98 |
| 92 #endif // CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ | 99 #endif // CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ |
| 93 | 100 |
| OLD | NEW |