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 #import "chrome/browser/ui/cocoa/global_error_bubble_controller.h" | 5 #import "chrome/browser/ui/cocoa/global_error_bubble_controller.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/mac/scoped_nsobject.h" | 8 #include "base/mac/scoped_nsobject.h" |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/sys_string_conversions.h" | 10 #include "base/strings/sys_string_conversions.h" |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 namespace GlobalErrorBubbleControllerInternal { | 32 namespace GlobalErrorBubbleControllerInternal { |
33 | 33 |
34 // This is the bridge to the C++ GlobalErrorBubbleViewBase object. | 34 // This is the bridge to the C++ GlobalErrorBubbleViewBase object. |
35 class Bridge : public GlobalErrorBubbleViewBase { | 35 class Bridge : public GlobalErrorBubbleViewBase { |
36 public: | 36 public: |
37 Bridge(GlobalErrorBubbleController* controller) : controller_(controller) { | 37 Bridge(GlobalErrorBubbleController* controller) : controller_(controller) { |
38 } | 38 } |
39 | 39 |
40 private: | 40 private: |
41 virtual void CloseBubbleView() OVERRIDE { | 41 virtual void CloseBubbleView() override { |
42 [controller_ close]; | 42 [controller_ close]; |
43 } | 43 } |
44 | 44 |
45 GlobalErrorBubbleController* controller_; // Weak, owns this. | 45 GlobalErrorBubbleController* controller_; // Weak, owns this. |
46 }; | 46 }; |
47 | 47 |
48 } // namespace GlobalErrorBubbleControllerInternal | 48 } // namespace GlobalErrorBubbleControllerInternal |
49 | 49 |
50 @implementation GlobalErrorBubbleController | 50 @implementation GlobalErrorBubbleController |
51 | 51 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 [self close]; | 155 [self close]; |
156 } | 156 } |
157 | 157 |
158 @end | 158 @end |
159 | 159 |
160 GlobalErrorBubbleViewBase* GlobalErrorBubbleViewBase::ShowStandardBubbleView( | 160 GlobalErrorBubbleViewBase* GlobalErrorBubbleViewBase::ShowStandardBubbleView( |
161 Browser* browser, | 161 Browser* browser, |
162 const base::WeakPtr<GlobalErrorWithStandardBubble>& error) { | 162 const base::WeakPtr<GlobalErrorWithStandardBubble>& error) { |
163 return [GlobalErrorBubbleController showForBrowser:browser error:error]; | 163 return [GlobalErrorBubbleController showForBrowser:browser error:error]; |
164 } | 164 } |
OLD | NEW |