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

Unified Diff: chrome/browser/tab_contents/infobar_delegate.h

Issue 160084: Chaos geolocation demo, non-WebKit part. Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « chrome/browser/tab_contents/geoloc_infobar_delegate.cc ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/browser/tab_contents/geoloc_infobar_delegate.cc ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698