| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "chrome/browser/ui/global_error_bubble_view_base.h" | 10 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
| 11 #include "ui/views/bubble/bubble_delegate.h" | 11 #include "ui/views/bubble/bubble_delegate.h" |
| 12 #include "ui/views/controls/button/button.h" | 12 #include "ui/views/controls/button/button.h" |
| 13 | 13 |
| 14 class Browser; | 14 class Browser; |
| 15 class GlobalError; | 15 class GlobalError; |
| 16 | 16 |
| 17 class GlobalErrorBubbleView : public views::ButtonListener, | 17 class GlobalErrorBubbleView : public views::ButtonListener, |
| 18 public views::BubbleDelegateView, | 18 public views::BubbleDelegateView, |
| 19 public GlobalErrorBubbleViewBase { | 19 public GlobalErrorBubbleViewBase { |
| 20 public: | 20 public: |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 virtual void CloseBubbleView() OVERRIDE; | 38 virtual void CloseBubbleView() OVERRIDE; |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 Browser* browser_; | 41 Browser* browser_; |
| 42 base::WeakPtr<GlobalError> error_; | 42 base::WeakPtr<GlobalError> error_; |
| 43 | 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); | 44 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 47 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
| OLD | NEW |