| Index: chrome/browser/ui/views/global_error_bubble_view.h
|
| diff --git a/chrome/browser/ui/views/global_error_bubble_view.h b/chrome/browser/ui/views/global_error_bubble_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..42302979b5c37298cf7630196ed69406168e1721
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/global_error_bubble_view.h
|
| @@ -0,0 +1,41 @@
|
| +// 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_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
|
| +#pragma once
|
| +
|
| +#include "chrome/browser/ui/views/bubble/bubble.h"
|
| +#include "views/controls/button/button.h"
|
| +
|
| +class Browser;
|
| +class GlobalErrorDelegate;
|
| +
|
| +class GlobalErrorBubbleView : public views::View,
|
| + public views::ButtonListener,
|
| + public BubbleDelegate {
|
| + public:
|
| + GlobalErrorBubbleView(GlobalErrorDelegate* delegate, Browser* browser);
|
| + virtual ~GlobalErrorBubbleView();
|
| +
|
| + // views::View implementation.
|
| + virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| +
|
| + // views::ButtonListener implementation.
|
| + virtual void ButtonPressed(views::Button* sender,
|
| + const views::Event& event) OVERRIDE;
|
| +
|
| + // BubbleDelegate implementation.
|
| + virtual void BubbleClosing(Bubble* bubble, bool closed_by_escape) OVERRIDE;
|
| + virtual bool CloseOnEscape() OVERRIDE;
|
| + virtual bool FadeInOnShow() OVERRIDE;
|
| +
|
| + private:
|
| + Browser* browser_;
|
| + GlobalErrorDelegate* delegate_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_
|
|
|