Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / extensions / device_permissions_view_controller.h
blobb725c5e9110b41bbd3f9ea8688621fa59f2a8aae
1 // Copyright 2014 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 CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #include "extensions/browser/api/device_permissions_prompt.h"
13 class DevicePermissionsDialogController;
15 // Displays the device permissions prompt, and notifies the
16 // DevicePermissionsDialogController of selected devices.
17 @interface DevicePermissionsViewController
18 : NSViewController<NSTableViewDataSource, NSTableViewDelegate> {
19 IBOutlet NSTextField* titleField_;
20 IBOutlet NSTextField* promptField_;
21 IBOutlet NSButton* cancelButton_;
22 IBOutlet NSButton* okButton_;
23 IBOutlet NSTableView* tableView_;
24 IBOutlet NSTableColumn* deviceNameColumn_;
25 IBOutlet NSTableColumn* serialNumberColumn_;
26 IBOutlet NSScrollView* scrollView_;
28 DevicePermissionsDialogController* controller_; // weak
29 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
32 - (id)
33 initWithController:(DevicePermissionsDialogController*)controller
34 prompt:
35 (scoped_refptr<extensions::DevicePermissionsPrompt::Prompt>)
36 prompt;
37 - (IBAction)cancel:(id)sender;
38 - (IBAction)ok:(id)sender;
39 - (void)devicesChanged;
41 @end
43 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_