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

Unified Diff: chrome/browser/ui/views/infobars/extension_infobar.h

Issue 923463003: [Extensions] Remove the Infobar API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments Created 5 years, 10 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/infobars/extension_infobar.h
diff --git a/chrome/browser/ui/views/infobars/extension_infobar.h b/chrome/browser/ui/views/infobars/extension_infobar.h
deleted file mode 100644
index 0a765eb9be076b790cfc42aba935f3ca33d2b2f6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/infobars/extension_infobar.h
+++ /dev/null
@@ -1,73 +0,0 @@
-// Copyright (c) 2012 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_INFOBARS_EXTENSION_INFOBAR_H_
-#define CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/views/infobars/infobar_view.h"
-#include "ui/views/controls/button/menu_button_listener.h"
-
-class Browser;
-class ExtensionInfoBarDelegate;
-class ExtensionViewViews;
-
-namespace views {
-class ImageView;
-class MenuButton;
-}
-
-class ExtensionInfoBar : public InfoBarView,
- public views::MenuButtonListener {
- public:
- ExtensionInfoBar(scoped_ptr<ExtensionInfoBarDelegate> delegate,
- Browser* browser);
-
- private:
- ~ExtensionInfoBar() override;
-
- // InfoBarView:
- void Layout() override;
- void ViewHierarchyChanged(
- const ViewHierarchyChangedDetails& details) override;
- int ContentMinimumWidth() const override;
-
- // views::MenuButtonListener:
- void OnMenuButtonClicked(views::View* source,
- const gfx::Point& point) override;
-
- void OnImageLoaded(const gfx::Image& image);
- ExtensionInfoBarDelegate* GetDelegate();
- const ExtensionInfoBarDelegate* GetDelegate() const;
- ExtensionViewViews* GetExtensionView();
-
- // Returns the width of all content other than the extension view. Layout()
- // uses this to determine how much space the extension view can take.
- int NonExtensionViewWidth() const;
-
- Browser* browser_;
-
- // The infobar icon used for the extension infobar. The icon can be either a
- // plain image (in which case |icon_as_image_| is set) or a dropdown menu (in
- // which case |icon_as_menu_| is set).
- // The icon is a dropdown menu if the extension showing the infobar shows
- // configure context menus.
- views::View* infobar_icon_;
-
- // The dropdown menu for accessing the contextual extension actions.
- // It is non-NULL if the |infobar_icon_| is a menu button and in that case
- // |icon_as_menu_ == infobar_icon_|.
- views::MenuButton* icon_as_menu_;
-
- // The image view for the icon.
- // It is non-NULL if |infobar_icon_| is an image and in that case
- // |icon_as_image_ == infobar_icon_|.
- views::ImageView* icon_as_image_;
-
- base::WeakPtrFactory<ExtensionInfoBar> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBar);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_INFOBARS_EXTENSION_INFOBAR_H_

Powered by Google App Engine
This is Rietveld 408576698