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

Side by Side Diff: chrome/browser/speech/speech_input_extension_notification_ui.h

Issue 8386074: Add a tray notification UI for speech input recording in the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: requested file renames and api constants refactor. Created 9 years, 1 month 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_NOTIFICATION_UI_H_
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_NOTIFICATION_UI_H_
7 #pragma once
8
9 #include "base/memory/scoped_ptr.h"
10
11 class Extension;
12 class Profile;
13 class SkBitmap;
14 class SkCanvas;
15 class StatusIcon;
16
17 // Manage the notification UI shown when an extension starts recording audio
Satish 2011/11/07 18:16:31 Manage -> Manages
Leandro Graciá Gil 2011/11/07 19:34:42 Done.
18 // for speech recognition.
19 class SpeechInputExtensionNotificationUI {
Satish 2011/11/07 18:16:31 could drop the 'UI' from name?
Leandro Graciá Gil 2011/11/07 19:34:42 Done.
20 public:
21 explicit SpeechInputExtensionNotificationUI(Profile* profile);
22 virtual ~SpeechInputExtensionNotificationUI();
23
24 void Show(const Extension* extension, bool show_balloon);
25 void Hide();
26 void SetVUMeterVolume(float volume);
27
28 private:
29 void DrawVolume(SkCanvas* canvas, const SkBitmap& bitmap, float volume);
30 void ShowNotificationBalloon(const Extension* extension);
31
32 Profile* profile_;
33 scoped_ptr<SkBitmap> mic_image_;
34 scoped_ptr<SkBitmap> buffer_image_;
35 StatusIcon* tray_icon_;
36 };
37
38 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_EXTENSION_NOTIFICATION_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698