OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 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. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include <gtk/gtk.h> |
| 10 |
| 11 #include "chrome/browser/ui/gtk/bubble/bubble_gtk.h" |
| 12 |
| 13 class GlobalErrorDelegate; |
| 14 class Profile; |
| 15 |
| 16 class GlobalErrorBubble : public BubbleDelegateGtk { |
| 17 public: |
| 18 GlobalErrorBubble(Profile* profile, |
| 19 GlobalErrorDelegate* delegate, |
| 20 GtkWidget* anchor); |
| 21 virtual ~GlobalErrorBubble(); |
| 22 |
| 23 // BubbleDelegateGtk implementation. |
| 24 virtual void BubbleClosing(BubbleGtk* bubble, bool closed_by_escape) OVERRIDE; |
| 25 |
| 26 private: |
| 27 CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleDestroy); |
| 28 CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleAcceptButton); |
| 29 CHROMEGTK_CALLBACK_0(GlobalErrorBubble, void, HandleCancelButton); |
| 30 |
| 31 BubbleGtk* bubble_; |
| 32 GlobalErrorDelegate* delegate_; |
| 33 |
| 34 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubble); |
| 35 }; |
| 36 |
| 37 #endif // CHROME_BROWSER_UI_GTK_GLOBAL_ERROR_BUBBLE_H_ |
OLD | NEW |