| Index: chrome/browser/ui/gtk/global_error_bubble.h
|
| diff --git a/chrome/browser/ui/gtk/global_error_bubble.h b/chrome/browser/ui/gtk/global_error_bubble.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a6cfcba0b3f68762201517df88218a139007a4c1
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/gtk/global_error_bubble.h
|
| @@ -0,0 +1,37 @@
|
| +// Copyright (c) 2011 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.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_
|
| +#define CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_
|
| +#pragma once
|
| +
|
| +#include <gtk/gtk.h>
|
| +
|
| +#include "chrome/browser/ui/gtk/bubble/bubble_gtk.h"
|
| +
|
| +class GlobalErrorDelegate;
|
| +class Profile;
|
| +
|
| +class GlobalErrorBubble : public BubbleDelegateGtk {
|
| + public:
|
| + GlobalErrorBubble(Profile* profile,
|
| + GlobalErrorDelegate* delegate,
|
| + GtkWidget* anchor);
|
| + virtual ~GlobalErrorBubble();
|
| +
|
| + // BubbleDelegateGtk implementation.
|
| + virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE;
|
| +
|
| + private:
|
| + CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleDestroy);
|
| + CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleAcceptButton);
|
| + CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleCancelButton);
|
| +
|
| + BubbleGtk* bubble_;
|
| + GlobalErrorDelegate* delegate_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubble);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_
|
|
|