| 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 #include "chrome/browser/ui/global_error.h" | 5 #include "chrome/browser/ui/global_error/global_error.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "chrome/browser/ui/global_error_bubble_view_base.h" | 8 #include "chrome/browser/ui/global_error/global_error_bubble_view_base.h" |
| 9 #include "grit/theme_resources.h" | 9 #include "grit/theme_resources.h" |
| 10 #include "grit/theme_resources_standard.h" | 10 #include "grit/theme_resources_standard.h" |
| 11 | 11 |
| 12 GlobalError::GlobalError() | 12 GlobalError::GlobalError() |
| 13 : has_shown_bubble_view_(false), | 13 : has_shown_bubble_view_(false), |
| 14 bubble_view_(NULL) { | 14 bubble_view_(NULL) { |
| 15 } | 15 } |
| 16 | 16 |
| 17 GlobalError::~GlobalError() { | 17 GlobalError::~GlobalError() { |
| 18 } | 18 } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 int GlobalError::GetBubbleViewIconResourceID() { | 42 int GlobalError::GetBubbleViewIconResourceID() { |
| 43 return IDR_INPUT_ALERT; | 43 return IDR_INPUT_ALERT; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void GlobalError::BubbleViewDidClose(Browser* browser) { | 46 void GlobalError::BubbleViewDidClose(Browser* browser) { |
| 47 DCHECK(browser); | 47 DCHECK(browser); |
| 48 bubble_view_ = NULL; | 48 bubble_view_ = NULL; |
| 49 OnBubbleViewDidClose(browser); | 49 OnBubbleViewDidClose(browser); |
| 50 } | 50 } |
| OLD | NEW |