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" |
11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
12 #include "chrome/browser/status_icons/status_icon.h" | 12 #include "chrome/browser/status_icons/status_icon.h" |
13 #include "chrome/browser/status_icons/status_tray.h" | 13 #include "chrome/browser/status_icons/status_tray.h" |
14 #include "chrome/common/extensions/extension.h" | 14 #include "chrome/common/extensions/extension.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "grit/chromium_strings.h" | 16 #include "grit/chromium_strings.h" |
17 #include "grit/generated_resources.h" | 17 #include "grit/generated_resources.h" |
18 #include "grit/theme_resources.h" | 18 #include "grit/theme_resources_standard.h" |
19 #include "ui/base/l10n/l10n_util.h" | 19 #include "ui/base/l10n/l10n_util.h" |
20 #include "ui/base/resource/resource_bundle.h" | 20 #include "ui/base/resource/resource_bundle.h" |
21 #include "ui/gfx/canvas.h" | 21 #include "ui/gfx/canvas.h" |
22 #include "ui/gfx/rect.h" | 22 #include "ui/gfx/rect.h" |
23 #include "ui/gfx/skbitmap_operations.h" | 23 #include "ui/gfx/skbitmap_operations.h" |
24 | 24 |
25 using content::BrowserThread; | 25 using content::BrowserThread; |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const string16& text) { | 188 const string16& text) { |
189 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 189 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
190 string16 title = l10n_util::GetStringUTF16( | 190 string16 title = l10n_util::GetStringUTF16( |
191 IDS_SPEECH_INPUT_TRAY_BALLOON_TITLE); | 191 IDS_SPEECH_INPUT_TRAY_BALLOON_TITLE); |
192 string16 message = l10n_util::GetStringFUTF16( | 192 string16 message = l10n_util::GetStringFUTF16( |
193 IDS_SPEECH_INPUT_TRAY_BALLOON_BODY, | 193 IDS_SPEECH_INPUT_TRAY_BALLOON_BODY, |
194 text); | 194 text); |
195 | 195 |
196 tray_icon_->DisplayBalloon(*g_images.Get().balloon_icon(), title, message); | 196 tray_icon_->DisplayBalloon(*g_images.Get().balloon_icon(), title, message); |
197 } | 197 } |
OLD | NEW |