Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(443)

Unified Diff: chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h

Issue 2390823005: Update device permissions dialog ui for Chrome apps and extensions (Closed)
Patch Set: address more comments Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
deleted file mode 100644
index b725c5e9110b41bbd3f9ea8688621fa59f2a8aae..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// 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"
-
-class DevicePermissionsDialogController;
-
-// Displays the device permissions prompt, and notifies the
-// DevicePermissionsDialogController of selected devices.
-@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_;
-
- DevicePermissionsDialogController* controller_; // weak
- scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
-}
-
-- (id)
- initWithController:(DevicePermissionsDialogController*)controller
- prompt:
- (scoped_refptr<extensions::DevicePermissionsPrompt::Prompt>)
- prompt;
-- (IBAction)cancel:(id)sender;
-- (IBAction)ok:(id)sender;
-- (void)devicesChanged;
-
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698