summaryrefslogtreecommitdiffstats
path: root/chrome/browser/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/gtk')
-rw-r--r--chrome/browser/gtk/first_run_bubble.cc4
-rw-r--r--chrome/browser/gtk/first_run_bubble.h2
-rw-r--r--chrome/browser/gtk/notifications/balloon_view_gtk.cc4
-rw-r--r--chrome/browser/gtk/notifications/balloon_view_gtk.h2
4 files changed, 10 insertions, 2 deletions
diff --git a/chrome/browser/gtk/first_run_bubble.cc b/chrome/browser/gtk/first_run_bubble.cc
index 343f57b..119166b 100644
--- a/chrome/browser/gtk/first_run_bubble.cc
+++ b/chrome/browser/gtk/first_run_bubble.cc
@@ -48,6 +48,10 @@ void FirstRunBubble::InfoBubbleClosing(InfoBubbleGtk* info_bubble,
// TODO(port): Enable parent window
}
+bool FirstRunBubble::CloseOnEscape() {
+ return true;
+}
+
void FirstRunBubble::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
diff --git a/chrome/browser/gtk/first_run_bubble.h b/chrome/browser/gtk/first_run_bubble.h
index f6f7e8c..220c4f6 100644
--- a/chrome/browser/gtk/first_run_bubble.h
+++ b/chrome/browser/gtk/first_run_bubble.h
@@ -35,7 +35,7 @@ class FirstRunBubble : public InfoBubbleGtkDelegate,
// is about to be closed.
virtual void InfoBubbleClosing(InfoBubbleGtk* info_bubble,
bool closed_by_escape);
- virtual bool CloseOnEscape() { return true; }
+ virtual bool CloseOnEscape();
// Overridden from NotificationObserver:
virtual void Observe(NotificationType type,
diff --git a/chrome/browser/gtk/notifications/balloon_view_gtk.cc b/chrome/browser/gtk/notifications/balloon_view_gtk.cc
index 6c2cc7e..bbca070 100644
--- a/chrome/browser/gtk/notifications/balloon_view_gtk.cc
+++ b/chrome/browser/gtk/notifications/balloon_view_gtk.cc
@@ -126,6 +126,10 @@ gfx::Size BalloonViewImpl::GetSize() const {
return gfx::Size(GetDesiredTotalWidth(), GetDesiredTotalHeight());
}
+BalloonHost* BalloonViewImpl::GetHost() const {
+ return html_contents_.get();
+}
+
void BalloonViewImpl::DelayedClose(bool by_user) {
html_contents_->Shutdown();
if (frame_container_) {
diff --git a/chrome/browser/gtk/notifications/balloon_view_gtk.h b/chrome/browser/gtk/notifications/balloon_view_gtk.h
index dce5869..de95e71 100644
--- a/chrome/browser/gtk/notifications/balloon_view_gtk.h
+++ b/chrome/browser/gtk/notifications/balloon_view_gtk.h
@@ -46,7 +46,7 @@ class BalloonViewImpl : public BalloonView,
virtual void RepositionToBalloon();
virtual void Close(bool by_user);
virtual gfx::Size GetSize() const;
- virtual BalloonHost* GetHost() const { return html_contents_.get(); }
+ virtual BalloonHost* GetHost() const;
private:
// NotificationObserver interface.