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

Unified Diff: chrome/browser/ui/cocoa/extensions/device_permissions_dialog_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_dialog_controller.h
diff --git a/chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller.h b/chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller.h
deleted file mode 100644
index 19e5f3c7ced52a8eb7c09e515a0c115bfe5a477d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller.h
+++ /dev/null
@@ -1,45 +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_DIALOG_CONTROLER_H_
-#define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/mac/scoped_nsobject.h"
-#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
-#include "extensions/browser/api/device_permissions_prompt.h"
-
-namespace content {
-class WebContents;
-}
-
-@class DevicePermissionsViewController;
-
-// Displays an device permissions selector prompt as a modal sheet constrained
-// to the window/tab displaying the given web contents.
-class DevicePermissionsDialogController
- : public extensions::DevicePermissionsPrompt::Prompt::Observer,
- public ConstrainedWindowMacDelegate {
- public:
- DevicePermissionsDialogController(
- content::WebContents* web_contents,
- scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt);
- ~DevicePermissionsDialogController() override;
-
- void Dismissed();
-
- // extensions::DevicePermissionsPrompt::Prompt::Observer implementation.
- void OnDevicesChanged() override;
-
- // ConstrainedWindowMacDelegate implementation.
- void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
-
- private:
- scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
- base::scoped_nsobject<DevicePermissionsViewController> view_controller_;
- std::unique_ptr<ConstrainedWindowMac> constrained_window_;
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H_

Powered by Google App Engine
This is Rietveld 408576698