| Index: chrome/browser/tab_contents/infobar_delegate.h
|
| ===================================================================
|
| --- chrome/browser/tab_contents/infobar_delegate.h (revision 23543)
|
| +++ chrome/browser/tab_contents/infobar_delegate.h (working copy)
|
| @@ -7,14 +7,19 @@
|
|
|
| #include <string>
|
|
|
| +#include "app/resource_bundle.h"
|
| #include "base/basictypes.h"
|
| #include "chrome/browser/tab_contents/navigation_controller.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "webkit/glue/window_open_disposition.h"
|
| +#include "grit/theme_resources.h"
|
|
|
| class AlertInfoBarDelegate;
|
| class ConfirmInfoBarDelegate;
|
| class InfoBar;
|
| +struct InfoBarStyle;
|
| +class CustomizeGeolocInfoBarDelegate;
|
| +class GeolocInfoBarDelegate;
|
| class LinkInfoBarDelegate;
|
| class ThemePreviewInfobarDelegate;
|
|
|
| @@ -81,6 +86,9 @@
|
| // NULL, no icon is shown.
|
| virtual SkBitmap* GetIcon() const { return NULL; }
|
|
|
| + // Returns the desired styling attributes for this infobar.
|
| + virtual InfoBarStyle* GetStyle() const { return NULL; }
|
| +
|
| // Returns a pointer to the AlertInfoBarDelegate interface, if implemented.
|
| virtual AlertInfoBarDelegate* AsAlertInfoBarDelegate() {
|
| return NULL;
|
| @@ -96,6 +104,17 @@
|
| return NULL;
|
| }
|
|
|
| + // Returns a pointer to the GeolocInfoBarDelegate interface, if implemented.
|
| + virtual GeolocInfoBarDelegate* AsGeolocInfoBarDelegate() {
|
| + return NULL;
|
| + }
|
| +
|
| + // Returns a pointer to the CustomizeGeolocInfoBarDelegate
|
| + // interface, if implemented.
|
| + virtual CustomizeGeolocInfoBarDelegate* AsCustomizeGeolocInfoBarDelegate() {
|
| + return NULL;
|
| + }
|
| +
|
| // Returns a pointer to the ThemePreviewInfobarDelegate interface, if
|
| // implemented.
|
| virtual ThemePreviewInfobarDelegate* AsThemePreviewInfobarDelegate() {
|
|
|