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

Unified Diff: chrome/browser/ui/views/extensions/device_permissions_dialog_view.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/views/extensions/device_permissions_dialog_view.h
diff --git a/chrome/browser/ui/views/extensions/device_permissions_dialog_view.h b/chrome/browser/ui/views/extensions/device_permissions_dialog_view.h
deleted file mode 100644
index 8cfced867bcba12228585d814dcfb47007575655..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/extensions/device_permissions_dialog_view.h
+++ /dev/null
@@ -1,47 +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_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_
-
-#include "extensions/browser/api/device_permissions_prompt.h"
-#include "ui/views/controls/table/table_view_observer.h"
-#include "ui/views/window/dialog_delegate.h"
-
-namespace views {
-class TableView;
-}
-
-class DevicePermissionsTableModel;
-
-// Displays a device permissions selector prompt as a modal dialog constrained
-// to the window/tab displaying the given web contents.
-class DevicePermissionsDialogView : public views::DialogDelegateView,
- public views::TableViewObserver {
- public:
- DevicePermissionsDialogView(
- scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt);
- ~DevicePermissionsDialogView() override;
-
- // views::DialogDelegateView:
- base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
- bool IsDialogButtonEnabled(ui::DialogButton button) const override;
- ui::ModalType GetModalType() const override;
- base::string16 GetWindowTitle() const override;
- void DeleteDelegate() override;
- bool Accept() override;
- gfx::Size GetPreferredSize() const override;
-
- // views::TableViewObserver:
- void OnSelectionChanged() override;
-
- private:
- scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
-
- // Displays the list of devices.
- views::TableView* table_view_;
- std::unique_ptr<DevicePermissionsTableModel> table_model_;
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698