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_GLOBAL_ERROR_GLOBAL_ERROR_H_ | 5 #ifndef CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ |
6 #define CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ | 6 #define CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 virtual void BubbleViewAcceptButtonPressed(Browser* browser) = 0; | 91 virtual void BubbleViewAcceptButtonPressed(Browser* browser) = 0; |
92 // Called when the user clicks the cancel button. |browser| is the | 92 // Called when the user clicks the cancel button. |browser| is the |
93 // Browser that the bubble view was shown on. | 93 // Browser that the bubble view was shown on. |
94 virtual void BubbleViewCancelButtonPressed(Browser* browser) = 0; | 94 virtual void BubbleViewCancelButtonPressed(Browser* browser) = 0; |
95 // Returns true if the bubble should close when focus is lost. If false, the | 95 // Returns true if the bubble should close when focus is lost. If false, the |
96 // bubble will stick around until the user explicitly acknowledges it. | 96 // bubble will stick around until the user explicitly acknowledges it. |
97 // Defaults to true. | 97 // Defaults to true. |
98 virtual bool ShouldCloseOnDeactivate() const; | 98 virtual bool ShouldCloseOnDeactivate() const; |
99 | 99 |
100 // GlobalError overrides: | 100 // GlobalError overrides: |
101 virtual bool HasBubbleView() OVERRIDE; | 101 virtual bool HasBubbleView() override; |
102 virtual bool HasShownBubbleView() OVERRIDE; | 102 virtual bool HasShownBubbleView() override; |
103 virtual void ShowBubbleView(Browser* browser) OVERRIDE; | 103 virtual void ShowBubbleView(Browser* browser) override; |
104 virtual GlobalErrorBubbleViewBase* GetBubbleView() OVERRIDE; | 104 virtual GlobalErrorBubbleViewBase* GetBubbleView() override; |
105 | 105 |
106 private: | 106 private: |
107 bool has_shown_bubble_view_; | 107 bool has_shown_bubble_view_; |
108 GlobalErrorBubbleViewBase* bubble_view_; | 108 GlobalErrorBubbleViewBase* bubble_view_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(GlobalErrorWithStandardBubble); | 110 DISALLOW_COPY_AND_ASSIGN(GlobalErrorWithStandardBubble); |
111 }; | 111 }; |
112 | 112 |
113 #endif // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ | 113 #endif // CHROME_BROWSER_UI_GLOBAL_ERROR_GLOBAL_ERROR_H_ |
OLD | NEW |