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 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" | 9 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
10 #include "ui/views/bubble/bubble_delegate.h" | 10 #include "ui/views/bubble/bubble_delegate.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 views::BubbleBorder::ArrowLocation location, | 21 views::BubbleBorder::ArrowLocation location, |
22 Browser* browser, | 22 Browser* browser, |
23 const base::WeakPtr<GlobalError>& error); | 23 const base::WeakPtr<GlobalError>& error); |
24 virtual ~GlobalErrorBubbleView(); | 24 virtual ~GlobalErrorBubbleView(); |
25 | 25 |
26 // views::BubbleDelegateView implementation. | 26 // views::BubbleDelegateView implementation. |
27 virtual gfx::Rect GetAnchorRect() OVERRIDE; | 27 virtual gfx::Rect GetAnchorRect() OVERRIDE; |
28 | 28 |
29 // views::ButtonListener implementation. | 29 // views::ButtonListener implementation. |
30 virtual void ButtonPressed(views::Button* sender, | 30 virtual void ButtonPressed(views::Button* sender, |
31 const views::Event& event) OVERRIDE; | 31 const ui::Event& event) OVERRIDE; |
32 | 32 |
33 // views::WidgetDelegate implementation. | 33 // views::WidgetDelegate implementation. |
34 virtual void WindowClosing() OVERRIDE; | 34 virtual void WindowClosing() OVERRIDE; |
35 | 35 |
36 // GlobalErrorBubbleViewBase implementation. | 36 // GlobalErrorBubbleViewBase implementation. |
37 virtual void CloseBubbleView() OVERRIDE; | 37 virtual void CloseBubbleView() OVERRIDE; |
38 | 38 |
39 private: | 39 private: |
40 Browser* browser_; | 40 Browser* browser_; |
41 base::WeakPtr<GlobalError> error_; | 41 base::WeakPtr<GlobalError> error_; |
42 | 42 |
43 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); | 43 DISALLOW_COPY_AND_ASSIGN(GlobalErrorBubbleView); |
44 }; | 44 }; |
45 | 45 |
46 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ | 46 #endif // CHROME_BROWSER_UI_VIEWS_GLOBAL_ERROR_BUBBLE_VIEW_H_ |
OLD | NEW |