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

Side by Side Diff: chrome/browser/extensions/speech_input/extension_speech_input_api.h

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698