blob: 7530b11d416b6b6f3a6b24722c37c692a481ca3f [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This is the GTK implementation of the First Run bubble, the dialog box
// presented on first run of Chromium. There can only ever be a single
// bubble open, so the class presents only static methods.
#ifndef CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_
#define CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_
#pragma once
#include <gtk/gtk.h>
#include "base/compiler_specific.h"
#include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
class Profile;
class FirstRunBubble : public BubbleDelegateGtk {
public:
// Shows the first run bubble, pointing at |rect|, transient for the toplevel
// window of the |anchor| widget.
static void Show(Profile* profile, GtkWidget* anchor, const gfx::Rect& rect);
// Overridden from BubbleDelegateGtk:
virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
private:
FirstRunBubble(Profile* profile, GtkWidget* anchor, const gfx::Rect& rect);
virtual ~FirstRunBubble();
CHROMEGTK_CALLBACK_0(FirstRunBubble, void, HandleDestroy);
CHROMEGTK_CALLBACK_0(FirstRunBubble, void, HandleChangeLink);
Profile* profile_;
BubbleGtk* bubble_;
DISALLOW_COPY_AND_ASSIGN(FirstRunBubble);
};
#endif // CHROME_BROWSER_UI_GTK_FIRST_RUN_BUBBLE_H_