OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | |
Avi (use Gerrit)
2014/10/15 01:57:46
yadda yadda (c)
Reilly Grant (use Gerrit)
2014/10/15 19:15:32
Done.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_ | |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 #include "base/mac/scoped_nsobject.h" | |
11 #include "extensions/browser/api/device_permissions_prompt.h" | |
12 | |
13 // Displays the device permissions prompt, and notifies the | |
14 // DevicePermissionsPrompt::Delegate of success or failure. | |
15 @interface DevicePermissionsViewController | |
16 : NSViewController<NSTableViewDataSource, NSTableViewDelegate> { | |
17 IBOutlet NSTextField* titleField_; | |
18 IBOutlet NSTextField* promptField_; | |
19 IBOutlet NSButton* cancelButton_; | |
20 IBOutlet NSButton* okButton_; | |
21 IBOutlet NSTableView* tableView_; | |
22 IBOutlet NSTableColumn* deviceNameColumn_; | |
23 IBOutlet NSTableColumn* serialNumberColumn_; | |
24 IBOutlet NSScrollView* scrollView_; | |
25 | |
26 extensions::DevicePermissionsPrompt::Delegate* delegate_; // weak | |
27 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; | |
28 } | |
29 | |
30 - (id)initWithDelegate:(extensions::DevicePermissionsPrompt::Delegate*)delegate | |
31 prompt: | |
32 (scoped_refptr<extensions::DevicePermissionsPrompt::Prompt>) | |
33 prompt; | |
Avi (use Gerrit)
2014/10/15 01:57:46
hahaha... I'd rather you not align on the colons a
Reilly Grant (use Gerrit)
2014/10/15 19:15:32
Ick, I think clang-format did this when I wasn't l
| |
34 - (IBAction)cancel:(id)sender; | |
35 - (IBAction)ok:(id)sender; | |
36 - (void)devicesChanged; | |
37 | |
38 @end | |
39 | |
40 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER _H_ | |
OLD | NEW |