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/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/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" | |
11 | 10 |
12 GlobalError::GlobalError() | 11 GlobalError::GlobalError() |
13 : has_shown_bubble_view_(false), | 12 : has_shown_bubble_view_(false), |
14 bubble_view_(NULL) { | 13 bubble_view_(NULL) { |
15 } | 14 } |
16 | 15 |
17 GlobalError::~GlobalError() { | 16 GlobalError::~GlobalError() { |
18 } | 17 } |
19 | 18 |
20 int GlobalError::GetBadgeResourceID() { | 19 int GlobalError::GetBadgeResourceID() { |
(...skipping 25 matching lines...) Expand all Loading... |
46 | 45 |
47 int GlobalError::GetBubbleViewIconResourceID() { | 46 int GlobalError::GetBubbleViewIconResourceID() { |
48 return IDR_INPUT_ALERT; | 47 return IDR_INPUT_ALERT; |
49 } | 48 } |
50 | 49 |
51 void GlobalError::BubbleViewDidClose(Browser* browser) { | 50 void GlobalError::BubbleViewDidClose(Browser* browser) { |
52 DCHECK(browser); | 51 DCHECK(browser); |
53 bubble_view_ = NULL; | 52 bubble_view_ = NULL; |
54 OnBubbleViewDidClose(browser); | 53 OnBubbleViewDidClose(browser); |
55 } | 54 } |
OLD | NEW |