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

Unified Diff: chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h

Issue 2748443005: Rename website_settings UI folders to permission_bubble. (Closed)
Patch Set: Rebase. Created 3 years, 9 months 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/website_settings/chooser_bubble_ui_view.h
diff --git a/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h b/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h
deleted file mode 100644
index 596dbd344d3ca9c654bb02fcf49a2a83c81f0c33..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/website_settings/chooser_bubble_ui_view.h
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright 2015 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_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_
-
-#include <memory>
-
-#include "base/macros.h"
-#include "components/bubble/bubble_ui.h"
-#include "ui/views/bubble/bubble_border.h"
-
-namespace views {
-class View;
-}
-
-class Browser;
-class ChooserController;
-class ChooserBubbleUiViewDelegate;
-
-// ChooserBubbleUiView implements a chooser-based permission model,
-// it uses table view to show a list of items (such as usb devices, etc.)
-// for user to grant permission. It can be used by the WebUSB or WebBluetooth
-// APIs. It is owned by the BubbleController, which is owned by the
-// BubbleManager.
-class ChooserBubbleUiView : public BubbleUi {
- public:
- ChooserBubbleUiView(Browser* browser,
- std::unique_ptr<ChooserController> chooser_controller);
- ~ChooserBubbleUiView() override;
-
- // BubbleUi:
- void Show(BubbleReference bubble_reference) override;
- void Close() override;
- void UpdateAnchorPosition() override;
-
- private:
- views::View* GetAnchorView();
- views::BubbleBorder::Arrow GetAnchorArrow();
-
- Browser* browser_; // Weak.
- // Weak. Owned by its parent view.
- ChooserBubbleUiViewDelegate* chooser_bubble_ui_view_delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(ChooserBubbleUiView);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_CHOOSER_BUBBLE_UI_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698