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

Side by Side Diff: chrome/browser/speech/extension_speech_input_api.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: fixing one missing include for moving the API. 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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 #ifndef CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ 5 #ifndef CHROME_BROWSER_SPEECH_EXTENSION_SPEECH_INPUT_API_H_
Aaron Boodman 2011/11/06 22:55:38 To be consistent with the previous changes on the
Leandro GraciĆ” Gil 2011/11/07 17:11:43 Done.
6 #define CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ 6 #define CHROME_BROWSER_SPEECH_EXTENSION_SPEECH_INPUT_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
11 11
12 class ExtensionSpeechInputManager; 12 class ExtensionSpeechInputManager;
13 13
14 // Handles asynchronous operations such as starting or stopping speech 14 // Handles asynchronous operations such as starting or stopping speech
15 // recognition in the framework of the extension API state machine. 15 // recognition in the framework of the extension API state machine.
16 class SpeechInputAsyncFunction : public AsyncExtensionFunction, 16 class SpeechInputAsyncFunction : public AsyncExtensionFunction,
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 DECLARE_EXTENSION_FUNCTION_NAME("experimental.speechInput.stop"); 62 DECLARE_EXTENSION_FUNCTION_NAME("experimental.speechInput.stop");
63 }; 63 };
64 64
65 // Implements experimental.speechInput.isRecording. 65 // Implements experimental.speechInput.isRecording.
66 class IsRecordingSpeechInputFunction : public SyncExtensionFunction { 66 class IsRecordingSpeechInputFunction : public SyncExtensionFunction {
67 protected: 67 protected:
68 virtual bool RunImpl() OVERRIDE; 68 virtual bool RunImpl() OVERRIDE;
69 DECLARE_EXTENSION_FUNCTION_NAME("experimental.speechInput.isRecording"); 69 DECLARE_EXTENSION_FUNCTION_NAME("experimental.speechInput.isRecording");
70 }; 70 };
71 71
72 #endif // CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ 72 #endif // CHROME_BROWSER_SPEECH_EXTENSION_SPEECH_INPUT_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698