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

Side by Side Diff: chrome/browser/speech/speech_recognition_tray_icon_controller.cc

Issue 10407120: Moving tray icon and notification balloon for background speech recognition sessions to ChromeSpeec… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Turned context_name to string (instead of string16) Created 8 years, 6 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/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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698