| 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/speech/speech_recognition_tray_icon_controller.h" | 5 #include "chrome/browser/speech/speech_recognition_tray_icon_controller.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 canvas->drawBitmap(*buffer_image_.get(), 0, 0); | 185 canvas->drawBitmap(*buffer_image_.get(), 0, 0); |
| 186 } | 186 } |
| 187 | 187 |
| 188 void SpeechRecognitionTrayIconController::ShowNotificationBalloon( | 188 void SpeechRecognitionTrayIconController::ShowNotificationBalloon( |
| 189 const string16& text) { | 189 const string16& text) { |
| 190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 190 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 191 string16 title = l10n_util::GetStringUTF16( | 191 string16 title = l10n_util::GetStringUTF16( |
| 192 IDS_SPEECH_INPUT_TRAY_BALLOON_TITLE); | 192 IDS_SPEECH_INPUT_TRAY_BALLOON_TITLE); |
| 193 string16 message = l10n_util::GetStringFUTF16( | 193 string16 message = l10n_util::GetStringFUTF16( |
| 194 IDS_SPEECH_INPUT_TRAY_BALLOON_BODY, | 194 IDS_SPEECH_INPUT_TRAY_BALLOON_BODY, |
| 195 text, | 195 text); |
| 196 l10n_util::GetStringUTF16(IDS_PRODUCT_NAME)); | |
| 197 | 196 |
| 198 tray_icon_->DisplayBalloon(*g_images.Get().balloon_icon(), title, message); | 197 tray_icon_->DisplayBalloon(*g_images.Get().balloon_icon(), title, message); |
| 199 } | 198 } |
| OLD | NEW |