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

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

Issue 2182883002: Permissions: Rename PermissionBubbleView to PermissionPromptInterface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig@ review Created 4 years, 4 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/permissions_bubble_view.h
diff --git a/chrome/browser/ui/views/website_settings/permissions_bubble_view.h b/chrome/browser/ui/views/website_settings/permissions_bubble_view.h
deleted file mode 100644
index 722c148e4372ac90b6504c41eb7ab116f3e11b78..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/website_settings/permissions_bubble_view.h
+++ /dev/null
@@ -1,63 +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_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
-#define CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_
-
-#include <memory>
-#include <string>
-
-#include "base/compiler_specific.h"
-#include "base/macros.h"
-#include "chrome/browser/ui/website_settings/permission_bubble_view.h"
-#include "ui/gfx/geometry/point.h"
-#include "ui/views/bubble/bubble_border.h"
-
-namespace views {
-class View;
-}
-
-class Browser;
-class PermissionsBubbleDialogDelegateView;
-
-class PermissionBubbleViewViews : public PermissionBubbleView {
- public:
- explicit PermissionBubbleViewViews(Browser* browser);
- ~PermissionBubbleViewViews() override;
-
- // PermissionBubbleView:
- void SetDelegate(Delegate* delegate) override;
- void Show(const std::vector<PermissionRequest*>& requests,
- const std::vector<bool>& accept_state) override;
- bool CanAcceptRequestUpdate() override;
- void Hide() override;
- bool IsVisible() override;
- void UpdateAnchorPosition() override;
- gfx::NativeWindow GetNativeWindow() override;
-
- void Closing();
- void Toggle(int index, bool value);
- void Accept();
- void Deny();
-
- private:
- // These three functions have separate implementations for Views-based and
- // Cocoa-based browsers, to allow this bubble to be used in either.
-
- // Returns the view to anchor the permission bubble to. May be null.
- views::View* GetAnchorView();
- // Returns the anchor point to anchor the permission bubble to, as a fallback.
- // Only used if GetAnchorView() returns nullptr.
- gfx::Point GetAnchorPoint();
- // Returns the type of arrow to display on the permission bubble.
- views::BubbleBorder::Arrow GetAnchorArrow();
-
- Browser* browser_;
- Delegate* delegate_;
- PermissionsBubbleDialogDelegateView* bubble_delegate_;
-
- DISALLOW_COPY_AND_ASSIGN(PermissionBubbleViewViews);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_WEBSITE_SETTINGS_PERMISSIONS_BUBBLE_VIEW_H_

Powered by Google App Engine
This is Rietveld 408576698