Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/browser/extensions/extension_error_ui_default.cc

Issue 14262009: Add support for multi-line GlobalError messages to Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/extensions/extension_error_ui_default.h" 5 #include "chrome/browser/extensions/extension_error_ui_default.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 } 72 }
73 73
74 bool ExtensionErrorUIDefault::ExtensionGlobalError::HasBubbleView() { 74 bool ExtensionErrorUIDefault::ExtensionGlobalError::HasBubbleView() {
75 return true; 75 return true;
76 } 76 }
77 77
78 string16 ExtensionErrorUIDefault::ExtensionGlobalError::GetBubbleViewTitle() { 78 string16 ExtensionErrorUIDefault::ExtensionGlobalError::GetBubbleViewTitle() {
79 return error_ui_->GetBubbleViewTitle(); 79 return error_ui_->GetBubbleViewTitle();
80 } 80 }
81 81
82 string16 ExtensionErrorUIDefault::ExtensionGlobalError::GetBubbleViewMessage() { 82 std::vector<string16>
83 return error_ui_->GetBubbleViewMessage(); 83 ExtensionErrorUIDefault::ExtensionGlobalError::GetBubbleViewMessages() {
84 return error_ui_->GetBubbleViewMessages();
84 } 85 }
85 86
86 string16 ExtensionErrorUIDefault::ExtensionGlobalError:: 87 string16 ExtensionErrorUIDefault::ExtensionGlobalError::
87 GetBubbleViewAcceptButtonLabel() { 88 GetBubbleViewAcceptButtonLabel() {
88 return error_ui_->GetBubbleViewAcceptButtonLabel(); 89 return error_ui_->GetBubbleViewAcceptButtonLabel();
89 } 90 }
90 91
91 string16 ExtensionErrorUIDefault::ExtensionGlobalError:: 92 string16 ExtensionErrorUIDefault::ExtensionGlobalError::
92 GetBubbleViewCancelButtonLabel() { 93 GetBubbleViewCancelButtonLabel() {
93 return error_ui_->GetBubbleViewCancelButtonLabel(); 94 return error_ui_->GetBubbleViewCancelButtonLabel();
(...skipping 14 matching lines...) Expand all
108 void ExtensionErrorUIDefault::ExtensionGlobalError:: 109 void ExtensionErrorUIDefault::ExtensionGlobalError::
109 BubbleViewCancelButtonPressed(Browser* browser) { 110 BubbleViewCancelButtonPressed(Browser* browser) {
110 error_ui_->BubbleViewCancelButtonPressed(); 111 error_ui_->BubbleViewCancelButtonPressed();
111 } 112 }
112 113
113 // static 114 // static
114 ExtensionErrorUI* ExtensionErrorUI::Create( 115 ExtensionErrorUI* ExtensionErrorUI::Create(
115 ExtensionService* extension_service) { 116 ExtensionService* extension_service) {
116 return new ExtensionErrorUIDefault(extension_service); 117 return new ExtensionErrorUIDefault(extension_service);
117 } 118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698