1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This is the GTK implementation of the First Run bubble, the dialog box
6 // presented on first run of Chromium. There can only ever be a single
7 // bubble open, so the class presents only static methods.
9 #ifndef CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_
10 #define CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_
14 #include "base/compiler_specific.h"
15 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
19 class FirstRunBubble
: public BubbleDelegateGtk
{
21 // Shows the first run bubble, pointing at |rect|, transient for the toplevel
22 // window of the |anchor| widget.
23 static void Show(Browser
* browser
, GtkWidget
* anchor
, const gfx::Rect
& rect
);
25 // Overridden from BubbleDelegateGtk:
26 virtual void BubbleClosing(BubbleGtk
* bubble
, bool closed_by_escape
) OVERRIDE
;
29 FirstRunBubble(Browser
* browser
, GtkWidget
* anchor
, const gfx::Rect
& rect
);
30 virtual ~FirstRunBubble();
32 CHROMEGTK_CALLBACK_0(FirstRunBubble
, void, HandleDestroy
);
33 CHROMEGTK_CALLBACK_0(FirstRunBubble
, void, HandleChangeLink
);
38 DISALLOW_COPY_AND_ASSIGN(FirstRunBubble
);
41 #endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_