RecommendedApps* recommended_apps() { return recommended_apps_.get(); }
Profile* profile() { return profile_; }
+ SpeechRecognitionState state() { return state_; }
void OnSpeechResult(const base::string16& query, bool is_final);
void OnSpeechSoundLevelChanged(int16 level);
void OnSpeechRecognitionStateChanged(SpeechRecognitionState new_state);
private:
- // A BrowserContextKeyedServiceFactory for this service.
- class Factory;
+ friend class StartPageServiceFactory;
// ProfileDestroyObserver to shutdown the service on exiting. WebContents
// depends on the profile and needs to be closed before the profile and its
scoped_ptr<StartPageWebContentsDelegate> contents_delegate_;
scoped_ptr<ProfileDestroyObserver> profile_destroy_observer_;
scoped_ptr<RecommendedApps> recommended_apps_;
+ SpeechRecognitionState state_;
ObserverList<StartPageObserver> observers_;
+ bool speech_button_toggled_manually_;
+ bool speech_result_obtained_;
DISALLOW_COPY_AND_ASSIGN(StartPageService);
};