| 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> |
| 11 | 11 |
| 12 #include "base/scoped_nsobject.h" | 12 #include "base/scoped_nsobject.h" |
| 13 | 13 |
| 14 class Profile; | 14 class Profile; |
| 15 class TabContents; | 15 class TabContents; |
| 16 | 16 |
| 17 // A window controller for managing the "Report Bug" feature. Modally | 17 // A window controller for managing the "Report Bug" feature. Modally |
| 18 // presents a dialog that allows the user to either file a bug report on | 18 // presents a dialog that allows the user to either file a bug report on |
| 19 // a broken page, or go directly to Google's "Report Phishing" page and | 19 // a broken page, or go directly to Google's "Report Phishing" page and |
| 20 // file a report there. | 20 // file a report there. |
| 21 @interface BugReportWindowController : NSWindowController { | 21 @interface BugReportWindowController : NSWindowController { |
| 22 @private | 22 @private |
| 23 TabContents* currentTab_; // Weak, owned by browser. | 23 TabContents* currentTab_; // Weak, owned by browser. |
| 24 Profile* profile_; // Weak, owned by browser. | 24 Profile* profile_; // Weak, owned by browser. |
| 25 | 25 |
| 26 // Holds screenshot of current tab. | 26 // Holds screenshot of current tab. |
| 27 std::vector<unsigned char> pngData_; | 27 std::vector<unsigned char> pngData_; |
| 28 // Width and height of the current tab's screenshot. |
| 29 int pngWidth_; |
| 30 int pngHeight_; |
| 28 | 31 |
| 29 // Values bound to data in the dialog box. These values cannot be boxed in | 32 // Values bound to data in the dialog box. These values cannot be boxed in |
| 30 // scoped_nsobjects because we use them for bindings. | 33 // scoped_nsobjects because we use them for bindings. |
| 31 NSString* bugDescription_; // Strong. | 34 NSString* bugDescription_; // Strong. |
| 32 NSUInteger bugTypeIndex_; | 35 NSUInteger bugTypeIndex_; |
| 33 NSString* pageTitle_; // Strong. | 36 NSString* pageTitle_; // Strong. |
| 34 NSString* pageURL_; // Strong. | 37 NSString* pageURL_; // Strong. |
| 35 | 38 |
| 36 // We keep a pointer to this button so we can change its title. | 39 // We keep a pointer to this button so we can change its title. |
| 37 IBOutlet NSButton* sendReportButton_; | 40 IBOutlet NSButton* sendReportButton_; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 @property (copy, nonatomic) NSString* pageTitle; | 103 @property (copy, nonatomic) NSString* pageTitle; |
| 101 @property (copy, nonatomic) NSString* pageURL; | 104 @property (copy, nonatomic) NSString* pageURL; |
| 102 @property BOOL sendScreenshot; | 105 @property BOOL sendScreenshot; |
| 103 @property BOOL disableScreenshotCheckbox; | 106 @property BOOL disableScreenshotCheckbox; |
| 104 @property (readonly, nonatomic) NSArray* bugTypeList; | 107 @property (readonly, nonatomic) NSArray* bugTypeList; |
| 105 | 108 |
| 106 @end | 109 @end |
| 107 | 110 |
| 108 #endif // CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ | 111 #endif // CHROME_BROWSER_COCOA_BUG_REPORT_WINDOW_CONTROLLER_H_ |
| 109 | 112 |
| OLD | NEW |