Index: chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h |
diff --git a/chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h b/chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..13739b137805847b7f6b675a8eeead07d35ae4e7 |
--- /dev/null |
+++ b/chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h |
@@ -0,0 +1,40 @@ |
+// 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.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_ |
+#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_ |
+ |
+#import <Cocoa/Cocoa.h> |
+ |
+#include "base/mac/scoped_nsobject.h" |
+#include "extensions/browser/api/device_permissions_prompt.h" |
+ |
+// Displays the device permissions prompt, and notifies the |
+// DevicePermissionsPrompt::Delegate of success or failure. |
+@interface DevicePermissionsViewController |
+ : NSViewController<NSTableViewDataSource, NSTableViewDelegate> { |
+ IBOutlet NSTextField* titleField_; |
+ IBOutlet NSTextField* promptField_; |
+ IBOutlet NSButton* cancelButton_; |
+ IBOutlet NSButton* okButton_; |
+ IBOutlet NSTableView* tableView_; |
+ IBOutlet NSTableColumn* deviceNameColumn_; |
+ IBOutlet NSTableColumn* serialNumberColumn_; |
+ IBOutlet NSScrollView* scrollView_; |
+ |
+ extensions::DevicePermissionsPrompt::Delegate* delegate_; // weak |
+ scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; |
+} |
+ |
+- (id)initWithDelegate:(extensions::DevicePermissionsPrompt::Delegate*)delegate |
+ prompt: |
+ (scoped_refptr<extensions::DevicePermissionsPrompt::Prompt>) |
+ 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
|
+- (IBAction)cancel:(id)sender; |
+- (IBAction)ok:(id)sender; |
+- (void)devicesChanged; |
+ |
+@end |
+ |
+#endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_ |