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

Unified Diff: chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h

Issue 231733005: Delete the GTK+ port of Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remerge to ToT Created 6 years, 8 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/gtk/infobars/extension_infobar_gtk.h
diff --git a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h b/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
deleted file mode 100644
index af6a856471e53d8e0cc04ad97c93d9f4ace585cb..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/gtk/infobars/extension_infobar_gtk.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2011 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_GTK_INFOBARS_EXTENSION_INFOBAR_GTK_H_
-#define CHROME_BROWSER_UI_GTK_INFOBARS_EXTENSION_INFOBAR_GTK_H_
-
-#include "base/compiler_specific.h"
-#include "chrome/browser/extensions/extension_infobar_delegate.h"
-#include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
-#include "chrome/browser/ui/gtk/infobars/infobar_gtk.h"
-#include "chrome/browser/ui/gtk/menu_gtk.h"
-#include "ui/gfx/gtk_util.h"
-
-class ExtensionContextMenuModel;
-class ExtensionViewGtk;
-class MenuGtk;
-
-class ExtensionInfoBarGtk : public InfoBarGtk, public MenuGtk::Delegate {
- public:
- explicit ExtensionInfoBarGtk(scoped_ptr<ExtensionInfoBarDelegate> delegate);
-
- private:
- virtual ~ExtensionInfoBarGtk();
-
- // InfoBarGtk:
- virtual void PlatformSpecificSetOwner() OVERRIDE;
- virtual void PlatformSpecificHide(bool animate) OVERRIDE;
- virtual void GetTopColor(InfoBarDelegate::Type type,
- double* r, double* g, double* b) OVERRIDE;
- virtual void GetBottomColor(InfoBarDelegate::Type type,
- double* r, double* g, double* b) OVERRIDE;
-
- // MenuGtk::Delegate:
- virtual void StoppedShowing() OVERRIDE;
-
- void OnImageLoaded(const gfx::Image& image);
-
- ExtensionInfoBarDelegate* GetDelegate();
-
- // Looks at the window the infobar is in and gets the browser. Can return
- // NULL if we aren't attached.
- Browser* GetBrowser();
-
- // Returns the context menu model for this extension. Can be NULL if
- // extension context menus are disabled.
- ExtensionContextMenuModel* BuildMenuModel();
-
- CHROMEGTK_CALLBACK_1(ExtensionInfoBarGtk, void, OnSizeAllocate,
- GtkAllocation*);
-
- CHROMEGTK_CALLBACK_1(ExtensionInfoBarGtk, gboolean, OnButtonPress,
- GdkEventButton*);
-
- CHROMEGTK_CALLBACK_1(ExtensionInfoBarGtk, gboolean, OnExpose,
- GdkEventExpose*);
-
- ExtensionViewGtk* view_;
-
- // The button that activates the extension popup menu. Non-NULL if the
- // extension shows configure context menus and a dropdown menu should be used
- // in place of the icon. If set, parents |icon_|.
- GtkWidget* button_;
-
- // The GtkImage that shows the extension icon. If a dropdown menu should be
- // used, it's put inside |button_|, otherwise it's put directly in the hbox
- // containing the infobar element. Composed in OnImageLoaded().
- GtkWidget* icon_;
-
- // An alignment with one pixel of bottom padding. This is set so the |view_|
- // doesn't overlap the bottom separator. This also makes it more convenient
- // to reattach the view since the alignment_ will have the |hbox_| packing
- // child properties. Reparenting becomes easier too.
- GtkWidget* alignment_;
-
- // The model for the current menu displayed.
- scoped_refptr<ExtensionContextMenuModel> context_menu_model_;
-
- base::WeakPtrFactory<ExtensionInfoBarGtk> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionInfoBarGtk);
-};
-
-#endif // CHROME_BROWSER_UI_GTK_INFOBARS_EXTENSION_INFOBAR_GTK_H_

Powered by Google App Engine
This is Rietveld 408576698