summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 21:19:40 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 21:19:40 +0000
commit5d028b7b577d2efb96cd958ba4a7f1e5800fd9bb (patch)
tree044c1b66a3820e9a259a65782a6eeabe06559721 /chrome/browser/extensions
parente2a011098d8eb2c682ee6673e543a5060f9bf6ff (diff)
downloadchromium_src-5d028b7b577d2efb96cd958ba4a7f1e5800fd9bb.zip
chromium_src-5d028b7b577d2efb96cd958ba4a7f1e5800fd9bb.tar.gz
chromium_src-5d028b7b577d2efb96cd958ba4a7f1e5800fd9bb.tar.bz2
Infobars on GTK (first part).
I got it to a point where we show HTML content from the extension within an infobar, but there are a few things missing. Missing pieces: - Infobar does not size based on the height of its content (between 36px and 72px). - Infobar content always has a fixed width, but needs to fill out into the available infobar area. - I've put in code to asynchronously fetch the image for the Infobar, but it needs to be shown and hooked up to the ExtensionAction context menu (same context menu we use for the browser action container icons). - The background for HTML content should have a gradient, but is just solid blue at the moment. BUG=39916 TEST=Infobars should show up on GTK. Review URL: http://codereview.chromium.org/2753005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49319 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions')
-rw-r--r--chrome/browser/extensions/extension_infobar_delegate.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/extensions/extension_infobar_delegate.cc b/chrome/browser/extensions/extension_infobar_delegate.cc
index 09cd233..7bbc79b 100644
--- a/chrome/browser/extensions/extension_infobar_delegate.cc
+++ b/chrome/browser/extensions/extension_infobar_delegate.cc
@@ -57,12 +57,12 @@ void ExtensionInfoBarDelegate::InfoBarClosed() {
delete this;
}
-#if !defined(TOOLKIT_VIEWS)
+#if defined(OS_MACOSX)
InfoBar* ExtensionInfoBarDelegate::CreateInfoBar() {
NOTIMPLEMENTED();
return NULL;
}
-#endif // !TOOLKIT_VIEWS
+#endif // OS_MACOSX
void ExtensionInfoBarDelegate::Observe(NotificationType type,
const NotificationSource& source,