| OLD | NEW |
| 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_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_SPEECH_INPUT_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/common/notification_service.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, |
| 17 public content::NotificationObserver { | 17 public content::NotificationObserver { |
| 18 protected: | 18 protected: |
| 19 SpeechInputAsyncFunction(int start_state, int transition_state, | 19 SpeechInputAsyncFunction(int start_state, int transition_state, |
| 20 int end_state, int transition_notification); | 20 int end_state, int transition_notification); |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_EXTENSIONS_SPEECH_INPUT_EXTENSION_SPEECH_INPUT_API_H_ |
| OLD | NEW |